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 FSColor
private final int
private final @Nullable IdentValue
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionCollapsedBorderValue
(@Nullable IdentValue style, int width, FSColor color, int precedence) -
Method Summary
Modifier and TypeMethodDescriptionstatic CollapsedBorderValue
borderBottom
(BorderPropertySet border, int precedence) static CollapsedBorderValue
borderLeft
(BorderPropertySet border, int precedence) static CollapsedBorderValue
borderRight
(BorderPropertySet border, int precedence) static CollapsedBorderValue
borderTop
(BorderPropertySet border, int precedence) color()
boolean
defined()
boolean
exists()
boolean
hidden()
int
@Nullable IdentValue
style()
int
width()
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)
-