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.Object
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 Modifier and Type Field Description private BaseColor
background
private BaseColor
borderBottomColor
private java.lang.Float
borderBottomWidth
private BaseColor
borderLeftColor
private java.lang.Float
borderLeftWidth
private BaseColor
borderRightColor
private java.lang.Float
borderRightWidth
private BaseColor
borderTopColor
private java.lang.Float
borderTopWidth
private float
horBorderSpacing
private boolean
isLastInRow
private float
verBorderSpacing
-
Constructor Summary
Constructors Constructor Description TableStyleValues()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BaseColor
getBackground()
Get background color.BaseColor
getBorderColorBottom()
BaseColor
getBorderColorLeft()
BaseColor
getBorderColorRight()
BaseColor
getBorderColorTop()
float
getBorderWidthBottom()
java.lang.Float
getBorderWidthBottom(boolean defaultIfNotSet)
float
getBorderWidthLeft()
java.lang.Float
getBorderWidthLeft(boolean defaultIfNotSet)
float
getBorderWidthRight()
java.lang.Float
getBorderWidthRight(boolean defaultIfNotSet)
float
getBorderWidthTop()
java.lang.Float
getBorderWidthTop(boolean defaultIfNotSet)
float
getHorBorderSpacing()
float
getVerBorderSpacing()
boolean
isLastInRow()
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 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
-
-