Class FDFAnnotationPolygon

  • All Implemented Interfaces:
    COSObjectable

    public class FDFAnnotationPolygon
    extends FDFAnnotation
    This represents a Polygon FDF annotation.
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
      • SUBTYPE

        public static final java.lang.String SUBTYPE
        COS Model value for SubType entry.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FDFAnnotationPolygon

        public FDFAnnotationPolygon()
        Default constructor.
      • FDFAnnotationPolygon

        public FDFAnnotationPolygon​(COSDictionary a)
        Constructor.
        Parameters:
        a - An existing FDF Annotation.
      • FDFAnnotationPolygon

        public FDFAnnotationPolygon​(org.w3c.dom.Element element)
                             throws java.io.IOException
        Constructor.
        Parameters:
        element - An XFDF element.
        Throws:
        java.io.IOException - If there is an error extracting information from the element.
    • Method Detail

      • initVertices

        private void initVertices​(org.w3c.dom.Element element)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • setVertices

        public void setVertices​(float[] vertices)
        This will set the coordinates of the vertices.
        Parameters:
        vertices - array of floats [x1, y1, x2, y2, ...] vertex coordinates in default user space.
      • getVertices

        public float[] getVertices()
        This will get the coordinates of the vertices.
        Returns:
        array of floats [x1, y1, x2, y2, ...] vertex coordinates in default user space.
      • setInteriorColor

        public final void setInteriorColor​(java.awt.Color color)
        This will set interior color of the drawn area.
        Parameters:
        color - The interior color of the drawn area.
      • getInteriorColor

        public java.awt.Color getInteriorColor()
        This will get interior color of the drawn area.
        Returns:
        object representing the color.