|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.behaviour.CursorControlBehaviour
public class CursorControlBehaviour
Sets the cursor to indicate what action can be done. Also adds tips to the status bar.
Nested Class Summary | |
---|---|
static class |
CursorControlBehaviour.DefaultCursorProvider
|
static class |
CursorControlBehaviour.NullStringProvider
|
static class |
CursorControlBehaviour.SystemCursorProvider
|
Constructor Summary | |
---|---|
CursorControlBehaviour(EditToolHandler handler,
new instance |
Method Summary | |
---|---|
UndoableMapCommand |
getCommand(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
The action to be performed by this EventBehaviour. |
void |
handleError(EditToolHandler handler,
java.lang.Throwable error,
UndoableMapCommand command)
This method is called if an exception occurs during the execution of the run method. |
boolean |
isValid(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
Called to determine whether this EventBehaviour is applicable and should be run. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CursorControlBehaviour(EditToolHandler handler,defaultMessage, overVertexCursor, overVertexMessage, overEdgeCursor, overEdgeMessage)
defaultMessage
- the message display when not over a vertex or an edge.overVertexCursor
- a provider that provides the cursor to show when over a vertex. This class
WILL NOT dispose of the cursor.overVertexMessage
- generates the message to display when over a vertexoverEdgeCursor
- a provider that provides the cursor to show when over an edge. This class
WILL NOT dispose of the cursor.overEdgeMessage
- generates the message to display when over an edgeMethod Detail |
---|
public boolean isValid(EditToolHandler handler, MapMouseEvent e, EventType eventType)
EventBehaviour
isValid
in interface EventBehaviour
handler
- handler that calls this Behavioure
- mouse event that just occurred.eventType
- the type of event that just occurred
public UndoableMapCommand getCommand(EditToolHandler handler, MapMouseEvent e, EventType eventType)
EventBehaviour
getCommand
in interface EventBehaviour
handler
- handler that calls this Behavioure
- Event that occurred.eventType
- The type of event that has occurred
public void handleError(EditToolHandler handler, java.lang.Throwable error, UndoableMapCommand command)
EventBehaviour
This method should
handleError
in interface EventBehaviour
handler
- handler that calls this Behaviourerror
- Error that occurredcommand
- Command retrieved from getCommandMethod. May be null if exception occurred while
executing getCommand();
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |