ucar.unidata.idv.control.drawing
Class DrawingCommand

java.lang.Object
  extended by ucar.unidata.idv.control.drawing.DrawingCommand
Direct Known Subclasses:
GlyphCreatorCommand

public class DrawingCommand
extends Object

Class DrawingCommand.

Version:
$Revision: 1.7 $
Author:
IDV Development Team

Constructor Summary
DrawingCommand()
          ctor
DrawingCommand(String label, String message, String iconPath)
          ctor
DrawingCommand(String label, String message, String iconPath, int flags)
          ctor
 
Method Summary
 boolean equals(Object o)
          Equals
 int getFlags()
          Get the Flags property.
 String getIconPath()
          Get the IconPath property.
 String getLabel()
          Get the Label property.
 String getMessage()
          Get the Message property.
 boolean isCapable(int mask)
          Is this command capable of the task defined in mask
 void setFlags(int value)
          Set the Flags property.
 void setIconPath(String value)
          Set the IconPath property.
 void setLabel(String value)
          Set the Label property.
 void setMessage(String value)
          Set the Message property.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DrawingCommand

public DrawingCommand()
ctor


DrawingCommand

public DrawingCommand(String label,
                      String message,
                      String iconPath)
ctor

Parameters:
label - Label
message - Message
iconPath - Toolbar icon

DrawingCommand

public DrawingCommand(String label,
                      String message,
                      String iconPath,
                      int flags)
ctor

Parameters:
label - Label
message - Message
iconPath - Toolbar icon
flags - Flags
Method Detail

isCapable

public boolean isCapable(int mask)
Is this command capable of the task defined in mask

Parameters:
mask - The mask
Returns:
Is capable

equals

public boolean equals(Object o)
Equals

Overrides:
equals in class Object
Parameters:
o - Object
Returns:
Is equals

setIconPath

public void setIconPath(String value)
Set the IconPath property.

Parameters:
value - The new value for IconPath

getIconPath

public String getIconPath()
Get the IconPath property.

Returns:
The IconPath

setLabel

public void setLabel(String value)
Set the Label property.

Parameters:
value - The new value for Label

getLabel

public String getLabel()
Get the Label property.

Returns:
The Label

setMessage

public void setMessage(String value)
Set the Message property.

Parameters:
value - The new value for Message

getMessage

public String 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