Package org.jpedal.annotation
Class Caret
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Caret
Defines a Caret annotation.
A caret annotation is a visual symbol that indicates the presence of text edits.
-
Constructor Summary
ConstructorsConstructorDescriptionCaret(float[] rect, float[] color) Create a new Caret annotation.Caret(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha) Create a new Caret annotation.Caret(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title) Create a new Caret annotation. -
Method Summary
Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue, setDownAppearance, setNormalAppearance, setRolloverAppearance
-
Constructor Details
-
Caret
public Caret(float[] rect, float[] color) Create a new Caret annotation.- Parameters:
rect- two diagonally opposite coordinate points that indicate the annotation's bounding boxcolor- the color of the annotation
-
Caret
public Caret(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha) Create a new Caret 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)color- the color of the annotationstrokingAlpha- the line transparency valuenonStrokingAlpha- the fill transparency value
-
Caret
public Caret(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title) Create a new Caret 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)color- the color of the annotationstrokingAlpha- the line transparency valuenonStrokingAlpha- the fill transparency valuetitle- the text for the title bar
-