|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinteractors.Interactor
interactors.NewShapeInteractor
public class NewShapeInteractor
Interaction for creating a new object.
Field Summary | |
---|---|
(package private) java.util.ArrayList<java.awt.geom.Point2D> |
coordinates
the coordinates of the new object |
private boolean |
drawCursorVertex
specifies if a vertex should be drawn at the cursor location |
private GraphicalObject.Type |
type
the graphical type of the new object |
Fields inherited from class interactors.Interactor |
---|
handler |
Constructor Summary | |
---|---|
NewShapeInteractor(InteractionHandler handler)
Constructs the new shape interactor. |
Method Summary | |
---|---|
void |
constructObject()
Displays a dialog allowsing the user to select the object type. |
void |
draw(GL gl,
GLU glu,
GLUT glut)
Draws the outline of the new shape. |
java.awt.Cursor |
getCursor()
Gets the new shape cursor. |
void |
mousePressed(java.awt.event.MouseEvent arg0)
Left mouse clicks add new points to the shape. |
void |
startInteraction()
Displays a dialog graphics types. |
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 |
---|
java.util.ArrayList<java.awt.geom.Point2D> coordinates
private GraphicalObject.Type type
private boolean drawCursorVertex
Constructor Detail |
---|
public NewShapeInteractor(InteractionHandler handler)
handler
- - the interaction handlerMethod Detail |
---|
public java.awt.Cursor getCursor()
getCursor
in class Interactor
public void startInteraction()
startInteraction
in class Interactor
public void draw(GL gl, GLU glu, GLUT glut)
draw
in class Interactor
public void mousePressed(java.awt.event.MouseEvent arg0)
mousePressed
in class Interactor
public void constructObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |