|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Tool
All classes implementing this interface can serve as tool to be used in either simulator, editor or both.
| Nested Class Summary | |
|---|---|
static class |
Tool.Mask
Class used to pass on the modifiers. |
| Method Summary | |
|---|---|
java.awt.Panel |
getPanel()
Invoked when this tool is selected as the current tool. |
void |
mouseMoved(View view,
java.awt.Point p,
Tool.Mask mask)
Invoked when the user moves the mouse over the View. |
void |
mousePressed(View view,
java.awt.Point p,
Tool.Mask mask)
Invoked when the user presses a mouse button. |
void |
mouseReleased(View view,
java.awt.Point p,
Tool.Mask mask)
Invoked when the user releases a mouse button. |
| Methods inherited from interface org.jscience.architecture.traffic.Overlay |
|---|
overlayType, paint |
| Method Detail |
|---|
void mousePressed(View view,
java.awt.Point p,
Tool.Mask mask)
view - The View that the event originates from.p - The coordinates of the view the mouse cursor was at when the
event was generated.mask - The mask taken directly from the MouseEvent, wrapped in a
Mask object
void mouseReleased(View view,
java.awt.Point p,
Tool.Mask mask)
view - The View that the event originates from.p - The coordinates of the view the mouse cursor was at when the
event was generated.mask - The mask taken directly from the MouseEvent, wrapped in a
Mask object
void mouseMoved(View view,
java.awt.Point p,
Tool.Mask mask)
View.
view - The View that the event originates from.p - The coordinates of the view the mouse cursor was at when the
event was generated.mask - The mask taken directly from the MouseEvent, wrapped in a
Mask objectjava.awt.Panel getPanel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||