Class BorderPropertySet
- java.lang.Object
-
- com.openhtmltopdf.css.style.derived.RectPropertySet
-
- com.openhtmltopdf.css.style.derived.BorderPropertySet
-
public class BorderPropertySet extends RectPropertySet
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
_allowBevel
private FSColor
_bottomColor
private BorderRadiusCorner
_bottomLeft
private BorderRadiusCorner
_bottomRight
private IdentValue
_bottomStyle
private FSColor
_leftColor
private IdentValue
_leftStyle
private FSColor
_rightColor
private IdentValue
_rightStyle
private FSColor
_topColor
private BorderRadiusCorner
_topLeft
private BorderRadiusCorner
_topRight
private IdentValue
_topStyle
static BorderPropertySet
EMPTY_BORDER
-
Constructor Summary
Constructors Modifier Constructor Description BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left)
private
BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left, BorderRadiusCorner topLeftCorner, BorderRadiusCorner topRightCorner, BorderRadiusCorner bottomRightCorner, BorderRadiusCorner bottomLeftCorner)
BorderPropertySet(boolean allowBevel, CollapsedBorderValue top, CollapsedBorderValue right, CollapsedBorderValue bottom, CollapsedBorderValue left)
private
BorderPropertySet(CalculatedStyle style, CssContext ctx)
private
BorderPropertySet(BorderPropertySet border)
-
Method Summary
-
Methods inherited from class com.openhtmltopdf.css.style.derived.RectPropertySet
bottom, copyOf, getLeftRightDiff, hasNegativeValues, height, isAllZeros, left, newInstance, resetNegativeValues, right, setBottom, setLeft, setRight, setTop, top, toString, width
-
-
-
-
Field Detail
-
EMPTY_BORDER
public static final BorderPropertySet EMPTY_BORDER
-
_allowBevel
private boolean _allowBevel
-
_topStyle
private IdentValue _topStyle
-
_rightStyle
private IdentValue _rightStyle
-
_bottomStyle
private IdentValue _bottomStyle
-
_leftStyle
private IdentValue _leftStyle
-
_topColor
private FSColor _topColor
-
_rightColor
private FSColor _rightColor
-
_bottomColor
private FSColor _bottomColor
-
_leftColor
private FSColor _leftColor
-
_topLeft
private BorderRadiusCorner _topLeft
-
_topRight
private BorderRadiusCorner _topRight
-
_bottomRight
private BorderRadiusCorner _bottomRight
-
_bottomLeft
private BorderRadiusCorner _bottomLeft
-
-
Constructor Detail
-
BorderPropertySet
private BorderPropertySet(BorderPropertySet border)
-
BorderPropertySet
private BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left, BorderRadiusCorner topLeftCorner, BorderRadiusCorner topRightCorner, BorderRadiusCorner bottomRightCorner, BorderRadiusCorner bottomLeftCorner)
-
BorderPropertySet
public BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left)
-
BorderPropertySet
public BorderPropertySet(boolean allowBevel, CollapsedBorderValue top, CollapsedBorderValue right, CollapsedBorderValue bottom, CollapsedBorderValue left)
-
BorderPropertySet
private BorderPropertySet(CalculatedStyle style, CssContext ctx)
-
-
Method Detail
-
lighten
public BorderPropertySet lighten(IdentValue style)
Returns the colors for brighter parts of each side for a particular decoration style- Parameters:
style
-- Returns:
- Returns
-
darken
public BorderPropertySet darken(IdentValue style)
Returns the colors for brighter parts of each side for a particular decoration style- Parameters:
style
-- Returns:
- Returns
-
newInstance
public static BorderPropertySet newInstance(CalculatedStyle style, CssContext ctx)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classRectPropertySet
-
isBevelAllowed
public boolean isBevelAllowed()
-
noTop
public boolean noTop()
-
noRight
public boolean noRight()
-
noBottom
public boolean noBottom()
-
noLeft
public boolean noLeft()
-
topStyle
public IdentValue topStyle()
-
rightStyle
public IdentValue rightStyle()
-
bottomStyle
public IdentValue bottomStyle()
-
leftStyle
public IdentValue leftStyle()
-
topColor
public FSColor topColor()
-
rightColor
public FSColor rightColor()
-
bottomColor
public FSColor bottomColor()
-
leftColor
public FSColor leftColor()
-
hasHidden
public boolean hasHidden()
-
hasBorderRadius
public boolean hasBorderRadius()
-
getBottomRight
public BorderRadiusCorner getBottomRight()
-
setBottomRight
public void setBottomRight(BorderRadiusCorner bottomRight)
-
getBottomLeft
public BorderRadiusCorner getBottomLeft()
-
setBottomLeft
public void setBottomLeft(BorderRadiusCorner bottomLeft)
-
getTopRight
public BorderRadiusCorner getTopRight()
-
setTopRight
public void setTopRight(BorderRadiusCorner topRight)
-
getTopLeft
public BorderRadiusCorner getTopLeft()
-
setTopLeft
public void setTopLeft(BorderRadiusCorner topLeft)
-
normalizedInstance
public BorderPropertySet normalizedInstance(java.awt.Rectangle bounds)
-
getSideWidth
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.
-
-