|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.annotations.Annotation
com.qoppa.pdf.annotations.ShapeAnnotation
Abstract class to be extended by annotations that contain textual content.
| Field Summary | |
static int |
LE_CIRCLE
|
static String |
LE_CIRCLE_STR
|
static int |
LE_CLOSEDARROW
|
static String |
LE_CLOSEDARROW_STR
|
static int |
LE_DIAMOND
|
static String |
LE_DIAMOND_STR
|
static int |
LE_NONE
|
static String |
LE_NONE_STR
|
static int |
LE_OPENARROW
|
static String |
LE_OPENARROW_STR
|
static int |
LE_SQUARE
|
static String |
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 |
| Method Summary | |
double |
getBorderWidth()
Gets this annotation's border width. |
String |
getContents()
Returns the string contents for this annotation. |
Color |
getInternalColor()
Gets the fill color for this annotation. |
BasicStroke |
getStroke()
Gets the stroke to use when drawing the ink annotation. |
void |
paintImpl(Graphics g,
boolean hasFocus)
Draws the shape. |
abstract void |
revalidate()
Revalidate the shape drawn by this annotation. |
void |
setBorderWidth(double borderWidth)
Sets the annotation's border width. |
void |
setContents(String contents)
Sets the string contents for this annotation. |
void |
setInternalColor(Color internalColor)
Sets the fill color for this annotation. |
void |
setRectangle(Rectangle2D rectangle)
Sets the annotation's rectangle. |
void |
setStroke(BasicStroke stroke)
Sets the stroke used when drawing the ink annotation. |
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
createComponent, getActions, getAppearStream, getBorderStyle, getColor, getComponent, getCreationDate, getCreator, getFlags, getLayer, getName, getOpacity, getPopup, getRectangle, getSubtype, 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 |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LE_NONE
public static final int LE_SQUARE
public static final int LE_CIRCLE
public static final int LE_DIAMOND
public static final int LE_OPENARROW
public static final int LE_CLOSEDARROW
public static final String LE_NONE_STR
public static final String LE_SQUARE_STR
public static final String LE_CIRCLE_STR
public static final String LE_DIAMOND_STR
public static final String LE_OPENARROW_STR
public static final String LE_CLOSEDARROW_STR
| Method Detail |
public String getContents()
getContents in class Annotationpublic void setContents(String contents)
public BasicStroke getStroke()
public void setStroke(BasicStroke stroke)
stroke - The stroke to use when drawing the annotation.public void setBorderWidth(double borderWidth)
Annotation
setBorderWidth in class AnnotationborderWidth - Width of the border.public double getBorderWidth()
Annotation
getBorderWidth in class Annotationpublic Color getInternalColor()
public void setInternalColor(Color internalColor)
internalColor - The color to use to fill the rectangle. If null, the interior will be transparent.
public void paintImpl(Graphics g,
boolean hasFocus)
g - The graphics object to use when drawing.public void setRectangle(Rectangle2D rectangle)
Annotation
setRectangle in class Annotationrectangle - The new location of the annotation on the page.public abstract void revalidate()
revalidate in class Annotation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||