Package org.jpedal.annotation
Class Ink
java.lang.Object
org.jpedal.annotation.Annotation
org.jpedal.annotation.Markup
org.jpedal.annotation.Ink
public final class Ink
extends org.jpedal.annotation.Markup
Defines an Ink annotation.
An ink annotation represents a freehand "scribble" composed of one or more disjoint paths.
-
Constructor Summary
ConstructorsConstructorDescriptionInk
(float[] rect, float[] color, float[][] inkList, float lineWidth) Create a new Ink annotation.Ink
(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, float[][] inkList, float lineWidth) Create a new Ink annotation.Ink
(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, float[][] inkList, float lineWidth) Create a new Ink 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
-
Ink
public Ink(float[] rect, float[] color, float[][] inkList, float lineWidth) Create a new Ink annotation.- Parameters:
rect
- two diagonally opposite coordinate points that indicate the annotation's bounding boxcolor
- the color of the annotationinkList
- An array of n arrays, each representing a stroked path. Each array shall be a series of alternating horizontal and vertical coordinates in default user space, specifying points along the path.lineWidth
- the width of the lines
-
Ink
public Ink(float[] rect, int flags, float[] color, float strokingAlpha, float nonStrokingAlpha, float[][] inkList, float lineWidth) Create a new Ink 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 valueinkList
- An array of n arrays, each representing a stroked path. Each array shall be a series of alternating horizontal and vertical coordinates in default user space, specifying points along the path.lineWidth
- the width of the lines
-
Ink
public Ink(float[] rect, int flags, String contents, float[] color, float strokingAlpha, float nonStrokingAlpha, String title, float[][] inkList, float lineWidth) Create a new Ink 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 nullcolor
- the color of the annotationstrokingAlpha
- the line transparency valuenonStrokingAlpha
- the fill transparency valuetitle
- the text for the title barinkList
- An array of n arrays, each representing a stroked path. Each array shall be a series of alternating horizontal and vertical coordinates in default user space, specifying points along the path.lineWidth
- the width of the lines
-
-
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.
-