Package com.itextpdf.tool.xml.html.table
Class TableStyleValues
java.lang.Object
com.itextpdf.tool.xml.html.table.TableStyleValues
Class is used for storing style values of a table or cell. The stored style values are used when drawing the borders and background colors of tables or cells.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet background color.float
getBorderWidthBottom
(boolean defaultIfNotSet) float
getBorderWidthLeft
(boolean defaultIfNotSet) float
getBorderWidthRight
(boolean defaultIfNotSet) float
getBorderWidthTop
(boolean defaultIfNotSet) float
float
boolean
Only used by cells.void
setBackground
(BaseColor background) Sets background color.void
setBorderColor
(BaseColor color) Sets the border color for the entire table or cell.void
setBorderColorBottom
(BaseColor borderBottomColor) void
setBorderColorLeft
(BaseColor borderLeftColor) void
setBorderColorRight
(BaseColor borderRightColor) void
setBorderColorTop
(BaseColor borderTopColor) void
setBorderWidth
(float width) Sets the border width for the entire table or cell.void
setBorderWidthBottom
(float borderBottomWidth) void
setBorderWidthLeft
(float borderLeftWidth) void
setBorderWidthRight
(float borderRightWidth) void
setBorderWidthTop
(float borderTopWidth) void
setHorBorderSpacing
(float horBorderSpacing) void
setLastInRow
(boolean isLastInRow) Only used by cells.void
setVerBorderSpacing
(float verBorderSpacing)
-
Field Details
-
horBorderSpacing
private float horBorderSpacing -
verBorderSpacing
private float verBorderSpacing -
borderLeftWidth
-
borderLeftColor
-
borderRightWidth
-
borderRightColor
-
borderTopWidth
-
borderTopColor
-
borderBottomWidth
-
borderBottomColor
-
isLastInRow
private boolean isLastInRow -
background
-
-
Constructor Details
-
TableStyleValues
public TableStyleValues()Default constructor.
-
-
Method Details
-
getHorBorderSpacing
public float getHorBorderSpacing()- Returns:
- the horBorderSpacing
-
setHorBorderSpacing
public void setHorBorderSpacing(float horBorderSpacing) - Parameters:
horBorderSpacing
- the spacing
-
setVerBorderSpacing
public void setVerBorderSpacing(float verBorderSpacing) - Parameters:
verBorderSpacing
- the spacing
-
getVerBorderSpacing
public float getVerBorderSpacing()- Returns:
- the verBorderSpacing
-
setLastInRow
public void setLastInRow(boolean isLastInRow) Only used by cells. This boolean is used for adding a horizontal border spacing to the right of a cell.- Parameters:
isLastInRow
- boolean.
-
isLastInRow
public boolean isLastInRow()Only used by cells. This boolean is used for adding a horizontal border spacing to the right of a cell.- Returns:
- isLastInRow boolean.
-
getBorderWidthLeft
public float getBorderWidthLeft()- Returns:
- the borderLeftWidth
-
getBorderWidthLeft
- Returns:
- the borderLeftWidth
-
setBorderWidthLeft
public void setBorderWidthLeft(float borderLeftWidth) - Parameters:
borderLeftWidth
- the borderLeftWidth to set
-
getBorderColorLeft
- Returns:
- the borderLeftColor
-
setBorderColorLeft
- Parameters:
borderLeftColor
- the borderLeftColor to set
-
getBorderWidthRight
public float getBorderWidthRight()- Returns:
- the borderRightWidth
-
getBorderWidthRight
- Returns:
- the borderRightWidth
-
setBorderWidthRight
public void setBorderWidthRight(float borderRightWidth) - Parameters:
borderRightWidth
- the borderRightWidth to set
-
getBorderColorRight
- Returns:
- the borderRightColor
-
setBorderColorRight
- Parameters:
borderRightColor
- the borderRightColor to set
-
getBorderWidthTop
public float getBorderWidthTop()- Returns:
- the borderTopWidth
-
getBorderWidthTop
- Returns:
- the borderTopWidth
-
setBorderWidthTop
public void setBorderWidthTop(float borderTopWidth) - Parameters:
borderTopWidth
- the borderTopWidth to set
-
getBorderColorTop
- Returns:
- the borderTopColor
-
setBorderColorTop
- Parameters:
borderTopColor
- the borderTopColor to set
-
getBorderWidthBottom
public float getBorderWidthBottom()- Returns:
- the borderBottomWidth
-
getBorderWidthBottom
- Returns:
- the borderBottomWidth
-
setBorderWidthBottom
public void setBorderWidthBottom(float borderBottomWidth) - Parameters:
borderBottomWidth
- the borderBottomWidth to set
-
getBorderColorBottom
- Returns:
- the borderBottomColor
-
setBorderColorBottom
- Parameters:
borderBottomColor
- the borderBottomColor to set
-
setBorderWidth
public void setBorderWidth(float width) Sets the border width for the entire table or cell.- Parameters:
width
- float.
-
setBorderColor
Sets the border color for the entire table or cell.- Parameters:
color
- BaseColor.
-
setBackground
Sets background color.- Parameters:
background
- BaseColor.
-
getBackground
Get background color.- Returns:
- BaseColor
-