public class CaretTool extends Object
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 and Description |
---|
CaretTool() |
Modifier and Type | Method and Description |
---|---|
static Color |
getDefaultColor()
Returns the default color.
|
static double |
getDefaultSize() |
static int |
getDefaultTransparency()
Gets the default transparency value that is used when new annotations are created.
|
static Dimension |
getMinimumAnnotSize()
Gets the minimum size for the annotations created with this Tool.
|
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 |
setDefaultColor(Color defaultColor)
Sets the default color.
|
static void |
setDefaultProperties(Caret caret)
This is a convenience method to set the Text properties to the Caret
Tool default properties.
|
static void |
setDefaultSize(int defaultSize)
Sets the default size when new insertion annotations are created.
|
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 |
setToolSticky(boolean toolSticky)
Sets the flag that indicates whether this tool is sticky or not.
|
public static void setDefaultProperties(Caret caret)
public static int getDefaultTransparency()
public static void setDefaultTransparency(int defaultTransparency)
defaultTransparency
- Thew new default transparency valuepublic static void setDefaultSize(int defaultSize)
defaultSize
- The default width of the annotation (annotations are square, so
only one dimension is needed)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 boolean isShowPropDialog()
public static void setShowPropDialog(boolean showPropDialog)
showPropDialog
- the showPropDialog to setpublic static Dimension getMinimumAnnotSize()
public static double getDefaultSize()