Class 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 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
    • 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
      • 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