|
|||||||||||
| 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.FreeText
Class representing a FreeText annotation in a PDF document. FreeText annotations are displayed as a text box on the PDF document.
| Field Summary | |
static int |
ALIGN_BOTTOM
|
static int |
ALIGN_CENTER
|
static int |
ALIGN_LEFT
|
static int |
ALIGN_RIGHT
|
static int |
ALIGN_TOP
|
static String |
FREE_TEXT_TYPEWRITER
|
| 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 | |
FreeText(String contents)
Constructs a free text annotation with the give content. |
|
| Method Summary | |
JComponent |
createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
Creates a JComponent object capable of displaying this annotation. |
int |
getAlignHorizontal()
|
int |
getAlignVertical()
|
Color |
getBorderColor()
|
Rectangle2D.Double |
getBorderRect()
|
String |
getContents()
Returns the string contents for this annotation. |
Vector |
getDrawLines()
|
Font |
getFont()
|
String |
getIntent()
Returns the description of the intent of the FreeText Annotation |
int |
getRotation()
|
String |
getSubtype()
Returns this annotations subtype: "FreeText" |
Color |
getTextColor()
|
boolean |
isIntentTypeWriter()
|
void |
paintImpl(Graphics g,
boolean hasFocus)
|
void |
revalidate()
Revalidates this annotation. |
void |
setAlignHorizontal(int align)
|
void |
setAlignVertical(int align)
|
void |
setBorderColor(Color borderColor)
|
void |
setBorderRect(Rectangle2D.Double borderRect)
|
void |
setBorderWidth(double borderWidth)
Sets the annotation's border width. |
void |
setContents(String contents)
Sets the string contents for this annotation. |
void |
setFont(Font font)
|
void |
setIntent(String intent)
Set the description of the intent of the FreeText Annotation |
void |
setRotation(int rotation)
|
void |
setTextColor(Color textColor)
|
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
getActions, getAppearStream, getBorderStyle, getBorderWidth, 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, setRectangle, setTriggerActions, shiftRectangle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
public static final int ALIGN_TOP
public static final int ALIGN_BOTTOM
public static final String FREE_TEXT_TYPEWRITER
| Constructor Detail |
public FreeText(String contents)
contents - The text content.| Method Detail |
public String getSubtype()
getSubtype in class Annotation
public JComponent createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
createComponent in class Annotationpublic String getContents()
getContents in class Annotationpublic void setContents(String contents)
public int getAlignHorizontal()
public void setAlignHorizontal(int align)
public int getAlignVertical()
public void setAlignVertical(int align)
public void revalidate()
Annotation
revalidate in class Annotation
public void paintImpl(Graphics g,
boolean hasFocus)
public Font getFont()
public void setFont(Font font)
public Color getTextColor()
public void setTextColor(Color textColor)
public Color getBorderColor()
public void setBorderColor(Color borderColor)
public Rectangle2D.Double getBorderRect()
public void setBorderRect(Rectangle2D.Double borderRect)
public void setBorderWidth(double borderWidth)
Annotation
setBorderWidth in class AnnotationborderWidth - Width of the border.public Vector getDrawLines()
public int getRotation()
public void setRotation(int rotation)
public String getIntent()
public void setIntent(String intent)
intent - the intent to setpublic boolean isIntentTypeWriter()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||