Class DefaultEditingContext
java.lang.Object
org.gvsig.vectorediting.swing.impl.DefaultEditingContext
- All Implemented Interfaces:
org.gvsig.tools.observer.Observable,EditingContext
-
Field Summary
Fields inherited from interface org.gvsig.vectorediting.swing.api.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateService(String name) voidaddObserver(org.gvsig.tools.observer.Observer o) voidbeginEdition(org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect layer) voidbeginEdition(org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect layer, org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior[] additionalBehaviors) voidvoiddeleteObserver(org.gvsig.tools.observer.Observer o) voidvoidendEdition(org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect layer) protected voidprotected StringfixResponseUsingBookmarks(String expression) org.gvsig.vectorediting.lib.api.EditingServiceorg.gvsig.tools.bookmarksandhistory.Bookmarks<org.gvsig.expressionevaluator.Expression> org.gvsig.expressionevaluator.SymbolTableprotected org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVectprotected org.gvsig.vectorediting.lib.api.EditingServiceParameterorg.gvsig.fmap.mapcontrol.tools.Behavior.Behavior[]intorg.gvsig.fmap.geom.type.GeometryTypeorg.gvsig.tools.bookmarksandhistory.History<org.gvsig.expressionevaluator.Expression> org.gvsig.fmap.mapcontrol.MapControlprotected Stack<org.gvsig.vectorediting.lib.api.EditingService> booleanbooleanisServiceCompatible(String name) voidvoidnotifyDrawingStatus(org.gvsig.vectorediting.lib.api.DrawingStatus status, org.gvsig.vectorediting.lib.api.EditingService service) org.gvsig.fmap.geom.primitive.PointparsePoint(String response) protected voidvoidsetDefaultBehaviors(org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior[] defaultBehaviors) voidsetDrawMode(int mode) voidsetMapControl(org.gvsig.fmap.mapcontrol.MapControl mapControl) voidvoidsetValue(org.gvsig.vectorediting.lib.api.EditingServiceParameter parameter, Object value, boolean next) protected voidshowConsoleMessage(String text) protected voidtextEntered(String response)
-
Constructor Details
-
DefaultEditingContext
public DefaultEditingContext(org.gvsig.fmap.mapcontrol.MapControl mapControl)
-
-
Method Details
-
activateService
- Specified by:
activateServicein interfaceEditingContext
-
addObserver
public void addObserver(org.gvsig.tools.observer.Observer o) - Specified by:
addObserverin interfaceorg.gvsig.tools.observer.Observable
-
beginEdition
public void beginEdition(org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect layer, org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior[] additionalBehaviors) - Specified by:
beginEditionin interfaceEditingContext
-
beginEdition
public void beginEdition(org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect layer) - Specified by:
beginEditionin interfaceEditingContext
-
notifyDrawingStatus
public void notifyDrawingStatus(org.gvsig.vectorediting.lib.api.DrawingStatus status, org.gvsig.vectorediting.lib.api.EditingService service) -
deleteObserver
public void deleteObserver(org.gvsig.tools.observer.Observer o) - Specified by:
deleteObserverin interfaceorg.gvsig.tools.observer.Observable
-
deleteObservers
public void deleteObservers()- Specified by:
deleteObserversin interfaceorg.gvsig.tools.observer.Observable
-
endEdition
public void endEdition(org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect layer) - Specified by:
endEditionin interfaceEditingContext
-
finishService
protected void finishService() -
getActiveService
public org.gvsig.vectorediting.lib.api.EditingService getActiveService()- Specified by:
getActiveServicein interfaceEditingContext
-
getConsolePanel
- Specified by:
getConsolePanelin interfaceEditingContext
-
getCurrentLayer
protected org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect getCurrentLayer() -
getCurrentParam
protected org.gvsig.vectorediting.lib.api.EditingServiceParameter getCurrentParam() -
getMapControl
public org.gvsig.fmap.mapcontrol.MapControl getMapControl()- Specified by:
getMapControlin interfaceEditingContext
-
nextParameter
public void nextParameter()- Specified by:
nextParameterin interfaceEditingContext
-
getServiceStack
-
isServiceCompatible
- Specified by:
isServiceCompatiblein interfaceEditingContext
-
getContextSymbolTable
public org.gvsig.expressionevaluator.SymbolTable getContextSymbolTable()- Specified by:
getContextSymbolTablein interfaceEditingContext
-
parsePoint
public org.gvsig.fmap.geom.primitive.Point parsePoint(String response) throws org.gvsig.vectorediting.lib.api.exceptions.ParsePointException - Specified by:
parsePointin interfaceEditingContext- Throws:
org.gvsig.vectorediting.lib.api.exceptions.ParsePointException
-
fixResponseUsingBookmarks
protected String fixResponseUsingBookmarks(String expression) throws org.gvsig.tools.locator.LocatorException - Throws:
org.gvsig.tools.locator.LocatorException
-
refreshMenusAndToolBars
protected void refreshMenusAndToolBars() -
setMapControl
public void setMapControl(org.gvsig.fmap.mapcontrol.MapControl mapControl) - Specified by:
setMapControlin interfaceEditingContext
-
showConsoleMessage
-
cancelActiveService
public void cancelActiveService()- Specified by:
cancelActiveServicein interfaceEditingContext
-
textEntered
-
setDefaultBehaviors
public void setDefaultBehaviors(org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior[] defaultBehaviors) - Specified by:
setDefaultBehaviorsin interfaceEditingContext
-
getDefaultBehaviors
public org.gvsig.fmap.mapcontrol.tools.Behavior.Behavior[] getDefaultBehaviors()- Specified by:
getDefaultBehaviorsin interfaceEditingContext
-
setValue
public void setValue(org.gvsig.vectorediting.lib.api.EditingServiceParameter parameter, Object value) throws org.gvsig.vectorediting.lib.api.exceptions.InvalidEntryException - Specified by:
setValuein interfaceEditingContext- Throws:
org.gvsig.vectorediting.lib.api.exceptions.InvalidEntryException
-
setValue
public void setValue(org.gvsig.vectorediting.lib.api.EditingServiceParameter parameter, Object value, boolean next) throws org.gvsig.vectorediting.lib.api.exceptions.InvalidEntryException - Specified by:
setValuein interfaceEditingContext- Throws:
org.gvsig.vectorediting.lib.api.exceptions.InvalidEntryException
-
getGeometryType
public org.gvsig.fmap.geom.type.GeometryType getGeometryType()- Specified by:
getGeometryTypein interfaceEditingContext
-
isProcessing
public boolean isProcessing()- Specified by:
isProcessingin interfaceEditingContext
-
getDrawMode
public int getDrawMode()- Specified by:
getDrawModein interfaceEditingContext
-
setDrawMode
public void setDrawMode(int mode) - Specified by:
setDrawModein interfaceEditingContext
-
getHistoryForInsertPoints
public org.gvsig.tools.bookmarksandhistory.History<org.gvsig.expressionevaluator.Expression> getHistoryForInsertPoints()- Specified by:
getHistoryForInsertPointsin interfaceEditingContext
-
getBookmarksForInsertPoints
public org.gvsig.tools.bookmarksandhistory.Bookmarks<org.gvsig.expressionevaluator.Expression> getBookmarksForInsertPoints()- Specified by:
getBookmarksForInsertPointsin interfaceEditingContext
-