public class DefaultEditingContext extends Object implements EditingContext
CANCEL, CHANGE_SELECTED_TOOL_NOTIFICATION, DEFAULT_TOOL, DISCARD_CHANGES, EXPORT_LAYER, EXPORT_LAYER_NOTIFICATION, REFRESH_TOOLS_NOTIFICATION, SAVE_CHANGES
Constructor and Description |
---|
DefaultEditingContext(MapControl mapControl) |
Modifier and Type | Method and Description |
---|---|
void |
activateService(String name)
Activates service as of name and
MapControl |
void |
addObserver(Observer o) |
void |
beginEdition(FLyrVect layer)
Begins edition of a layer
|
void |
beginEdition(FLyrVect layer,
Behavior[] additionalBehaviors) |
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
void |
endEdition(FLyrVect layer)
Ends edition of a layer
|
protected void |
finishService() |
protected EditingService |
getActiveService() |
protected FLyrVect |
getCurrentLayer() |
protected EditingServiceParameter |
getCurrentParam() |
Behavior[] |
getDefaultBehaviors() |
MapControl |
getMapControl()
Gets mapControl object.
|
protected void |
getNextParameter() |
protected Stack<EditingService> |
getServiceStack() |
boolean |
isServiceCompatible(String name) |
protected void |
refreshMenusAndToolBars() |
void |
setDefaultBehaviors(Behavior[] defaultBehaviors) |
void |
setMapControl(MapControl mapControl)
Updates the weak reference at editing context.
|
protected void |
showConsoleMessage(String text) |
protected void |
textEntered(String response) |
public DefaultEditingContext(MapControl mapControl)
public void activateService(String name)
EditingContext
MapControl
activateService
in interface EditingContext
name
- of servicepublic void addObserver(Observer o)
addObserver
in interface Observable
public void beginEdition(FLyrVect layer, Behavior[] additionalBehaviors)
beginEdition
in interface EditingContext
public void beginEdition(FLyrVect layer)
EditingContext
beginEdition
in interface EditingContext
layer
- to begin editionpublic void deleteObserver(Observer o)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable
public void endEdition(FLyrVect layer)
EditingContext
endEdition
in interface EditingContext
layer
- to end editionprotected void finishService()
protected EditingService getActiveService()
protected FLyrVect getCurrentLayer()
protected EditingServiceParameter getCurrentParam()
public MapControl getMapControl()
EditingContext
WeakReference
.getMapControl
in interface EditingContext
protected void getNextParameter()
protected Stack<EditingService> getServiceStack()
public boolean isServiceCompatible(String name)
isServiceCompatible
in interface EditingContext
protected void refreshMenusAndToolBars()
public void setMapControl(MapControl mapControl)
EditingContext
setMapControl
in interface EditingContext
protected void showConsoleMessage(String text)
protected void textEntered(String response)
public void setDefaultBehaviors(Behavior[] defaultBehaviors)
setDefaultBehaviors
in interface EditingContext
public Behavior[] getDefaultBehaviors()
getDefaultBehaviors
in interface EditingContext