Class PDBorderStyleDictionary

  • All Implemented Interfaces:
    COSObjectable

    public class PDBorderStyleDictionary
    extends Object
    implements COSObjectable
    This class represents a PDF /BS entry the border style dictionary.
    • Constructor Detail

      • PDBorderStyleDictionary

        public PDBorderStyleDictionary()
        Constructor.
      • PDBorderStyleDictionary

        public PDBorderStyleDictionary​(COSDictionary dict)
        Constructor.
        Parameters:
        dict - a border style dictionary.
    • Method Detail

      • setWidth

        public void setWidth​(float w)
        This will set the border width in points, 0 = no border.
        Parameters:
        w - float the width in points
      • getWidth

        public float getWidth()
        This will retrieve the border width in points, 0 = no border.
        Returns:
        flaot the width of the border in points
      • setStyle

        public void setStyle​(String s)
        This will set the border style, see the STYLE_* constants for valid values.
        Parameters:
        s - the border style to use
      • getStyle

        public String getStyle()
        This will retrieve the border style, see the STYLE_* constants for valid values.
        Returns:
        the style of the border
      • setDashStyle

        public void setDashStyle​(COSArray dashArray)
        This will set the dash style used for drawing the border.
        Parameters:
        dashArray - the dash style to use
      • getDashStyle

        public PDLineDashPattern getDashStyle()
        This will retrieve the dash style used for drawing the border.
        Returns:
        the dash style of the border