gistoolkit.display.drawmodel
Class SelectPointModel

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

public class SelectPointModel
extends SelectDrawModel

Handles the selection of a single object from the currently selected layer.


Field Summary
 
Fields inherited from class gistoolkit.display.drawmodel.SelectDrawModel
mySelectedRecords
 
Fields inherited from class gistoolkit.display.drawmodel.SimpleDrawModel
myCommand, myGISDisplay
 
Constructor Summary
SelectPointModel()
          Creates new SelectDrawModel
SelectPointModel(Command inCommand)
          Creates new SelectDrawModel
 
Method Summary
 void draw()
          Draw the selected records
 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 butotn.
 void reset()
          Reset the display
 
Methods inherited from class gistoolkit.display.drawmodel.SelectDrawModel
add, fireRecordsDeselected, fireRecordsSelected, getNear, getSelectedLayer, getSelectedRecords, remove, setSelectedLayer, setSelectedRecords, setSelectedRecordsNoNotify
 
Methods inherited from class gistoolkit.display.drawmodel.SimpleDrawModel
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

SelectPointModel

public SelectPointModel()
Creates new SelectDrawModel


SelectPointModel

public SelectPointModel(Command inCommand)
Creates new SelectDrawModel

Method Detail

getPoint

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


draw

public void draw()
Draw the selected records

Specified by:
draw in interface DrawModel
Overrides:
draw in class SelectDrawModel

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Called when the user releases the mouse butotn. Causes the display to keep the currently selected shape selected.

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 SelectDrawModel