Package org.jpedal.annotation
Class PolyLine
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.PolyLine
Defines a PolyLine annotation.
PolyLine annotations are similar to polygons, except that
the first and last vertex are not implicitly connected.
-
Constructor Summary
ConstructorsConstructorDescriptionPolyLine
(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
Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue
-
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 boxlineColor
- the line color of the annotationfillColor
- the fill colorvertices
- an array of numbers specifying the alternating horizontal and vertical coordinates of each vertexlineWidth
- 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 boxlineColor
- the line color of the annotationfillColor
- the fill colorvertices
- an array of numbers specifying the alternating horizontal and vertical coordinates of each vertexstartStyle
- the start line ending style. SeeLineEndingStyle
endStyle
- the end line ending style/ SeeLineEndingStyle
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 boxflags
- the annotation's flags. SeeAnnotation.getFlagsValue(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
lineColor
- the line color of the annotationfillColor
- the fill colorstrokingAlpha
- the line transparency valuenonStrokingAlpha
- the fill transparency valuevertices
- an array of numbers specifying the alternating horizontal and vertical coordinates of each vertexstartStyle
- the start line ending styleendStyle
- the end line ending style. SeeLineEndingStyle
lineWidth
- the width of the lines. SeeLineEndingStyle
-
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 boxflags
- the annotation's flags. SeeAnnotation.getFlagsValue(boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
lineColor
- the line color of the annotationfillColor
- the fill colorstrokingAlpha
- the line transparency valuenonStrokingAlpha
- the fill transparency valuevertices
- an array of numbers specifying the alternating horizontal and vertical coordinates of each vertexstartStyle
- the start line ending style. SeeLineEndingStyle
endStyle
- the end line ending style. SeeLineEndingStyle
lineWidth
- the width of the lines
-