gistoolkit.application.command
Class NewShapeCommand

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bygistoolkit.application.command.SimpleCommand
          extended bygistoolkit.application.command.NewShapeCommand
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, Command, java.util.EventListener, java.awt.event.MouseListener, java.io.Serializable

public class NewShapeCommand
extends SimpleCommand
implements java.awt.event.ActionListener, java.awt.event.MouseListener

Command to select objects on the display to edit, and then edit (move the nodes of the selected object) Creation date: (4/24/2001 2:17:21 PM)

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.AbstractAction
 
Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
NewShapeCommand()
          SelectCommand constructor comment.
NewShapeCommand(GISEditor inEditor)
          Construct a simple command with this display.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent inActionEvent)
          Respont to the actions of the buttons
 void execute()
          Sets the draw model in the display.
 void executeDraw(DrawModel inDrawModel)
          Called when the draw model has completed it's action.
 void mouseClicked(java.awt.event.MouseEvent inMouseEvent)
           
 void mouseEntered(java.awt.event.MouseEvent inMouseEvent)
           
 void mouseExited(java.awt.event.MouseEvent inMouseEvent)
           
 void mousePressed(java.awt.event.MouseEvent inMouseEvent)
           
 void mouseReleased(java.awt.event.MouseEvent inMouseEvent)
           
 void removeDraw(DrawModel inDrawModel)
          Removes the additional buttons from visibility.
 void setButton(GISMenuButton inButton)
          Set the button in this command.
 
Methods inherited from class gistoolkit.application.command.SimpleCommand
executeAlternate, getGISDisplay, getGISEditor, getIcon, setGISDisplay, setGISEditor, showError, showInformation
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewShapeCommand

public NewShapeCommand()
SelectCommand constructor comment.


NewShapeCommand

public NewShapeCommand(GISEditor inEditor)
Construct a simple command with this display.

Method Detail

execute

public void execute()
Sets the draw model in the display.

Specified by:
execute in interface Command
Overrides:
execute in class SimpleCommand

executeDraw

public void executeDraw(DrawModel inDrawModel)
Called when the draw model has completed it's action.

Specified by:
executeDraw in interface Command
Overrides:
executeDraw in class SimpleCommand

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent inActionEvent)
Respont to the actions of the buttons

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class SimpleCommand

removeDraw

public void removeDraw(DrawModel inDrawModel)
Removes the additional buttons from visibility.

Specified by:
removeDraw in interface Command
Overrides:
removeDraw in class SimpleCommand

setButton

public void setButton(GISMenuButton inButton)
Set the button in this command. Allows this button to assign the sub buttons to the menu.


mousePressed

public void mousePressed(java.awt.event.MouseEvent inMouseEvent)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent inMouseEvent)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent inMouseEvent)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent inMouseEvent)
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent inMouseEvent)
Specified by:
mouseExited in interface java.awt.event.MouseListener