Class BorderPropertySet
java.lang.Object
com.openhtmltopdf.css.style.derived.RectPropertySet
com.openhtmltopdf.css.style.derived.BorderPropertySet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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
static final BorderPropertySet
-
Constructor Summary
ConstructorsModifierConstructorDescriptionBorderPropertySet
(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
Modifier and TypeMethodDescriptiondarken
(IdentValue style) Returns the colors for brighter parts of each side for a particular decoration styleprivate float
getSideWidth
(BorderRadiusCorner left, BorderRadiusCorner right, float sideWidth) Helper function for normalizeBorderRadius.boolean
boolean
boolean
lighten
(IdentValue style) Returns the colors for brighter parts of each side for a particular decoration stylestatic BorderPropertySet
newInstance
(CalculatedStyle style, CssContext ctx) boolean
noBottom()
boolean
noLeft()
boolean
noRight()
normalizedInstance
(Rectangle bounds) boolean
noTop()
void
setBottomLeft
(BorderRadiusCorner bottomLeft) void
setBottomRight
(BorderRadiusCorner bottomRight) void
setTopLeft
(BorderRadiusCorner topLeft) void
setTopRight
(BorderRadiusCorner topRight) topColor()
topStyle()
toString()
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 Details
-
EMPTY_BORDER
-
_allowBevel
private boolean _allowBevel -
_topStyle
-
_rightStyle
-
_bottomStyle
-
_leftStyle
-
_topColor
-
_rightColor
-
_bottomColor
-
_leftColor
-
_topLeft
-
_topRight
-
_bottomRight
-
_bottomLeft
-
-
Constructor Details
-
BorderPropertySet
-
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
-
-
Method Details
-
lighten
Returns the colors for brighter parts of each side for a particular decoration style- Parameters:
style
-- Returns:
- Returns
-
darken
Returns the colors for brighter parts of each side for a particular decoration style- Parameters:
style
-- Returns:
- Returns
-
newInstance
-
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
-
rightStyle
-
bottomStyle
-
leftStyle
-
topColor
-
rightColor
-
bottomColor
-
leftColor
-
hasHidden
public boolean hasHidden() -
hasBorderRadius
public boolean hasBorderRadius() -
getBottomRight
-
setBottomRight
-
getBottomLeft
-
setBottomLeft
-
getTopRight
-
setTopRight
-
getTopLeft
-
setTopLeft
-
normalizedInstance
-
getSideWidth
Helper function for normalizeBorderRadius. Gets the max side width for each of the corners or the side width whichever is larger.
-