gistoolkit.application.command
Class CenterOnPointCommand

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

public class CenterOnPointCommand
extends SimpleCommand

Command to center the map where the user clicks.

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
CenterOnPointCommand(GISEditor inEditor)
          CenterOnPointCommand constructor comment.
 
Method Summary
 void execute()
          Execute is called when the button is pressed.
 void executeDraw(DrawModel inDrawModel)
          This method is called by the draw model when it has completed it's task.
static java.lang.String getName()
          The identifying name for this command
 
Methods inherited from class gistoolkit.application.command.SimpleCommand
actionPerformed, executeAlternate, getGISDisplay, getGISEditor, getIcon, removeDraw, 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

CenterOnPointCommand

public CenterOnPointCommand(GISEditor inEditor)
CenterOnPointCommand constructor comment.

Method Detail

getName

public static java.lang.String getName()
The identifying name for this command


execute

public void execute()
Description copied from class: SimpleCommand
Execute is called when the button is pressed. When the button is pressed, this method is executed. Typically, it will change the state of the application by setting a draw model, or updating the selected objects or something. If it sets a draw model, it will usually set itself as the target of the drawmodel, so executeDraw will be called when the drawmodel has completed it's task.

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

executeDraw

public void executeDraw(DrawModel inDrawModel)
Description copied from class: SimpleCommand
This method is called by the draw model when it has completed it's task. If the command created a click draw model, then this method is called when the mouse is clicked on the display.

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