Package ucar.unidata.idv.control.drawing
Class GlyphCreatorCommand
java.lang.Object
ucar.unidata.idv.control.drawing.DrawingCommand
ucar.unidata.idv.control.drawing.GlyphCreatorCommand
Class GlyphCreatorCommand represents when a glyph should be created
- Version:
- $Revision: 1.21 $
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DrawingCommandcommandstatic final DrawingCommandcommand to create a closed polygonstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommandstatic final DrawingCommandcommand -
Constructor Summary
ConstructorsConstructorDescriptionGlyphCreatorCommand(String label, String message, String iconPath) CtorGlyphCreatorCommand(String label, String message, String iconPath, boolean needsMouse) CtorGlyphCreatorCommand(String label, String message, String iconPath, int flags) CtorGlyphCreatorCommand(String label, String message, String iconPath, int flags, boolean needsMouse) Ctor -
Method Summary
Modifier and TypeMethodDescriptionabstract DrawingGlyphcreateGlyph(DrawingControl control, DisplayEvent event) Create the glyphbooleanGet the NeedsMouse property.Methods inherited from class ucar.unidata.idv.control.drawing.DrawingCommand
equals, getFlags, getIconPath, getLabel, getMessage, isCapable, setFlags, setIconPath, setLabel, setMessage
-
Field Details
-
CMD_SMOOTHPOLYGON
command -
CMD_CLOSEDPOLYGON
command to create a closed polygon -
CMD_POLYGON
command -
CMD_LINE
command -
CMD_SYMBOL
command -
CMD_TRANSECT
command -
CMD_RECTANGLE
command -
CMD_ARROW
command -
CMD_HARROW
command -
CMD_VARROW
command -
CMD_DIAMOND
command -
CMD_OVAL
command -
CMD_TEXT
command -
CMD_WAYPOINT
command -
CMD_IMAGE
command -
CMD_MOVIE
command -
CMD_HIGH
command -
CMD_LOW
command
-
-
Constructor Details
-
GlyphCreatorCommand
Ctor- Parameters:
label- Labelmessage- MessageiconPath- The icon to display
-
GlyphCreatorCommand
Ctor- Parameters:
label- Labelmessage- MessageiconPath- The icon to displayneedsMouse- Does this glyph creation need a mouse press
-
GlyphCreatorCommand
Ctor- Parameters:
label- Labelmessage- MessageiconPath- The icon to displayflags- Command flags
-
GlyphCreatorCommand
public GlyphCreatorCommand(String label, String message, String iconPath, int flags, boolean needsMouse) Ctor- Parameters:
label- Labelmessage- MessageiconPath- The icon to displayflags- Command flagsneedsMouse- Does this glyph creation need a mouse press
-
-
Method Details
-
getNeedsMouse
public boolean getNeedsMouse()Get the NeedsMouse property.- Returns:
- The NeedsMouse
-
createGlyph
public abstract DrawingGlyph createGlyph(DrawingControl control, DisplayEvent event) throws VisADException, RemoteException Create the glyph- Parameters:
control- DrawingControl we are inevent- The event- Returns:
- The glyph
- Throws:
RemoteException- On badnessVisADException- On badness
-