|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object backend.mousehandlerstates.MouseHandlerBaseState backend.mousehandlerstates.DrawLineBaseState
public abstract class DrawLineBaseState
DrawLineBaseState is a base class used for line drawing states of the MouseHandler
Constructor Summary | |
---|---|
DrawLineBaseState(SphereWorldModel theWorld,
java.lang.String theLabel)
The default constructor just initalized the MouseHandlerBaseState |
Method Summary | |
---|---|
void |
addCircle(SphereCircleModel addMe)
addCircle will add a circle to be processed by this state |
void |
addLine(SphereLineModel addMe)
addLine will add a line to be processed by this state |
void |
addPoint(float x,
float y,
float z)
addPoints behavior changes based on the current state of the MouseHandler |
void |
addPoint(SpherePointModel addMe)
addPoint will add a point to be processed by the mouse handler depending on when mode it's set it |
void |
enter()
Code in the enter function will be executed when the MouseHandler changes to this state |
void |
exit()
The exit function is always called when the state is being changed to a new state |
void |
newMouseLoc(java.awt.event.MouseEvent newLoc,
javax.vecmath.Point3f worldLoc)
newMouseLoc will be called when the mouse changes location |
void |
reset()
The reset function should reset the state of this state |
boolean |
shouldHighlight(SphereBasicObject highlightMe)
shouldHighlight will return ture if the given SphereBasicObject should be highlighted |
Methods inherited from class backend.mousehandlerstates.MouseHandlerBaseState |
---|
getStateLabel, sendMouseLoc, setSendMouseLoc |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DrawLineBaseState(SphereWorldModel theWorld, java.lang.String theLabel)
theWorld
- Method Detail |
---|
public void addPoint(float x, float y, float z)
MouseHandlerBaseState
addPoint
in class MouseHandlerBaseState
x
- is the x point to work withy
- is the y point to add to the worldz
- is the z point to add to the worldpublic void addPoint(SpherePointModel addMe)
MouseHandlerBaseState
addPoint
in class MouseHandlerBaseState
addMe
- the point to add in SpheriosityPoint formpublic boolean shouldHighlight(SphereBasicObject highlightMe)
MouseHandlerBaseState
shouldHighlight
in class MouseHandlerBaseState
highlightMe
- the SphereBasicObject to test for highlighting. It
will be assumed that the mouse is already hovering over this object. Do
not think this function will test for that as well!
public void enter()
MouseHandlerBaseState
enter
in class MouseHandlerBaseState
public void exit()
MouseHandlerBaseState
exit
in class MouseHandlerBaseState
public void reset()
MouseHandlerBaseState
reset
in class MouseHandlerBaseState
public void newMouseLoc(java.awt.event.MouseEvent newLoc, javax.vecmath.Point3f worldLoc)
MouseHandlerBaseState
newMouseLoc
in class MouseHandlerBaseState
newLoc
- is the MouseEvent which has the latest mouse position
stored in itworldLoc
- will be the mouse point in world coordinantespublic void addCircle(SphereCircleModel addMe)
MouseHandlerBaseState
addCircle
in class MouseHandlerBaseState
addMe
- a SphereCircleModel to be added for processingpublic void addLine(SphereLineModel addMe)
MouseHandlerBaseState
addLine
in class MouseHandlerBaseState
addMe
- a line to add for processing
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |