|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.drawmodel.SimpleDrawModel
gistoolkit.display.drawmodel.PanDrawModel
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 |
public PanDrawModel()
public PanDrawModel(Command inCommand)
Method Detail |
public void draw()
draw
in interface DrawModel
draw
in class SimpleDrawModel
public java.awt.Point getEndPoint()
public java.awt.Point getStartPoint()
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class SimpleDrawModel
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class SimpleDrawModel
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class SimpleDrawModel
public void setStartPoint(java.awt.Point inPoint)
public void reset()
reset
in interface DrawModel
reset
in class SimpleDrawModel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |