|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinteractors.Interactor
public abstract class Interactor
All interactors must extend this abstract class.
Field Summary | |
---|---|
protected InteractionHandler |
handler
the interaction handler |
Constructor Summary | |
---|---|
Interactor(InteractionHandler handler)
Constructs an interactor. |
Method Summary | |
---|---|
void |
draw(GL gl,
GLU glu,
GLUT glut)
Called by the canvas when a repaint occurs, allowing the interactor to draw over the map. |
void |
endInteraction()
Called when the interaction handler ends this interaction. |
java.awt.Cursor |
getCursor()
Gets the interaction cursor. |
void |
keyPressed(java.awt.event.KeyEvent arg0)
Called by the interaction handler when a key is released. |
void |
keyReleased(java.awt.event.KeyEvent arg0)
Called by the interaction handler when a key is released. |
void |
mouseDragged(java.awt.event.MouseEvent arg0)
Called by the interaction handler when the mouse is dragged. |
void |
mouseMoved(java.awt.event.MouseEvent arg0)
Called by the interaction handler when the mouse is moved. |
void |
mousePressed(java.awt.event.MouseEvent arg0)
Called by the interaction handler when a mouse button is pressed. |
void |
mouseReleased(java.awt.event.MouseEvent arg0)
Called by the interaction handler when a mouse button is released. |
void |
startInteraction()
Called when the interaction handler starts this interaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected InteractionHandler handler
Constructor Detail |
---|
public Interactor(InteractionHandler handler)
handler
- - the interaction handlerMethod Detail |
---|
public java.awt.Cursor getCursor()
public void startInteraction()
public void endInteraction()
public void draw(GL gl, GLU glu, GLUT glut)
public void keyPressed(java.awt.event.KeyEvent arg0)
public void keyReleased(java.awt.event.KeyEvent arg0)
public void mousePressed(java.awt.event.MouseEvent arg0)
public void mouseReleased(java.awt.event.MouseEvent arg0)
public void mouseDragged(java.awt.event.MouseEvent arg0)
public void mouseMoved(java.awt.event.MouseEvent arg0)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |