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 protected
AbstractOsmDataLayer(java.lang.String name)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears the data backing this layer, unless if locked.abstract OsmData<?,?,?,?>
getDataSet()
Returns theOsmData
behind this layer.boolean
isLocked()
Determines if this is read-only/locked (thus it cannot be modified).void
lock()
Enables the read-only/locked mode.void
unlock()
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 theOsmData
behind this layer.- Returns:
- the
OsmData
behind this layer.
-
lock
public void lock()
Description copied from interface:Lockable
Enables the read-only/locked mode.- Specified by:
lock
in interfaceLockable
- Overrides:
lock
in classAbstractModifiableLayer
-
unlock
public void unlock()
Description copied from interface:Lockable
Disables the read-only/locked mode.- Specified by:
unlock
in interfaceLockable
- Overrides:
unlock
in classAbstractModifiableLayer
-
isLocked
public boolean isLocked()
Description copied from interface:Lockable
Determines if this is read-only/locked (thus it cannot be modified).- Specified by:
isLocked
in interfaceLockable
- Overrides:
isLocked
in classAbstractModifiableLayer
- Returns:
true
if this is read-only/locked
-
clear
public void clear()
Clears the data backing this layer, unless if locked.- Since:
- 15565
-
-