gistoolkit.display.drawmodel
Class SelectPointerModel

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

public class SelectPointerModel
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
SelectPointerModel()
          Creates new SelectDrawModel
SelectPointerModel(Command inCommand)
          Creates new SelectDrawModel
 
Method Summary
 void mouseMoved(java.awt.event.MouseEvent e)
          When the mouse moves around the display with no buttons down, then the item under the pointer will be selected.
 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, draw, 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, mousePressed, remove, setCommand, setGISDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectPointerModel

public SelectPointerModel()
Creates new SelectDrawModel


SelectPointerModel

public SelectPointerModel(Command inCommand)
Creates new SelectDrawModel

Method Detail

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
When the mouse moves around the display with no buttons down, then the item under the pointer will be selected. (with no buttons down).

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Overrides:
mouseMoved in class SimpleDrawModel

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