|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.tools.LaneAction
public class LaneAction
This implements the add lane user action
| Field Summary | |
|---|---|
protected Node |
alphaNode
DOCUMENT ME! |
protected EditModel |
model
DOCUMENT ME! |
protected java.awt.Point |
mousePoint
DOCUMENT ME! |
protected java.awt.Point |
startPoint
DOCUMENT ME! |
| Constructor Summary | |
|---|---|
LaneAction(EditModel em)
Creates a new LaneAction object. |
|
| Method Summary | |
|---|---|
boolean |
beingUsed()
DOCUMENT ME! |
boolean |
endAction(View view,
java.awt.Point p)
Looks for the second node at given point. |
void |
moveAction(View view,
java.awt.Point p)
Moves the current mouse point |
void |
paint(java.awt.Graphics g)
Paints a graphical representation of the status of this action |
void |
reset()
DOCUMENT ME! |
boolean |
startAction(View view,
java.awt.Point p)
Starts the action by finding the alpha node of the road |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EditModel model
protected Node alphaNode
protected java.awt.Point startPoint
protected java.awt.Point mousePoint
| Constructor Detail |
|---|
public LaneAction(EditModel em)
em - DOCUMENT ME!| Method Detail |
|---|
public boolean beingUsed()
beingUsed in interface ToolActionpublic void reset()
public boolean startAction(View view,
java.awt.Point p)
view - The main view. Needed to convert coordinatesp - The point to search for the first node
public boolean endAction(View view,
java.awt.Point p)
view - DOCUMENT ME!p - The point
public void moveAction(View view,
java.awt.Point p)
view - DOCUMENT ME!p - The new position of the mouse cursorpublic void paint(java.awt.Graphics g)
g - The Graphics object to paint on
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||