Package org.jpedal.annotation
Class Polygon
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Polygon
Defines a Polygon annotation.
Polygon annotations display closed polygons on the page. Such polygons may have many vertices connected by straight lines.
-
Constructor Summary
ConstructorsConstructorDescriptionPolygon(float[] rect, float[] lineColor, float[] fillColor, float[] vertices, float lineWidth) Create a new Polygon annotation.Polygon(float[] rect, int flags, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, float[] vertices, float lineWidth) Create a new Polygon annotation.Polygon(float[] rect, int flags, String contents, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, String title, float[] vertices, float lineWidth) Create a new Polygon annotation. -
Method Summary
Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue, setDownAppearance, setNormalAppearance, setRolloverAppearance
-
Constructor Details
-
Polygon
public Polygon(float[] rect, float[] lineColor, float[] fillColor, float[] vertices, float lineWidth) Create a new Polygon 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
-
Polygon
public Polygon(float[] rect, int flags, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, float[] vertices, float lineWidth) Create a new Polygon 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 vertexlineWidth- the width of the lines
-
Polygon
public Polygon(float[] rect, int flags, String contents, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, String title, float[] vertices, float lineWidth) Create a new Polygon 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)contents- text that shall be displayed or nulllineColor- the line color of the annotationfillColor- the fill colorstrokingAlpha- the line transparency valuenonStrokingAlpha- the fill transparency valuetitle- the text for the title barvertices- an array of numbers specifying the alternating horizontal and vertical coordinates of each vertexlineWidth- the width of the lines
-