gistoolkit.display.drawmodel
Class ClickPointModel

java.lang.Object
  extended bygistoolkit.display.drawmodel.SimpleDrawModel
      extended bygistoolkit.display.drawmodel.ClickPointModel
All Implemented Interfaces:
DrawModel, java.util.EventListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener

public class ClickPointModel
extends SimpleDrawModel

Draw model for capturing a click location on the map.


Field Summary
 
Fields inherited from class gistoolkit.display.drawmodel.SimpleDrawModel
myCommand, myGISDisplay
 
Constructor Summary
ClickPointModel()
           
ClickPointModel(Command inCommand)
           
 
Method Summary
 Point getPoint()
          Retrieve the point where the user released the mounse.
 void mouseReleased(java.awt.event.MouseEvent e)
          Called when the user releases the mouse button.
 void reset()
          Reset the display
 
Methods inherited from class gistoolkit.display.drawmodel.SimpleDrawModel
draw, getGISDisplay, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, remove, setCommand, setGISDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClickPointModel

public ClickPointModel()

ClickPointModel

public ClickPointModel(Command inCommand)
Method Detail

getPoint

public Point getPoint()
Retrieve the point where the user released the mounse.


mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Called when the user releases the mouse button. Records the position of the click.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Overrides:
mouseReleased in class SimpleDrawModel

reset

public void reset()
Reset the display

Specified by:
reset in interface DrawModel
Overrides:
reset in class SimpleDrawModel