|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.qoppa.pdfNotes.settings.PencilTool
public class PencilTool
This class manages the default properties and settings for the Pencil 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 | |
|---|---|
PencilTool()
|
|
| Method Summary | |
|---|---|
static Color |
getDefaultBorderColor()
Returns the color used for the line when a new annotation is created. |
static int |
getDefaultBorderWidth()
Deprecated. Replaced with getDefaultBorderWidth2D() for more precise border widths |
static double |
getDefaultBorderWidth2D()
Returns the default line width, used when new annotations are created. |
static int |
getDefaultTransparency()
Gets the default transparency value that is used when new annotations are created. |
static int |
getTimerDelay()
Return the timer delay. |
static boolean |
isShowPropDialog()
Gets the flag for this Tool to show or not the annotation properties popup dialog after an annotation has been created. |
static boolean |
isToolSticky()
Returns a flag indicating if this tool is sticky. |
static void |
setDefaultBorderColor(Color defaultBorderColor)
Sets the default line color. |
static void |
setDefaultBorderWidth(int defaultBorderWidth)
Deprecated. Replaced with setDefaultBorderWidth2D(double) for more precise border widths |
static void |
setDefaultBorderWidth2D(double defaultBorderWidth)
Sets the line width used when a new annotation is created. |
static void |
setDefaultProperties(Ink ink)
This is a convenience method to set the Ink properties to the PencilTool default properties. |
static void |
setDefaultTransparency(int defaultTransparency)
Sets the default transparency values when new annotations are created. |
static void |
setShowPropDialog(boolean showPropDialog)
Sets the flag for this Tool to show or not the annotation properties popup dialog after an annotation has been created. |
static void |
setTimerDelay(int timerDelay)
Sets the timer delay. |
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 PencilTool()
| Method Detail |
|---|
public static void setDefaultProperties(Ink ink)
public static int getTimerDelay()
public static void setTimerDelay(int timerDelay)
timerDelay - The new value of the timer delaypublic static int getDefaultTransparency()
public static void setDefaultTransparency(int defaultTransparency)
defaultTransparency - Thew new default transparency valuepublic static double getDefaultBorderWidth2D()
public static void setDefaultBorderWidth2D(double defaultBorderWidth)
defaultBorderWidth - The new default line widthpublic static int getDefaultBorderWidth()
getDefaultBorderWidth2D() for more precise border widths
public static void setDefaultBorderWidth(int defaultBorderWidth)
setDefaultBorderWidth2D(double) for more precise border widths
defaultBorderWidth - The new default line widthpublic static Color getDefaultBorderColor()
public static void setDefaultBorderColor(Color defaultBorderColor)
defaultBorderColor - The new default line color.public static boolean isToolSticky()
public static void setToolSticky(boolean toolSticky)
toolSticky - The new value of the sticky flag.public static boolean isShowPropDialog()
public static void setShowPropDialog(boolean showPropDialog)
showPropDialog - the showPropDialog to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||