com.qoppa.pdf.annotations
Interface Callout

All Superinterfaces:
Annotation, FreeText

public interface Callout
extends FreeText

Interface representing a Callout annotation in a PDF document. Callout annotations are displayed as a small text box with an arrow. No annotation will be drawn if setRectangle method is not called. Similarly, no inner rectangle will be drawn if setInnerRect is not called, and no arrow will be drawn if setArrow() is not called.

Author:
Qoppa Software

Field Summary
 
Fields inherited from interface com.qoppa.pdf.annotations.FreeText
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_TOP, FREE_TEXT_TYPEWRITER
 
Fields inherited from interface 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
 
Method Summary
 double[] getArrow()
          Returns an array representing the coordinates of the arrow
 Rectangle2D getInnerRect()
          Returns the innerRect
 void setArrow(double[] arrow)
          Sets the coordinates of the callout arrow
 void setInnerRect(Rectangle2D innerRect)
          Sets the innerRect relative to the annotation rectangle.
 
Methods inherited from interface com.qoppa.pdf.annotations.FreeText
getAlignHorizontal, getAlignVertical, getBorderColor, getBorderRect, getContents, getFont, getIntent, getRotation, getTextColor, isIntentTypeWriter, setAlignHorizontal, setAlignVertical, setBorderColor, setBorderRect, setContents, setFont, setIntent, setRotation, setTextColor
 
Methods inherited from interface com.qoppa.pdf.annotations.Annotation
getActions, getBorderStyle, getBorderWidth, getColor, getComponent, getCreationDate, getCreator, getFlags, getModifiedDate, getName, getOpacity, getRectangle, getSubject, getSubtype, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isPrintable, isReadOnly, paint, paint, print, revalidate, setActions, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLayer, setLocked, setModifiedDate, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPrintable, setReadOnly, setRectangle, setSubject, setSubtype, setTriggerActions, shiftRectangle
 

Method Detail

setInnerRect

void setInnerRect(Rectangle2D innerRect)
Sets the innerRect relative to the annotation rectangle.

Parameters:
innerRect - Where innerRect.x is the distance between the inner rectangle and left of the annotation rectangle, innerRect.y is the distance between the inner rectangle and the top of the annotation rectangle, innerRect.width is the width of the inner rectangle, and innerRect.height is the height of innerRectangle

getInnerRect

Rectangle2D getInnerRect()
Returns the innerRect


setArrow

void setArrow(double[] arrow)
Sets the coordinates of the callout arrow

Parameters:
arrow - An array of either 4 or 6 components. If 6 components, the components represent: {startingPointX, startingPointY, kneePointX, kneePointY, endPointX, endPointY} If 4 components, the components represent: {startingPointX, startingPointY, endPointX, endPointY}

getArrow

double[] getArrow()
Returns an array representing the coordinates of the arrow