gistoolkit.display.drawmodel
Class PanDrawModel

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

public class PanDrawModel
extends SimpleDrawModel

A model to offset the map by a particular amount.


Field Summary
 
Fields inherited from class gistoolkit.display.drawmodel.SimpleDrawModel
myCommand, myGISDisplay
 
Constructor Summary
PanDrawModel()
          HighlightDrawModel constructor comment.
PanDrawModel(Command inCommand)
          HighlightDrawModel constructor comment.
 
Method Summary
 void draw()
          The function which is called to draw the image on the map.
 java.awt.Point getEndPoint()
          Return the point to which the mouse was dragged.
 java.awt.Point getStartPoint()
          Return the point where the mouse was clicket.
 void mouseDragged(java.awt.event.MouseEvent e)
          Called when the user releases the mouse button.
 void mousePressed(java.awt.event.MouseEvent e)
          Called when the user releases the mouse butotn.
 void mouseReleased(java.awt.event.MouseEvent e)
          Called when the user releases the mouse butotn.
 void reset()
          Reset the position of the display
 void setStartPoint(java.awt.Point inPoint)
          Sets the starting point for the Draw Model
 
Methods inherited from class gistoolkit.display.drawmodel.SimpleDrawModel
getGISDisplay, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, remove, setCommand, setGISDisplay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanDrawModel

public PanDrawModel()
HighlightDrawModel constructor comment.


PanDrawModel

public PanDrawModel(Command inCommand)
HighlightDrawModel constructor comment.

Method Detail

draw

public void draw()
The function which is called to draw the image on the map.

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

getEndPoint

public java.awt.Point getEndPoint()
Return the point to which the mouse was dragged.


getStartPoint

public java.awt.Point getStartPoint()
Return the point where the mouse was clicket.


mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Called when the user releases the mouse button.

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

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Called when the user releases the mouse butotn.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Overrides:
mousePressed 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

setStartPoint

public void setStartPoint(java.awt.Point inPoint)
Sets the starting point for the Draw Model


reset

public void reset()
Reset the position of the display

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