|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdfNotes.settings.TypewriterTool
This class manages the default properties and settings for the Typewriter
Tool. The method setDefaultProperties() can be used to set the
Annotation properties to this Tool's default properties.
The Tool's property values can be retrieved and initialized with the methods
toXMLString() and setFromXML() in the
AnnotationTools class. Please see
AnnotationTools.
| Constructor Summary | |
TypewriterTool()
|
|
| Method Summary | |
static Color |
getDefaultColor()
Returns the default color. |
static Font |
getDefaultFont()
Gets the default font for free text annotations. |
static Dimension |
getMinimumAnnotSize()
Gets the minimum size for the annotations created with this Tool. |
static boolean |
isToolSticky()
Returns a flag indicating if this tool is sticky. |
static void |
setDefaultColor(Color defaultColor)
Sets the default color. |
static void |
setDefaultFont(String name,
int style,
int size)
Sets the default Font for the FreeTextTool. |
static void |
setDefaultProperties(FreeText freeText)
This is a convenience method to set the FreeText properties to the TypewriterTool default properties. |
static void |
setMinimumAnnotSize(Dimension minimumAnnotSize)
Sets the minimum size for the annotations created with this Tool. |
static void |
setToolSticky(boolean toolSticky)
Sets the flag that indicates whether this tool is sticky or not. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TypewriterTool()
| Method Detail |
public static void setDefaultProperties(FreeText freeText)
public static Font getDefaultFont()
public static void setDefaultFont(String name,
int style,
int size)
The Font must be one of the PDF supported native fonts, therefore the only valid values for the font name are:
Helvetica or sansserif
Courier or monospaced
Times New Roman or serif
If the font name is not one of the preceding values, the font will default to sansserif.
name - style - size - public static Color getDefaultColor()
public static void setDefaultColor(Color defaultColor)
defaultColor - the new default colorpublic static boolean isToolSticky()
public static void setToolSticky(boolean toolSticky)
toolSticky - The new value of the sticky flag.public static Dimension getMinimumAnnotSize()
public static void setMinimumAnnotSize(Dimension minimumAnnotSize)
minimumAnnotSize - the minimumAnnotSize to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||