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)
EditingContextMapControlactivateService in interface EditingContextname - of servicepublic void addObserver(Observer o)
addObserver in interface Observablepublic void beginEdition(FLyrVect layer, Behavior[] additionalBehaviors)
beginEdition in interface EditingContextpublic void beginEdition(FLyrVect layer)
EditingContextbeginEdition in interface EditingContextlayer - to begin editionpublic void deleteObserver(Observer o)
deleteObserver in interface Observablepublic void deleteObservers()
deleteObservers in interface Observablepublic void endEdition(FLyrVect layer)
EditingContextendEdition in interface EditingContextlayer - to end editionprotected void finishService()
protected EditingService getActiveService()
protected FLyrVect getCurrentLayer()
protected EditingServiceParameter getCurrentParam()
public MapControl getMapControl()
EditingContextWeakReference.getMapControl in interface EditingContextprotected void getNextParameter()
protected Stack<EditingService> getServiceStack()
public boolean isServiceCompatible(String name)
isServiceCompatible in interface EditingContextprotected void refreshMenusAndToolBars()
public void setMapControl(MapControl mapControl)
EditingContextsetMapControl in interface EditingContextprotected void showConsoleMessage(String text)
protected void textEntered(String response)
public void setDefaultBehaviors(Behavior[] defaultBehaviors)
setDefaultBehaviors in interface EditingContextpublic Behavior[] getDefaultBehaviors()
getDefaultBehaviors in interface EditingContext