Package org.jpedal.annotation
Class Caret
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Markup
org.jpedal.annotation.Caret
public final class Caret
extends org.jpedal.annotation.Markup
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
Modifier and TypeMethodDescriptionorg.jpedal.io.annotation.utils.AnnotDict
getDict()
Creates the annotation dictionary.Methods inherited from class org.jpedal.annotation.Annotation
getFlagsValue
-
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
-
-
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 classorg.jpedal.annotation.Markup
- Returns:
- a dictionary containing the relevant entries.
-