Package com.itextpdf.tool.xml.html.table
Class TableStyleValues
- java.lang.Object
-
- com.itextpdf.tool.xml.html.table.TableStyleValues
-
public class TableStyleValues extends java.lang.ObjectClass 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 Modifier and Type Field Description private BaseColorbackgroundprivate BaseColorborderBottomColorprivate java.lang.FloatborderBottomWidthprivate BaseColorborderLeftColorprivate java.lang.FloatborderLeftWidthprivate BaseColorborderRightColorprivate java.lang.FloatborderRightWidthprivate BaseColorborderTopColorprivate java.lang.FloatborderTopWidthprivate floathorBorderSpacingprivate booleanisLastInRowprivate floatverBorderSpacing
-
Constructor Summary
Constructors Constructor Description TableStyleValues()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseColorgetBackground()Get background color.BaseColorgetBorderColorBottom()BaseColorgetBorderColorLeft()BaseColorgetBorderColorRight()BaseColorgetBorderColorTop()floatgetBorderWidthBottom()java.lang.FloatgetBorderWidthBottom(boolean defaultIfNotSet)floatgetBorderWidthLeft()java.lang.FloatgetBorderWidthLeft(boolean defaultIfNotSet)floatgetBorderWidthRight()java.lang.FloatgetBorderWidthRight(boolean defaultIfNotSet)floatgetBorderWidthTop()java.lang.FloatgetBorderWidthTop(boolean defaultIfNotSet)floatgetHorBorderSpacing()floatgetVerBorderSpacing()booleanisLastInRow()Only used by cells.voidsetBackground(BaseColor background)Sets background color.voidsetBorderColor(BaseColor color)Sets the border color for the entire table or cell.voidsetBorderColorBottom(BaseColor borderBottomColor)voidsetBorderColorLeft(BaseColor borderLeftColor)voidsetBorderColorRight(BaseColor borderRightColor)voidsetBorderColorTop(BaseColor borderTopColor)voidsetBorderWidth(float width)Sets the border width for the entire table or cell.voidsetBorderWidthBottom(float borderBottomWidth)voidsetBorderWidthLeft(float borderLeftWidth)voidsetBorderWidthRight(float borderRightWidth)voidsetBorderWidthTop(float borderTopWidth)voidsetHorBorderSpacing(float horBorderSpacing)voidsetLastInRow(boolean isLastInRow)Only used by cells.voidsetVerBorderSpacing(float verBorderSpacing)
-
-
-
Field Detail
-
horBorderSpacing
private float horBorderSpacing
-
verBorderSpacing
private float verBorderSpacing
-
borderLeftWidth
private java.lang.Float borderLeftWidth
-
borderLeftColor
private BaseColor borderLeftColor
-
borderRightWidth
private java.lang.Float borderRightWidth
-
borderRightColor
private BaseColor borderRightColor
-
borderTopWidth
private java.lang.Float borderTopWidth
-
borderTopColor
private BaseColor borderTopColor
-
borderBottomWidth
private java.lang.Float borderBottomWidth
-
borderBottomColor
private BaseColor borderBottomColor
-
isLastInRow
private boolean isLastInRow
-
background
private BaseColor background
-
-
Method Detail
-
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
public java.lang.Float getBorderWidthLeft(boolean defaultIfNotSet)
- Returns:
- the borderLeftWidth
-
setBorderWidthLeft
public void setBorderWidthLeft(float borderLeftWidth)
- Parameters:
borderLeftWidth- the borderLeftWidth to set
-
getBorderColorLeft
public BaseColor getBorderColorLeft()
- Returns:
- the borderLeftColor
-
setBorderColorLeft
public void setBorderColorLeft(BaseColor borderLeftColor)
- Parameters:
borderLeftColor- the borderLeftColor to set
-
getBorderWidthRight
public float getBorderWidthRight()
- Returns:
- the borderRightWidth
-
getBorderWidthRight
public java.lang.Float getBorderWidthRight(boolean defaultIfNotSet)
- Returns:
- the borderRightWidth
-
setBorderWidthRight
public void setBorderWidthRight(float borderRightWidth)
- Parameters:
borderRightWidth- the borderRightWidth to set
-
getBorderColorRight
public BaseColor getBorderColorRight()
- Returns:
- the borderRightColor
-
setBorderColorRight
public void setBorderColorRight(BaseColor borderRightColor)
- Parameters:
borderRightColor- the borderRightColor to set
-
getBorderWidthTop
public float getBorderWidthTop()
- Returns:
- the borderTopWidth
-
getBorderWidthTop
public java.lang.Float getBorderWidthTop(boolean defaultIfNotSet)
- Returns:
- the borderTopWidth
-
setBorderWidthTop
public void setBorderWidthTop(float borderTopWidth)
- Parameters:
borderTopWidth- the borderTopWidth to set
-
getBorderColorTop
public BaseColor getBorderColorTop()
- Returns:
- the borderTopColor
-
setBorderColorTop
public void setBorderColorTop(BaseColor borderTopColor)
- Parameters:
borderTopColor- the borderTopColor to set
-
getBorderWidthBottom
public float getBorderWidthBottom()
- Returns:
- the borderBottomWidth
-
getBorderWidthBottom
public java.lang.Float getBorderWidthBottom(boolean defaultIfNotSet)
- Returns:
- the borderBottomWidth
-
setBorderWidthBottom
public void setBorderWidthBottom(float borderBottomWidth)
- Parameters:
borderBottomWidth- the borderBottomWidth to set
-
getBorderColorBottom
public BaseColor getBorderColorBottom()
- Returns:
- the borderBottomColor
-
setBorderColorBottom
public void setBorderColorBottom(BaseColor borderBottomColor)
- 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
public void setBorderColor(BaseColor color)
Sets the border color for the entire table or cell.- Parameters:
color- BaseColor.
-
setBackground
public void setBackground(BaseColor background)
Sets background color.- Parameters:
background- BaseColor.
-
getBackground
public BaseColor getBackground()
Get background color.- Returns:
- BaseColor
-
-