|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinteractors.Interactor
interactors.MeasurementInteractor
public class MeasurementInteractor
Interactor for displaying distance.
Field Summary | |
---|---|
private boolean |
measuring
specfies if the interactio is currently measuring |
Fields inherited from class interactors.Interactor |
---|
handler |
Constructor Summary | |
---|---|
MeasurementInteractor(InteractionHandler handler)
Constructs the measurement interactor. |
Method Summary | |
---|---|
void |
draw(GL gl,
GLU glu,
GLUT glut)
Draws a line between the picked point and the current mouse location. |
java.awt.Cursor |
getCursor()
Gets the measurement cursor. |
void |
mousePressed(java.awt.event.MouseEvent arg0)
Left click selects a new point for measurement. |
void |
startInteraction()
Deselects the selected object. |
Methods inherited from class interactors.Interactor |
---|
endInteraction, keyPressed, keyReleased, mouseDragged, mouseMoved, mouseReleased |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean measuring
Constructor Detail |
---|
public MeasurementInteractor(InteractionHandler handler)
handler
- - the interaction handler.Method Detail |
---|
public void startInteraction()
startInteraction
in class Interactor
public void draw(GL gl, GLU glu, GLUT glut)
draw
in class Interactor
public java.awt.Cursor getCursor()
getCursor
in class Interactor
public void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in class Interactor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |