|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.behaviour.SelectGeometryBehaviour
public class SelectGeometryBehaviour
Requirements:
Action:
Constructor Summary | |
---|---|
SelectGeometryBehaviour(java.lang.Class[] acceptableClasses,
short filterType)
Create instance |
Method Summary | |
---|---|
java.lang.Class[] |
getAcceptableClasses()
|
UndoableMapCommand |
getCommand(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
The action to be performed by this EventBehaviour. |
short |
getFilterType()
|
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 |
isOnlyAdd()
|
boolean |
isPermitClear()
|
boolean |
isTreatUnknownGeomsAsPolygon()
|
boolean |
isValid(EditToolHandler handler,
MapMouseEvent e,
EventType eventType)
Called to determine whether this EventBehaviour is applicable and should be run. |
void |
setAcceptableClasses(java.lang.Class[] acceptableClasses)
|
void |
setCreateGeomOnNoneSelect(ShapeType toCreate2)
|
void |
setFilterType(short filterType)
|
void |
setOnlyAdd(boolean onlyAdd)
|
void |
setPermitClear(boolean permitClear)
|
void |
setTreatUnknownGeomsAsPolygon(boolean treatUnknownGeomsAsPolygon)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectGeometryBehaviour(java.lang.Class[] acceptableClasses, short filterType)
acceptableClasses
- used to determine if a feature can be selected. If point is not in
array then point geometries can not be selected.filterType
- one of the constants in FilterType
that start with GEOMETRY_Method Detail |
---|
public void setCreateGeomOnNoneSelect(ShapeType toCreate2)
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();public java.lang.Class[] getAcceptableClasses()
public void setAcceptableClasses(java.lang.Class[] acceptableClasses)
acceptableClasses
- The acceptableClasses to set.public short getFilterType()
public void setFilterType(short filterType)
filterType
- The filterType to set.public boolean isOnlyAdd()
public void setOnlyAdd(boolean onlyAdd)
onlyAdd
- The onlyAdd to set.public boolean isPermitClear()
public void setPermitClear(boolean permitClear)
permitClear
- The permitClear to set.public boolean isTreatUnknownGeomsAsPolygon()
public void setTreatUnknownGeomsAsPolygon(boolean treatUnknownGeomsAsPolygon)
treatUnknownGeomsAsPolygon
- The treatUnknownGeomsAsPolygon to set.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |