gistoolkit.display.drawmodel
Class HighlightDrawModel

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

public class HighlightDrawModel
extends SimpleDrawModel

A model used for highlighting features on the map as the pointer is moved over it.


Field Summary
 
Fields inherited from class gistoolkit.display.drawmodel.SimpleDrawModel
myCommand, myGISDisplay
 
Constructor Summary
HighlightDrawModel()
          HighlightDrawModel constructor comment.
HighlightDrawModel(Command inCommand)
          HighlightDrawModel constructor comment.
 
Method Summary
 void add(HighlightDrawModelListener inListener)
          Adds the Listeners interest to events from this HighlightDrawModel.
 void draw()
          The method called to draw the images on the map.
 Layer getLastSelectedLayer()
          Return the last layer an object was selected from.
 Layer getLayer()
          Return the layer associated with the record that was just selected.
 Record getRecord()
          Returns the last selected record.
 void mouseMoved(java.awt.event.MouseEvent e)
          Invoked when the mouse button has been moved on a component (with no buttons down).
 void mouseReleased(java.awt.event.MouseEvent e)
          Called when the user releases the mouse butotn.
 void remove(HighlightDrawModelListener inListener)
          Removes this listener from the list of listeners interested in events from this HighlightDrawModel.
 void reset()
          Reset the position of the display
 
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

HighlightDrawModel

public HighlightDrawModel()
HighlightDrawModel constructor comment.


HighlightDrawModel

public HighlightDrawModel(Command inCommand)
HighlightDrawModel constructor comment.

Method Detail

add

public void add(HighlightDrawModelListener inListener)
Adds the Listeners interest to events from this HighlightDrawModel.


draw

public void draw()
The method called to draw the images on the map.

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

getLastSelectedLayer

public Layer getLastSelectedLayer()
Return the last layer an object was selected from.


getRecord

public Record getRecord()
Returns the last selected record. If there is not record selected, then it returns null.


mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (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.

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

remove

public void remove(HighlightDrawModelListener inListener)
Removes this listener from the list of listeners interested in events from this HighlightDrawModel.


getLayer

public Layer getLayer()
Return the layer associated with the record that was just selected.


reset

public void reset()
Reset the position of the display

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