Package org.openpdf.css.style.derived
Class BorderPropertySet
java.lang.Object
org.openpdf.css.style.derived.RectPropertySet
org.openpdf.css.style.derived.BorderPropertySet
User: patrick
Date: Oct 21, 2005
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final recordprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BorderPropertySet.Colorsprivate final BorderPropertySet.Cornersstatic final BorderPropertySetprivate static final BorderPropertySet.Colorsprivate static final BorderPropertySet.Cornersprivate static final BorderPropertySet.Stylesprivate final BorderPropertySet.StylesFields inherited from class org.openpdf.css.style.derived.RectPropertySet
ALL_ZEROS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateBorderPropertySet(float top, float right, float bottom, float left, BorderPropertySet.Styles styles, BorderPropertySet.Corners corners, BorderPropertySet.Colors colors) privateBorderPropertySet(CalculatedStyle style, CssContext ctx) BorderPropertySet(BorderPropertySet border) BorderPropertySet(CollapsedBorderValue top, CollapsedBorderValue right, CollapsedBorderValue bottom, CollapsedBorderValue left) -
Method Summary
Modifier and TypeMethodDescription@Nullable IdentValueprivate static floatcalculate(CalculatedStyle style, CSSName borderStyle, CSSName borderWidth, CssContext ctx) darken()Returns the colors for brighter parts of each side for a particular decoration stylefinal BorderPropertySetdarken(IdentValue style) Deprecated.private floatgetSideLength(BorderRadiusCorner left, BorderRadiusCorner right, float sideLength) helper function for normalizeBorderRadius.booleanboolean@Nullable IdentValuelighten()Returns the colors for brighter parts of each side for a particular decoration stylefinal BorderPropertySetlighten(IdentValue style) Deprecated.static BorderPropertySetnewInstance(CalculatedStyle style, @Nullable CssContext ctx) booleannoBottom()booleannoLeft()booleannoRight()normalizedInstance(Rectangle bounds) booleannoTop()@Nullable IdentValuetopColor()@Nullable IdentValuetopStyle()toString()Methods inherited from class org.openpdf.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:
toStringin 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:
resetNegativeValuesin classRectPropertySet
-