public abstract class AbstractOsmDataLayer extends AbstractModifiableLayer
OsmDataLayer
.Layer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerAction
AbstractMapViewPaintable.CompatibilityModeLayerPainter
MapViewPaintable.LayerPainter, MapViewPaintable.MapViewEvent, MapViewPaintable.PaintableInvalidationEvent, MapViewPaintable.PaintableInvalidationListener
FILTER_STATE_PROP, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP
Modifier | Constructor and Description |
---|---|
protected |
AbstractOsmDataLayer(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the data backing this layer, unless if locked.
|
abstract OsmData<?,?,?,?> |
getDataSet()
Returns the
OsmData 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.
|
createUploadTask, getUploadDialog, isDownloadable, isModified, isUploadable, isUploadDiscouraged, isUploadInProgress, onPostSaveToFile, onPostUploadToServer, requiresSaveToFile, requiresUploadToServer
addPropertyChangeListener, checkSaveConditions, createAndOpenSaveFileChooser, destroy, fireFilterStateChanged, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getChangesetSourceTag, getColor, getDefaultLayerPosition, getIcon, getInfoComponent, 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
addInvalidationListener, attachToMapView, createMapViewPainter, invalidate, removeInvalidationListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isSavable
paint
protected AbstractOsmDataLayer(java.lang.String name)
public abstract OsmData<?,?,?,?> getDataSet()
OsmData
behind this layer.OsmData
behind this layer.public void lock()
Lockable
lock
in interface Lockable
lock
in class AbstractModifiableLayer
public void unlock()
Lockable
unlock
in interface Lockable
unlock
in class AbstractModifiableLayer
public boolean isLocked()
Lockable
isLocked
in interface Lockable
isLocked
in class AbstractModifiableLayer
true
if this is read-only/lockedpublic void clear()