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 static BorderPropertySetEMPTY_BORDER
-
Constructor Summary
Constructors Constructor Description BorderPropertySet(boolean allowBevel, float top, float right, float bottom, float left)BorderPropertySet(boolean allowBevel, CollapsedBorderValue top, CollapsedBorderValue right, CollapsedBorderValue bottom, CollapsedBorderValue left)
-
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
-
-
Constructor Detail
-
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)
-
-
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 String toString()
- Overrides:
toStringin 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(Rectangle bounds)
-
-