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
public abstract class AbstractOsmDataLayer extends AbstractModifiableLayer
Abstraction ofOsmDataLayer.- 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.SeparatorLayerAction
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable
AbstractMapViewPaintable.CompatibilityModeLayerPainter
-
Nested 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_PROP
-
Fields inherited from class org.openstreetmap.josm.gui.layer.Layer
FILTER_STATE_PROP, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractOsmDataLayer(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclear()Clears the data backing this layer, unless if locked.abstract OsmData<?,?,?,?>getDataSet()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, requiresUploadToServer
-
Methods 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, visitBoundingBox
-
Methods inherited from class org.openstreetmap.josm.gui.layer.AbstractMapViewPaintable
addInvalidationListener, attachToMapView, createMapViewPainter, invalidate, removeInvalidationListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.gui.layer.MapViewPaintable
paint
-
Methods inherited from interface org.openstreetmap.josm.gui.layer.SaveToFile
isSavable
-
-
-
-
Constructor Detail
-
AbstractOsmDataLayer
protected AbstractOsmDataLayer(java.lang.String name)
-
-
Method Detail
-
getDataSet
public abstract OsmData<?,?,?,?> getDataSet()
Returns theOsmDatabehind this layer.- Returns:
- the
OsmDatabehind this layer.
-
lock
public void lock()
Description copied from interface:LockableEnables the read-only/locked mode.- Specified by:
lockin interfaceLockable- Overrides:
lockin classAbstractModifiableLayer
-
unlock
public void unlock()
Description copied from interface:LockableDisables the read-only/locked mode.- Specified by:
unlockin interfaceLockable- Overrides:
unlockin classAbstractModifiableLayer
-
isLocked
public boolean 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
public void clear()
Clears the data backing this layer, unless if locked.- Since:
- 15565
-
-