Class BorderPropertySet
java.lang.Object
org.xhtmlrenderer.css.style.derived.RectPropertySet
org.xhtmlrenderer.css.style.derived.BorderPropertySet
User: patrick
Date: Oct 21, 2005
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final record
private static final record
private static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BorderPropertySet.Colors
private final BorderPropertySet.Corners
static final BorderPropertySet
private static final BorderPropertySet.Colors
private static final BorderPropertySet.Corners
private static final BorderPropertySet.Styles
private final BorderPropertySet.Styles
Fields inherited from class org.xhtmlrenderer.css.style.derived.RectPropertySet
ALL_ZEROS
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
BorderPropertySet
(float top, float right, float bottom, float left, BorderPropertySet.Styles styles, BorderPropertySet.Corners corners, BorderPropertySet.Colors colors) private
BorderPropertySet
(CalculatedStyle style, CssContext ctx) BorderPropertySet
(BorderPropertySet border) BorderPropertySet
(CollapsedBorderValue top, CollapsedBorderValue right, CollapsedBorderValue bottom, CollapsedBorderValue left) -
Method Summary
Modifier and TypeMethodDescription@Nullable IdentValue
private static float
calculate
(CalculatedStyle style, CSSName borderStyle, CSSName borderWidth, CssContext ctx) darken()
Returns the colors for brighter parts of each side for a particular decoration stylefinal BorderPropertySet
darken
(IdentValue style) Deprecated.private float
getSideLength
(BorderRadiusCorner left, BorderRadiusCorner right, float sideLength) helper function for normalizeBorderRadius.boolean
boolean
@Nullable IdentValue
lighten()
Returns the colors for brighter parts of each side for a particular decoration stylefinal BorderPropertySet
lighten
(IdentValue style) Deprecated.static BorderPropertySet
newInstance
(CalculatedStyle style, @Nullable CssContext ctx) boolean
noBottom()
boolean
noLeft()
boolean
noRight()
normalizedInstance
(Rectangle bounds) boolean
noTop()
@Nullable IdentValue
topColor()
@Nullable IdentValue
topStyle()
toString()
Methods inherited from class org.xhtmlrenderer.css.style.derived.RectPropertySet
bottom, copyOf, getLeftRightDiff, hasNegativeValues, height, isAllZeros, left, newInstance, right, setBottom, setLeft, setRight, setTop, top, width
-
Field Details
-
NO_CORNERS
-
NO_STYLES
-
NO_COLORS
-
EMPTY_BORDER
-
styles
-
colors
-
corners
-
-
Constructor Details
-
BorderPropertySet
-
BorderPropertySet
private BorderPropertySet(float top, float right, float bottom, float left, BorderPropertySet.Styles styles, BorderPropertySet.Corners corners, BorderPropertySet.Colors colors) -
BorderPropertySet
public BorderPropertySet(CollapsedBorderValue top, CollapsedBorderValue right, CollapsedBorderValue bottom, CollapsedBorderValue left) -
BorderPropertySet
-
-
Method Details
-
calculate
private static float calculate(CalculatedStyle style, CSSName borderStyle, CSSName borderWidth, CssContext ctx) -
lighten
@Deprecated @InlineMe(replacement="this.lighten()") public final BorderPropertySet lighten(IdentValue style) Deprecated. -
lighten
Returns the colors for brighter parts of each side for a particular decoration style -
darken
@Deprecated @InlineMe(replacement="this.darken()") public final BorderPropertySet darken(IdentValue style) Deprecated. -
darken
Returns the colors for brighter parts of each side for a particular decoration style -
newInstance
-
toString
- Overrides:
toString
in classRectPropertySet
-
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
-
getBottomLeft
-
getTopRight
-
getTopLeft
-
normalizedInstance
-
getSideLength
helper function for normalizeBorderRadius. Gets the max side width for each of the corners or the side width whichever is larger -
resetNegativeValues
- Overrides:
resetNegativeValues
in classRectPropertySet
-