Class PolyLine

java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Markup
org.jpedal.annotation.PolyLine

public final class PolyLine extends org.jpedal.annotation.Markup
Defines a PolyLine annotation. PolyLine annotations are similar to polygons, except that the first and last vertex are not implicitly connected.
  • Constructor Summary

    Constructors
    Constructor
    Description
    PolyLine(float[] rect, float[] lineColor, float[] fillColor, float[] vertices, float lineWidth)
    Create a new PolyLine annotation.
    PolyLine(float[] rect, float[] lineColor, float[] fillColor, float[] vertices, LineEndingStyle startStyle, LineEndingStyle endStyle, float lineWidth)
    Create a new PolyLine annotation.
    PolyLine(float[] rect, int flags, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, float[] vertices, LineEndingStyle startStyle, LineEndingStyle endStyle, float lineWidth)
    Create a new PolyLine annotation.
    PolyLine(float[] rect, int flags, String contents, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, String title, float[] vertices, LineEndingStyle startStyle, LineEndingStyle endStyle, float lineWidth)
    Create a new PolyLine annotation.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jpedal.io.annotation.utils.AnnotDict
    Creates the annotation dictionary.

    Methods inherited from class org.jpedal.annotation.Annotation

    getFlagsValue

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PolyLine

      public PolyLine(float[] rect, float[] lineColor, float[] fillColor, float[] vertices, float lineWidth)
      Create a new PolyLine annotation.
      Parameters:
      rect - two diagonally opposite coordinate points that indicate the annotation's bounding box
      lineColor - the line color of the annotation
      fillColor - the fill color
      vertices - an array of numbers specifying the alternating horizontal and vertical coordinates of each vertex
      lineWidth - the width of the lines
    • PolyLine

      public PolyLine(float[] rect, float[] lineColor, float[] fillColor, float[] vertices, LineEndingStyle startStyle, LineEndingStyle endStyle, float lineWidth)
      Create a new PolyLine annotation.
      Parameters:
      rect - two diagonally opposite coordinate points that indicate the annotation's bounding box
      lineColor - the line color of the annotation
      fillColor - the fill color
      vertices - an array of numbers specifying the alternating horizontal and vertical coordinates of each vertex
      startStyle - the start line ending style. See LineEndingStyle
      endStyle - the end line ending style/ See LineEndingStyle
      lineWidth - the width of the lines
    • PolyLine

      public PolyLine(float[] rect, int flags, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, float[] vertices, LineEndingStyle startStyle, LineEndingStyle endStyle, float lineWidth)
      Create a new PolyLine annotation.
      Parameters:
      rect - two diagonally opposite coordinate points that indicate the annotation's bounding box
      flags - the annotation's flags. See Annotation.getFlagsValue(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
      lineColor - the line color of the annotation
      fillColor - the fill color
      strokingAlpha - the line transparency value
      nonStrokingAlpha - the fill transparency value
      vertices - an array of numbers specifying the alternating horizontal and vertical coordinates of each vertex
      startStyle - the start line ending style
      endStyle - the end line ending style. See LineEndingStyle
      lineWidth - the width of the lines. See LineEndingStyle
    • PolyLine

      public PolyLine(float[] rect, int flags, String contents, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, String title, float[] vertices, LineEndingStyle startStyle, LineEndingStyle endStyle, float lineWidth)
      Create a new PolyLine annotation.
      Parameters:
      rect - two diagonally opposite coordinate points that indicate the annotation's bounding box
      flags - the annotation's flags. See Annotation.getFlagsValue(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
      lineColor - the line color of the annotation
      fillColor - the fill color
      strokingAlpha - the line transparency value
      nonStrokingAlpha - the fill transparency value
      vertices - an array of numbers specifying the alternating horizontal and vertical coordinates of each vertex
      startStyle - the start line ending style. See LineEndingStyle
      endStyle - the end line ending style. See LineEndingStyle
      lineWidth - the width of the lines
  • Method Details

    • getDict

      public org.jpedal.io.annotation.utils.AnnotDict getDict()
      Creates the annotation dictionary.

      This method is considered as not part of the public API.

      Overrides:
      getDict in class org.jpedal.annotation.Markup
      Returns:
      a dictionary containing the relevant entries.