|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.MouseTracker
public class MouseTracker
Keeps track of the what mouse events have happened. Must be in event thread to call this method.
Constructor Summary | |
---|---|
MouseTracker(EditToolHandler handler2)
|
Method Summary | |
---|---|
Point |
getCurrentPoint()
Returns the current location of the mouse. |
Point |
getDragStarted()
|
protected java.util.Queue<MapMouseEvent> |
getModifiablePreviousEvents()
Returns the previous events queue. |
java.util.Queue<MapMouseEvent> |
getPreviousEvents()
This is a copy modifying queue will have no effect on original queue |
protected void |
setDragStarted(Point dragStarted)
|
protected void |
updateState(MapMouseEvent e,
EventType type)
Called by EditToolhandler to updates the state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MouseTracker(EditToolHandler handler2)
Method Detail |
---|
protected void updateState(MapMouseEvent e, EventType type)
e
- The most recent eventtype
- the type of eventpublic Point getDragStarted()
public java.util.Queue<MapMouseEvent> getPreviousEvents()
protected void setDragStarted(Point dragStarted)
dragStarted
- The dragStarted to set.protected java.util.Queue<MapMouseEvent> getModifiablePreviousEvents()
previousEvents
- The previousEvents to set.public Point getCurrentPoint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |