|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.tools.edit.activator.GridActivator
public class GridActivator
If the snap behaviour is GRID then enables the grid map graphic on activation and disables the layer if this activator originally added the layer (or sets it to visible).
Constructor Summary | |
---|---|
GridActivator()
|
Method Summary | |
---|---|
void |
activate(EditToolHandler handler)
The action to be performed by this activator when activating. |
void |
deactivate(EditToolHandler handler)
The action to be performed by this activator when deactivating. |
void |
handleActivateError(EditToolHandler handler,
java.lang.Throwable error)
This method is called if an exception occurs during the execution of the activate method. |
void |
handleDeactivateError(EditToolHandler handler,
java.lang.Throwable error)
This method is called if an exception occurs during the execution of the deactivate method. |
void |
hideGrid(IMap map)
Hides the grid layer (visibility=false) if the layer was added or set visible by this class. |
void |
showGrid(IMap map)
Shows the grid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridActivator()
Method Detail |
---|
public void hideGrid(IMap map)
public void showGrid(IMap map)
map
- map to add the grid to.public void activate(EditToolHandler handler)
Activator
activate
in interface Activator
public void handleDeactivateError(EditToolHandler handler, java.lang.Throwable error)
Activator
This method should
handleDeactivateError
in interface Activator
error
- Error that occurredpublic void handleActivateError(EditToolHandler handler, java.lang.Throwable error)
Activator
This method should
handleActivateError
in interface Activator
error
- Error that occurredpublic void deactivate(EditToolHandler handler)
Activator
deactivate
in interface Activator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |