Top Fields Constructors Methods
com.openhtmltopdf.css.style.derived

public Class BorderPropertySet

extends RectPropertySet
Class Inheritance
Imports
java.awt.Rectangle, com.openhtmltopdf.css.constants.CSSName, .IdentValue, com.openhtmltopdf.css.parser.FSColor, com.openhtmltopdf.css.style.BorderRadiusCorner, .CalculatedStyle, .CssContext, com.openhtmltopdf.newtable.CollapsedBorderValue

Field Summary

Modifier and TypeField and Description
private boolean
private FSColor
private BorderRadiusCorner
private BorderRadiusCorner
private IdentValue
private FSColor
private IdentValue
private FSColor
private IdentValue
private FSColor
private BorderRadiusCorner
private BorderRadiusCorner
private IdentValue
public static final BorderPropertySet
Inherited from com.openhtmltopdf.css.style.derived.RectPropertySet:
_bottom_left_right_topALL_ZEROS

Constructor Summary

AccessConstructor and Description
private
private
BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left, BorderRadiusCorner topLeftCorner, BorderRadiusCorner topRightCorner, BorderRadiusCorner bottomRightCorner, BorderRadiusCorner bottomLeftCorner)

public
BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left)

public
private

Method Summary

Modifier and TypeMethod and Description
public FSColor
public IdentValue
public BorderPropertySet

Returns:

Returns
darken
(IdentValue style)

Returns the colors for brighter parts of each side for a particular decoration style

public BorderRadiusCorner
public BorderRadiusCorner
private float
getSideWidth(BorderRadiusCorner left, BorderRadiusCorner right, float sideWidth)

Helper function for normalizeBorderRadius.

public BorderRadiusCorner
public BorderRadiusCorner
public boolean
public boolean
public boolean
public FSColor
public IdentValue
public BorderPropertySet

Returns:

Returns
lighten
(IdentValue style)

Returns the colors for brighter parts of each side for a particular decoration style

public static BorderPropertySet
public boolean
public boolean
public boolean
public BorderPropertySet
public boolean
public FSColor
public IdentValue
public void
public void
public void
public void
public FSColor
public IdentValue
public String
toString()

Overrides com.openhtmltopdf.css.style.derived.RectPropertySet.toString.

Returns a string representation of the object.

Inherited from com.openhtmltopdf.css.style.derived.RectPropertySet:
bottomcopyOfgetLeftRightDiffhasNegativeValuesheightisAllZerosleftnewInstanceresetNegativeValuesrightsetBottomsetLeftsetRightsetToptoptoStringwidth

Field Detail

_allowBevelback to summary
private boolean _allowBevel
_bottomColorback to summary
private FSColor _bottomColor
_bottomLeftback to summary
private BorderRadiusCorner _bottomLeft
_bottomRightback to summary
private BorderRadiusCorner _bottomRight
_bottomStyleback to summary
private IdentValue _bottomStyle
_leftColorback to summary
private FSColor _leftColor
_leftStyleback to summary
private IdentValue _leftStyle
_rightColorback to summary
private FSColor _rightColor
_rightStyleback to summary
private IdentValue _rightStyle
_topColorback to summary
private FSColor _topColor
_topLeftback to summary
private BorderRadiusCorner _topLeft
_topRightback to summary
private BorderRadiusCorner _topRight
_topStyleback to summary
private IdentValue _topStyle
EMPTY_BORDERback to summary
public static final BorderPropertySet EMPTY_BORDER

Constructor Detail

BorderPropertySetback to summary
private BorderPropertySet(BorderPropertySet border)
BorderPropertySetback to summary
private BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left, BorderRadiusCorner topLeftCorner, BorderRadiusCorner topRightCorner, BorderRadiusCorner bottomRightCorner, BorderRadiusCorner bottomLeftCorner)
BorderPropertySetback to summary
public BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left)
BorderPropertySetback to summary
public BorderPropertySet(boolean allowBevel, CollapsedBorderValue top, CollapsedBorderValue right, CollapsedBorderValue bottom, CollapsedBorderValue left)
BorderPropertySetback to summary
private BorderPropertySet(CalculatedStyle style, CssContext ctx)

Method Detail

bottomColorback to summary
public FSColor bottomColor()
bottomStyleback to summary
public IdentValue bottomStyle()
darkenback to summary
public BorderPropertySet darken(IdentValue style)

Returns the colors for brighter parts of each side for a particular decoration style

Returns:BorderPropertySet

Returns

getBottomLeftback to summary
public BorderRadiusCorner getBottomLeft()
getBottomRightback to summary
public BorderRadiusCorner getBottomRight()
getSideWidthback to summary
private float getSideWidth(BorderRadiusCorner left, BorderRadiusCorner right, float sideWidth)

Helper function for normalizeBorderRadius. Gets the max side width for each of the corners or the side width whichever is larger.

getTopLeftback to summary
public BorderRadiusCorner getTopLeft()
getTopRightback to summary
public BorderRadiusCorner getTopRight()
hasBorderRadiusback to summary
public boolean hasBorderRadius()
hasHiddenback to summary
public boolean hasHidden()
isBevelAllowedback to summary
public boolean isBevelAllowed()

See CSSName#FS_BORDER_RENDERING

leftColorback to summary
public FSColor leftColor()
leftStyleback to summary
public IdentValue leftStyle()
lightenback to summary
public BorderPropertySet lighten(IdentValue style)

Returns the colors for brighter parts of each side for a particular decoration style

Returns:BorderPropertySet

Returns

newInstanceback to summary
public static BorderPropertySet newInstance(CalculatedStyle style, CssContext ctx)
noBottomback to summary
public boolean noBottom()
noLeftback to summary
public boolean noLeft()
noRightback to summary
public boolean noRight()
normalizedInstanceback to summary
public BorderPropertySet normalizedInstance(Rectangle bounds)
noTopback to summary
public boolean noTop()
rightColorback to summary
public FSColor rightColor()
rightStyleback to summary
public IdentValue rightStyle()
setBottomLeftback to summary
public void setBottomLeft(BorderRadiusCorner bottomLeft)
setBottomRightback to summary
public void setBottomRight(BorderRadiusCorner bottomRight)
setTopLeftback to summary
public void setTopLeft(BorderRadiusCorner topLeft)
setTopRightback to summary
public void setTopRight(BorderRadiusCorner topRight)
topColorback to summary
public FSColor topColor()
topStyleback to summary
public IdentValue topStyle()
toStringback to summary
public String toString()

Overrides com.openhtmltopdf.css.style.derived.RectPropertySet.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override