com.qoppa.pdf.annotations
Class Square
java.lang.Object
com.qoppa.pdf.annotations.Annotation
com.qoppa.pdf.annotations.ShapeAnnotation
com.qoppa.pdf.annotations.Square
- public class Square
- extends ShapeAnnotation
Class representing a Square annotation in a PDF document.
Square annotations are displayed as a square box on the PDF
document and can be double-clicked to display their contents.
- Author:
- Qoppa Software
| Fields inherited from class com.qoppa.pdf.annotations.ShapeAnnotation |
LE_CIRCLE, LE_CIRCLE_STR, LE_CLOSEDARROW, LE_CLOSEDARROW_STR, LE_DIAMOND, LE_DIAMOND_STR, LE_NONE, LE_NONE_STR, LE_OPENARROW, LE_OPENARROW_STR, LE_SQUARE, LE_SQUARE_STR |
| Fields inherited from class com.qoppa.pdf.annotations.Annotation |
BORDERSTYLE_BEVELED, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY |
|
Constructor Summary |
Square(String contents)
Constructs a square annotation with the given content. |
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
getActions, getAppearStream, getBorderStyle, getColor, getComponent, getCreationDate, getCreator, getFlags, getLayer, getName, getOpacity, getPopup, getRectangle, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, print, setActions, setAppearStream, setBorderStyle, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPopup, setPrintable, setReadOnly, setTriggerActions, shiftRectangle |
Square
public Square(String contents)
- Constructs a square annotation with the given content. Call Square.setBounds()
to set the bounds of the square.
- Parameters:
contents - The text contents to display when the annotation is opened.
getSubtype
public String getSubtype()
- Returns this annotation's subtype: "Square"
- Specified by:
getSubtype in class Annotation
- Returns:
- The annotation subtype.
createComponent
public JComponent createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
- Creates a JComponent object capable of displaying this
annotation.
- Specified by:
createComponent in class Annotation
- Returns:
- JComponent do display this annotation.
revalidate
public void revalidate()
- Description copied from class:
ShapeAnnotation
- Revalidate the shape drawn by this annotation.
- Specified by:
revalidate in class ShapeAnnotation