Class TableStyleValues

java.lang.Object
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.
  • Field Details

    • horBorderSpacing

      private float horBorderSpacing
    • verBorderSpacing

      private float verBorderSpacing
    • borderLeftWidth

      private Float borderLeftWidth
    • borderLeftColor

      private BaseColor borderLeftColor
    • borderRightWidth

      private Float borderRightWidth
    • borderRightColor

      private BaseColor borderRightColor
    • borderTopWidth

      private Float borderTopWidth
    • borderTopColor

      private BaseColor borderTopColor
    • borderBottomWidth

      private Float borderBottomWidth
    • borderBottomColor

      private BaseColor borderBottomColor
    • isLastInRow

      private boolean isLastInRow
    • background

      private BaseColor 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

      public 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 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 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 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