public class LinkTool 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
.
Modifier and Type | Field and Description |
---|---|
static int |
SHOW_NOTHING |
static int |
SHOW_POPUP |
static int |
SHOW_PROPS_DIALOG |
Constructor and Description |
---|
LinkTool() |
Modifier and Type | Method and Description |
---|---|
static Color |
getDefaultBorderColor()
Returns the color used for the border when a new annotation is created.
|
static char |
getDefaultBorderStyle()
Return the char signifying the border style when a new annotation is created.
|
static double |
getDefaultBorderWidth2D()
Returns the default border width, used when new annotations are created.
|
static String |
getDefaultHighlightMode()
Returns the annotation's highlighting mode, the visual effect to be used
when the mouse button is pressed or held down inside its active area.
|
static Dimension |
getMinimumAnnotSize()
Gets the minimum size for the annotations created with this Tool.
|
static int |
getShowOption()
Returns the option for what this Tool should do after it creates the
annotation.
|
static boolean |
isShowPropDialog()
Deprecated.
|
static void |
setDefaultBorderColor(Color defaultBorderColor)
Sets the default border color.
|
static void |
setDefaultBorderStyle(char style)
Sets the default border style used when new annotations are created.
|
static void |
setDefaultBorderWidth2D(double defaultBorderWidth)
Sets the border line width used when a new annotation is created.
|
static void |
setDefaultHighlightMode(String mode)
Sets the annotation's highlighting mode, the visual effect to be used
when the mouse button is pressed or held down inside its active area.
|
static void |
setDefaultProperties(Link link)
This is a convenience method to set the Link properties to the LinkTool
default properties.
|
static void |
setMinimumAnnotSize(Dimension minimumAnnotSize)
Sets the minimum size for the annotations created with this Tool.
|
static void |
setShowOption(int option)
Sets the option for what this Tool should do after it creates the
annotation.
|
static void |
setShowPropDialog(boolean showPropDialog)
Deprecated.
|
public static int SHOW_NOTHING
public static int SHOW_PROPS_DIALOG
public static int SHOW_POPUP
public static void setDefaultProperties(Link link)
public static double getDefaultBorderWidth2D()
public static void setDefaultBorderWidth2D(double defaultBorderWidth)
defaultBorderWidth
- The new default border line widthpublic static Color getDefaultBorderColor()
public static void setDefaultBorderColor(Color defaultBorderColor)
defaultBorderColor
- The new default border color.public static char getDefaultBorderStyle()
public static void setDefaultBorderStyle(char style)
style
- The new default border style.public static void setDefaultHighlightMode(String mode)
mode
- The annotation's highlighting mode.public static String getDefaultHighlightMode()
@Deprecated public static boolean isShowPropDialog()
@Deprecated public static void setShowPropDialog(boolean showPropDialog)
showPropDialog
- the showPropDialog to setpublic static int getShowOption()
SHOW_NOTHING
, SHOW_PROPS_DIALOG
, or
.public static void setShowOption(int option)
SHOW_NOTHING
, SHOW_PROPS_DIALOG
, or
.option
- public static Dimension getMinimumAnnotSize()
public static void setMinimumAnnotSize(Dimension minimumAnnotSize)
minimumAnnotSize
- the minimumAnnotSize to set