|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.refractions.udig.tools.edit.behaviour.DoubleClickRunAcceptBehaviour
public class DoubleClickRunAcceptBehaviour
Requirements:
Action:
| Constructor Summary | |
|---|---|
DoubleClickRunAcceptBehaviour()
|
|
| 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 |
isAddPoint()
Returns true if a point will be added at the location of the double click. |
boolean |
isValid(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
Called to determine whether this EventBehaviour is applicable and should be run. |
void |
setAddPoint(boolean addPoint)
Sets the parameter of whether a point should be added at the location of the double click. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DoubleClickRunAcceptBehaviour()
| Method Detail |
|---|
public boolean isValid(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
EventBehaviour
isValid in interface EventBehaviourhandler - handler that calls this Behavioure - mouse event that just occurred.eventType - the type of event that just occurred
public void handleError(EditToolHandler handler,
java.lang.Throwable error,
UndoableMapCommand command)
EventBehaviourThis method should
handleError in interface EventBehaviourhandler - handler that calls this Behaviourerror - Error that occurredcommand - Command retrieved from getCommandMethod. May be null if exception occurred while
executing getCommand();
public UndoableMapCommand getCommand(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
EventBehaviour
getCommand in interface EventBehaviourhandler - handler that calls this Behavioure - Event that occurred.eventType - The type of event that has occurred
public boolean isAddPoint()
public void setAddPoint(boolean addPoint)
addPoint - true if a point should be added at the location of the double click.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||