public class SoundTool 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 |
---|
SoundTool() |
Modifier and Type | Method and Description |
---|---|
static Color |
getDefaultColor()
Returns the default color.
|
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 int |
getShowOption()
Returns the option for what this Tool should do after it creates the
annotation.
|
static boolean |
isShowPropDialog()
Deprecated.
|
static void |
setDefaultColor(Color defaultColor)
Sets the default color.
|
static void |
setDefaultProperties(Sound sound)
This is a convenience method to set the Sound properties to the SoundTool
default properties.
|
static void |
setDefaultTransparency(int defaultTransparency)
Sets the default transparency values when new annotations are created.
|
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(Sound sound)
public static Color getDefaultColor()
public static void setDefaultColor(Color defaultColor)
defaultColor
- the new default color@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 int getDefaultTransparency()
public static void setDefaultTransparency(int defaultTransparency)
defaultTransparency
- Thew new default transparency value