Package ucar.unidata.idv.control.drawing
Class DrawingCommand
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingCommand
- Direct Known Subclasses:
GlyphCreatorCommand
Class DrawingCommand.
- Version:
- $Revision: 1.7 $
- Author:
- IDV Development Team
-
Constructor Summary
ConstructorsConstructorDescriptionctorDrawingCommand(String label, String message, String iconPath) ctorDrawingCommand(String label, String message, String iconPath, int flags) ctor -
Method Summary
Modifier and TypeMethodDescriptionbooleanEqualsintgetFlags()Get the Flags property.Get the IconPath property.getLabel()Get the Label property.Get the Message property.booleanisCapable(int mask) Is this command capable of the task defined in maskvoidsetFlags(int value) Set the Flags property.voidsetIconPath(String value) Set the IconPath property.voidSet the Label property.voidsetMessage(String value) Set the Message property.
-
Constructor Details
-
DrawingCommand
public DrawingCommand()ctor -
DrawingCommand
ctor- Parameters:
label- Labelmessage- MessageiconPath- Toolbar icon
-
DrawingCommand
ctor- Parameters:
label- Labelmessage- MessageiconPath- Toolbar iconflags- Flags
-
-
Method Details
-
isCapable
public boolean isCapable(int mask) Is this command capable of the task defined in mask- Parameters:
mask- The mask- Returns:
- Is capable
-
equals
Equals -
setIconPath
Set the IconPath property.- Parameters:
value- The new value for IconPath
-
getIconPath
Get the IconPath property.- Returns:
- The IconPath
-
setLabel
Set the Label property.- Parameters:
value- The new value for Label
-
getLabel
Get the Label property.- Returns:
- The Label
-
setMessage
Set the Message property.- Parameters:
value- The new value for Message
-
getMessage
Get the Message property.- Returns:
- The Message
-
setFlags
public void setFlags(int value) Set the Flags property.- Parameters:
value- The new value for Flags
-
getFlags
public int getFlags()Get the Flags property.- Returns:
- The Flags
-