com.itextpdf.tool.xml.html.table
Class TableStyleValues

java.lang.Object
  extended by com.itextpdf.tool.xml.html.table.TableStyleValues

public class TableStyleValues
extends 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.

Author:
Emiel Ackermann

Constructor Summary
TableStyleValues()
          Default constructor.
 
Method Summary
 BaseColor getBackground()
          Get background color.
 BaseColor getBorderColorBottom()
           
 BaseColor getBorderColorLeft()
           
 BaseColor getBorderColorRight()
           
 BaseColor getBorderColorTop()
           
 float getBorderWidthBottom()
           
 float getBorderWidthLeft()
           
 float getBorderWidthRight()
           
 float getBorderWidthTop()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableStyleValues

public TableStyleValues()
Default constructor.

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

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

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

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

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


Copyright © 2015. All Rights Reserved.