public class AreaHighlightTool 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 |
---|
AreaHighlightTool() |
Modifier and Type | Method and Description |
---|---|
static BasicStroke |
getDefaultBasicStroke()
Gets the default stroke.
|
static Color |
getDefaultBorderColor()
Returns the color used for the border when a new annotation is created.
|
static int |
getDefaultBorderWidth()
Deprecated.
Replaced with
getDefaultBorderWidth2D() for more precise border widths |
static double |
getDefaultBorderWidth2D()
Returns the border width used when a new highlight is created.
|
static Color |
getDefaultFillColor()
Returns the color used as the highlight when a new highlight annotation is created.
|
static int |
getDefaultTransparency()
Returns the value of the transparency factor used when a new highlight annotation is 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 |
setDefaultBasicStroke(BasicStroke defaultStroke)
Sets the default stroke.
|
static void |
setDefaultBorderColor(Color defaultBorderColor)
Sets the color used for the border when a new annotation is created.
|
static void |
setDefaultBorderWidth(int defaultBorderWidth)
Deprecated.
Replaced with
setDefaultBorderWidth2D(double) for more precise border widths |
static void |
setDefaultBorderWidth2D(double defaultBorderWidth)
Sets the border width used when a new annotation is created.
|
static void |
setDefaultFillColor(Color defaultFillColor)
Sets the color used for highlighting when a new highlight is created.
|
static void |
setDefaultProperties(Square square)
This is a convenience method to set the Square-AreaHighlight properties
to the AreaHighlightTool default properties.
|
static void |
setDefaultTransparency(int defaultTransparency)
Sets the value of the transparency factor used when a new highlight annotation is created.
|
static void |
setMinimumAnnotSize(Dimension minimumAnnotSize)
Sets the minimum size for the annotations created with this Tool.
|
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(Square square)
public static int getDefaultTransparency()
public static void setDefaultTransparency(int defaultTransparency)
defaultTransparency
- the defaultTransparency to setpublic static double getDefaultBorderWidth2D()
public static void setDefaultBorderWidth2D(double defaultBorderWidth)
defaultBorderWidth
- The new default border widthpublic static int getDefaultBorderWidth()
getDefaultBorderWidth2D()
for more precise border widthspublic static void setDefaultBorderWidth(int defaultBorderWidth)
setDefaultBorderWidth2D(double)
for more precise border widthsdefaultBorderWidth
- The new default line widthpublic static Color getDefaultBorderColor()
public static void setDefaultBorderColor(Color defaultBorderColor)
defaultBorderColor
- the defaultBorderColor to setpublic static Color getDefaultFillColor()
public static void setDefaultFillColor(Color defaultFillColor)
defaultFillColor
- the defaultFillColor to setpublic static BasicStroke getDefaultBasicStroke()
public static void setDefaultBasicStroke(BasicStroke defaultStroke)
defaultStroke
- The new default strokepublic 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 void setMinimumAnnotSize(Dimension minimumAnnotSize)
minimumAnnotSize
- the minimumAnnotSize to set