|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.display.drawmodel.SimpleDrawModel
Simple draw model, good for subclassing.
Field Summary | |
protected Command |
myCommand
Handle to the Command to call |
protected GISDisplay |
myGISDisplay
Handle to the GISDisplay for modifying. |
Constructor Summary | |
SimpleDrawModel()
SimpleDrawModel constructor comment. |
Method Summary | |
void |
draw()
The function which is called to draw the image on the map. |
GISDisplay |
getGISDisplay()
Retrieves the parent GISDisplay for this draw mdoel. |
void |
keyPressed(java.awt.event.KeyEvent keyEvent)
Called when a key on the keyboard is pressed |
void |
keyReleased(java.awt.event.KeyEvent keyEvent)
Called when a key on the key board is released |
void |
keyTyped(java.awt.event.KeyEvent keyEvent)
Called when a key on the key board is pressed and then released |
void |
mouseClicked(java.awt.event.MouseEvent e)
Called when the user clicks the mouse button. |
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down). |
void |
mouseEntered(java.awt.event.MouseEvent e)
Called when the user clicks the mouse button. |
void |
mouseExited(java.awt.event.MouseEvent e)
Called when the user clicks the mouse button. |
void |
mouseMoved(java.awt.event.MouseEvent e)
Invoked when the mouse button has been moved on a component (with no buttons no down). |
void |
mousePressed(java.awt.event.MouseEvent e)
Called when the user presses the mouse button. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Called when the user releases the mouse butotn. |
void |
remove()
Function called to indicate that this draw model will be removed. |
void |
reset()
Called when the DrawModel should quit doing what it is doing and reset to the initial state |
void |
setCommand(Command inCommand)
Set the command to call at the completion of this draw. |
void |
setGISDisplay(GISDisplay inGISDisplay)
Sets the parent GISDisplay for this draw model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected GISDisplay myGISDisplay
protected Command myCommand
Constructor Detail |
public SimpleDrawModel()
Method Detail |
public void draw()
draw
in interface DrawModel
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void setCommand(Command inCommand)
public void setGISDisplay(GISDisplay inGISDisplay)
setGISDisplay
in interface DrawModel
public GISDisplay getGISDisplay()
public void remove()
remove
in interface DrawModel
public void reset()
reset
in interface DrawModel
public void keyPressed(java.awt.event.KeyEvent keyEvent)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent keyEvent)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent keyEvent)
keyTyped
in interface java.awt.event.KeyListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |