public class DefaultEditingContext extends java.lang.Object implements EditingContext
CANCEL, CHANGE_SELECTED_TOOL_NOTIFICATION, DEFAULT_ACTION_NAME, DEFAULT_TOOL, DEFAULT_TOOL_NAME, DISCARD_CHANGES, DRAWING_STATUS_NOTIFICATION, DRAWMODE_NORMAL, DRAWMODE_ORTO, EXPORT_LAYER, EXPORT_LAYER_NOTIFICATION, REFRESH_TOOLS_NOTIFICATION, SAVE_CHANGES, VECTOREDITING_TOOL_NAME
Constructor and Description |
---|
DefaultEditingContext(MapControl mapControl) |
Modifier and Type | Method and Description |
---|---|
void |
activateService(java.lang.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 |
cancelActiveService() |
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
void |
endEdition(FLyrVect layer)
Ends edition of a layer
|
protected void |
finishService() |
protected java.lang.String |
fixResponseUsingBookmarks(java.lang.String response) |
EditingService |
getActiveService() |
EditingConsole |
getConsolePanel() |
SymbolTable |
getContextSymbolTable() |
protected FLyrVect |
getCurrentLayer() |
protected EditingServiceParameter |
getCurrentParam() |
Behavior[] |
getDefaultBehaviors() |
int |
getDrawMode() |
GeometryType |
getGeometryType() |
MapControl |
getMapControl()
Gets mapControl object.
|
protected java.util.Stack<EditingService> |
getServiceStack() |
boolean |
isProcessing() |
boolean |
isServiceCompatible(java.lang.String name) |
void |
nextParameter() |
void |
notifyDrawingStatus(DrawingStatus status,
EditingService service) |
Point |
parsePoint(java.lang.String response) |
protected void |
refreshMenusAndToolBars() |
void |
setDefaultBehaviors(Behavior[] defaultBehaviors) |
void |
setDrawMode(int mode) |
void |
setMapControl(MapControl mapControl)
Updates the weak reference at editing context.
|
void |
setValue(EditingServiceParameter parameter,
java.lang.Object value) |
void |
setValue(EditingServiceParameter parameter,
java.lang.Object value,
boolean next) |
protected void |
showConsoleMessage(java.lang.String text) |
protected void |
textEntered(java.lang.String response) |
public DefaultEditingContext(MapControl mapControl)
public void activateService(java.lang.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 notifyDrawingStatus(DrawingStatus status, EditingService service)
public 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()
public EditingService getActiveService()
getActiveService
in interface EditingContext
public EditingConsole getConsolePanel()
getConsolePanel
in interface EditingContext
protected FLyrVect getCurrentLayer()
protected EditingServiceParameter getCurrentParam()
public MapControl getMapControl()
EditingContext
WeakReference
.getMapControl
in interface EditingContext
public void nextParameter()
nextParameter
in interface EditingContext
protected java.util.Stack<EditingService> getServiceStack()
public boolean isServiceCompatible(java.lang.String name)
isServiceCompatible
in interface EditingContext
public SymbolTable getContextSymbolTable()
getContextSymbolTable
in interface EditingContext
public Point parsePoint(java.lang.String response) throws ParsePointException
parsePoint
in interface EditingContext
ParsePointException
protected java.lang.String fixResponseUsingBookmarks(java.lang.String response) throws LocatorException
LocatorException
protected void refreshMenusAndToolBars()
public void setMapControl(MapControl mapControl)
EditingContext
setMapControl
in interface EditingContext
protected void showConsoleMessage(java.lang.String text)
public void cancelActiveService()
cancelActiveService
in interface EditingContext
protected void textEntered(java.lang.String response)
public void setDefaultBehaviors(Behavior[] defaultBehaviors)
setDefaultBehaviors
in interface EditingContext
public Behavior[] getDefaultBehaviors()
getDefaultBehaviors
in interface EditingContext
public void setValue(EditingServiceParameter parameter, java.lang.Object value) throws InvalidEntryException
setValue
in interface EditingContext
InvalidEntryException
public void setValue(EditingServiceParameter parameter, java.lang.Object value, boolean next) throws InvalidEntryException
setValue
in interface EditingContext
next
- If true call nextParameter methodInvalidEntryException
public GeometryType getGeometryType()
getGeometryType
in interface EditingContext
public boolean isProcessing()
isProcessing
in interface EditingContext
public int getDrawMode()
getDrawMode
in interface EditingContext
public void setDrawMode(int mode)
setDrawMode
in interface EditingContext