Package org.jpedal.annotation
Class Square
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Square
Defines a Square annotation.
Square annotations shall display a rectangle on the page.
-
Constructor Summary
ConstructorsConstructorDescriptionSquare(float[] rect, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, float lineWidth) Create a new Square annotation.Square(float[] rect, int flags, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, float lineWidth) Create a new Square annotation.Square(float[] rect, int flags, String contents, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, String title, float lineWidth) Create a new Square annotation. -
Method Summary
Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue, setDownAppearance, setNormalAppearance, setRolloverAppearance
-
Constructor Details
-
Square
public Square(float[] rect, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, float lineWidth) Create a new Square annotation.- Parameters:
rect- two diagonally opposite coordinate points that indicate the annotation's bounding boxlineColor- the line color of the annotationfillColor- the fill colorstrokingAlpha- the line transparency valuenonStrokingAlpha- the fill transparency valuelineWidth- the width of the lines
-
Square
public Square(float[] rect, int flags, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, float lineWidth) Create a new Square 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 valuelineWidth- the width of the lines
-
Square
public Square(float[] rect, int flags, String contents, float[] lineColor, float[] fillColor, float strokingAlpha, float nonStrokingAlpha, String title, float lineWidth) Create a new Square 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 barlineWidth- the width of the lines
-