Package org.openstreetmap.josm.gui.layer
Class AbstractOsmDataLayer
java.lang.Object
org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable
org.openstreetmap.josm.gui.layer.Layer
org.openstreetmap.josm.gui.layer.AbstractModifiableLayer
org.openstreetmap.josm.gui.layer.AbstractOsmDataLayer
- All Implemented Interfaces:
Lockable,ProjectionChangeListener,DownloadFromServer,MapViewPaintable,SaveToFile,UploadToServer,Destroyable
- Direct Known Subclasses:
OsmDataLayer
Abstraction of
OsmDataLayer.- Since:
- 13926
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.layer.Layer
Layer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerActionNested classes/interfaces inherited from class org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable
AbstractMapViewPaintable.CompatibilityModeLayerPainterNested classes/interfaces inherited from interface org.openstreetmap.josm.gui.layer.MapViewPaintable
MapViewPaintable.LayerPainter, MapViewPaintable.MapViewEvent, MapViewPaintable.PaintableInvalidationEvent, MapViewPaintable.PaintableInvalidationListener -
Field Summary
Fields inherited from class org.openstreetmap.josm.gui.layer.AbstractModifiableLayer
IS_DIRTY_SYMBOL, REQUIRES_SAVE_TO_DISK_PROPFields inherited from class org.openstreetmap.josm.gui.layer.Layer
FILTER_STATE_PROP, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the data backing this layer, unless if locked.abstract OsmData<?,?, ?, ?> Returns theOsmDatabehind this layer.booleanisLocked()Determines if this is read-only/locked (thus it cannot be modified).voidlock()Enables the read-only/locked mode.voidunlock()Disables the read-only/locked mode.Methods inherited from class org.openstreetmap.josm.gui.layer.AbstractModifiableLayer
autosave, createUploadTask, getData, getUploadDialog, isDirty, isDownloadable, isModified, isUploadable, isUploadDiscouraged, isUploadInProgress, onPostSaveToFile, onPostUploadToServer, requiresSaveToFile, requiresUploadToServerMethods inherited from class org.openstreetmap.josm.gui.layer.Layer
addPropertyChangeListener, checkSaveConditions, createAndOpenSaveFileChooser, destroy, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getChangesetSourceTag, getColor, getDefaultLayerPosition, getIcon, getInfoComponent, getLabel, getMenuEntries, getName, getOpacity, getToolTipText, getViewProjectionBounds, hasColor, hookUpMapView, isBackgroundLayer, isInfoResizable, isMergable, isProjectionSupported, isRenamed, isSavable, isVisible, mergeFrom, nameSupportedProjections, onPostLoadFromFile, projectionChanged, removePropertyChangeListener, rename, setAssociatedFile, setBackgroundLayer, setColor, setFilterStateChanged, setName, setOpacity, setVisible, toggleVisible, toString, visitBoundingBoxMethods inherited from class org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable
addInvalidationListener, attachToMapView, createMapViewPainter, invalidate, removeInvalidationListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.gui.layer.MapViewPaintable
paintMethods inherited from interface org.openstreetmap.josm.gui.layer.SaveToFile
isSavable
-
Constructor Details
-
AbstractOsmDataLayer
-
-
Method Details
-
getDataSet
Returns theOsmDatabehind this layer.- Returns:
- the
OsmDatabehind this layer.
-
lock
Description copied from interface:LockableEnables the read-only/locked mode.- Specified by:
lockin interfaceLockable- Overrides:
lockin classAbstractModifiableLayer
-
unlock
Description copied from interface:LockableDisables the read-only/locked mode.- Specified by:
unlockin interfaceLockable- Overrides:
unlockin classAbstractModifiableLayer
-
isLocked
Description copied from interface:LockableDetermines if this is read-only/locked (thus it cannot be modified).- Specified by:
isLockedin interfaceLockable- Overrides:
isLockedin classAbstractModifiableLayer- Returns:
trueif this is read-only/locked
-
clear
Clears the data backing this layer, unless if locked.- Since:
- 15565
-