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