public class CalloutTool 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_PROPS_DIALOG |
Constructor and Description |
---|
CalloutTool() |
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 double |
getDefaultBorderWidth2D()
Returns the default border width, used when new annotations are created.
|
static Color |
getDefaultColor()
Returns the default color.
|
static Color |
getDefaultFillColor()
Gets the default fill color.
|
static String |
getDefaultFontName()
Returns the name of the default font.
|
static float |
getDefaultFontSize()
Returns the point size of the default font
|
static int |
getDefaultHorizontalAlign()
Returns the default horizontal alignment property used when a new free text annotation is created.
|
static boolean |
getDefaultStrikethrough()
Gets the default strikethrough value that is used when new annotations are created.
|
static int |
getDefaultTransparency()
Gets the default transparency value that is used when new annotations are created.
|
static boolean |
getDefaultUnderline()
Gets the default underline value that is used when new annotations are created.
|
static int |
getDefaultVerticalAlign()
Returns the default vertical alignment property used when a new free text annotation is created.
|
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 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 default border color.
|
static void |
setDefaultBorderWidth2D(double defaultBorderWidth)
Sets the border width used when a new annotation is created.
|
static void |
setDefaultColor(Color defaultColor)
Sets the default color.
|
static void |
setDefaultFillColor(Color defaultFillColor)
Sets the default fill color.
|
static void |
setDefaultFontName(String fontName)
Sets the name of the default font.
|
static void |
setDefaultFontSize(float fontSize)
Sets the point size of the default font.
|
static void |
setDefaultHorizontalAlign(int defaultHorizontalAlign)
Sets the default horizontal alignment property.
|
static void |
setDefaultProperties(Callout callout)
This is a convenience method to set the Callout properties to the
CalloutTool default properties.
|
static void |
setDefaultStrikethrough(boolean defaultStrikethrough)
Sets the default strikethrough value that is used when new annotations are created.
|
static void |
setDefaultTransparency(int defaultTransparency)
Sets the default transparency values when new annotations are created.
|
static void |
setDefaultUnderline(boolean defaultUnderline)
Sets the default underline value that is used when new annotations are created.
|
static void |
setDefaultVerticalAlign(int defaultVerticalAlign)
Sets the default vertical alignment property.
|
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.
|
static void |
setToolSticky(boolean toolSticky)
Sets the flag that indicates whether this tool is sticky or not.
|
public static int SHOW_NOTHING
public static int SHOW_PROPS_DIALOG
public static void setDefaultProperties(Callout callout)
public static Color getDefaultFillColor()
public static void setDefaultFillColor(Color defaultFillColor)
defaultFillColor
- The new default fill colorpublic static Color getDefaultBorderColor()
public static void setDefaultBorderColor(Color defaultBorderColor)
defaultBorderColor
- The new default border color.public static double getDefaultBorderWidth2D()
public static void setDefaultBorderWidth2D(double defaultBorderWidth)
defaultBorderWidth
- The new default border widthpublic static Color getDefaultColor()
public static void setDefaultColor(Color defaultColor)
defaultColor
- the new default colorpublic static int getDefaultHorizontalAlign()
public static void setDefaultHorizontalAlign(int defaultHorizontalAlign)
defaultHorizontalAlign
- the new value for the default horizontal alignmentpublic static int getDefaultVerticalAlign()
public static void setDefaultVerticalAlign(int defaultVerticalAlign)
defaultVerticalAlign
- the new value for the default vertical alignmentpublic 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.@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 setpublic static String getDefaultFontName()
public static void setDefaultFontName(String fontName)
The supported fonts are Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique, Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique, Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic.
The font will default to Helvetica.
fontName
- The default font name.public static float getDefaultFontSize()
public static void setDefaultFontSize(float fontSize)
fontSize
- The default font size.public static int getDefaultTransparency()
public static void setDefaultTransparency(int defaultTransparency)
defaultTransparency
- The new default transparency valuepublic static boolean getDefaultStrikethrough()
public static void setDefaultStrikethrough(boolean defaultStrikethrough)
defaultStrikethrough
- The new default strikethrough valuepublic static boolean getDefaultUnderline()
public static void setDefaultUnderline(boolean defaultUnderline)
defaultUnderline
- The new default underline value