Public Member Functions | |
| void | setActive (boolean active) |
| void | setDrawArea (DrawingArea drawArea) |
| synchronized void | signalPressed (int x, int y) |
| synchronized void | signalReleased (int x, int y) |
| void | cleanMarkings () |
| void | run () |
Static Public Member Functions | |
| static MouseClickManager | getInstance () |
Public Attributes | |
| boolean | active_ = false |
A class to correctly handle mouseclicks and drags on the DrawingArea. Furthermore, this class also handles the display in the information text area.
|
inline |
Cleans markings so that objects can be deleted through garbage collector.
|
inlinestatic |
Gets the single instance of this manager.
|
inline |
The thread which handles mouse drags and information display.
|
inline |
Sets the value for the isActive variable.
| active | true to signal this thread that the DrawingArea has been entered,false to signal that the area was left |
|
inline |
Sets the vanetsim.gui.DrawingArea this MouseClickManager is associated with.
| drawArea | the area on which this MouseClickManager operates |
|
inline |
Signals this manager that the mouse was pressed. If the edit mode is currently active, the click is forwarded to the edit panel.
| x | the x coordinate where mouse was pressed |
| y | the y coordinate where mouse was pressed |
|
inline |
Signals this manager that the mouse was released (used for dragging).
| x | the x coordinate where mouse was released |
| y | the y coordinate where mouse was released |
| boolean vanetsim.gui.helpers.MouseClickManager.active_ = false |
true if this manager currently is active,false if it's inactive.
1.8.3.1