Package org.xhtmlrenderer.newtable
Class CollapsedBorderValue
java.lang.Object
org.xhtmlrenderer.newtable.CollapsedBorderValue
This class encapsulates all information related to a particular border side
along with an overall precedence (e.g. cell borders take precedence over
row borders). It is used when comparing overlapping borders when calculating
collapsed borders.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FSColorprivate final intprivate final @Nullable IdentValueprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionCollapsedBorderValue(@Nullable IdentValue style, int width, FSColor color, int precedence) -
Method Summary
Modifier and TypeMethodDescriptionstatic CollapsedBorderValueborderBottom(BorderPropertySet border, int precedence) static CollapsedBorderValueborderLeft(BorderPropertySet border, int precedence) static CollapsedBorderValueborderRight(BorderPropertySet border, int precedence) static CollapsedBorderValueborderTop(BorderPropertySet border, int precedence) color()booleandefined()booleanexists()booleanhidden()int@Nullable IdentValuestyle()intwidth()withWidth(int width)
-
Field Details
-
_style
-
_width
private final int _width -
_color
-
_precedence
private final int _precedence
-
-
Constructor Details
-
CollapsedBorderValue
-
-
Method Details
-
color
-
style
-
width
@CheckReturnValue public int width() -
withWidth
-
precedence
@CheckReturnValue public int precedence() -
defined
@CheckReturnValue public boolean defined() -
exists
@CheckReturnValue public boolean exists() -
borderLeft
@CheckReturnValue public static CollapsedBorderValue borderLeft(BorderPropertySet border, int precedence) -
borderRight
@CheckReturnValue public static CollapsedBorderValue borderRight(BorderPropertySet border, int precedence) -
borderTop
@CheckReturnValue public static CollapsedBorderValue borderTop(BorderPropertySet border, int precedence) -
borderBottom
@CheckReturnValue public static CollapsedBorderValue borderBottom(BorderPropertySet border, int precedence)
-