Uses of Class
org.openstreetmap.josm.gui.layer.Layer
-
Packages that use Layer Package Description org.openstreetmap.josm.actions Provides the classes for JOSM user actions.org.openstreetmap.josm.actions.downloadtasks Provides the classes for JOSMdownload tasks
.org.openstreetmap.josm.actions.mapmode Provides the classes for JOSMmap modes
.org.openstreetmap.josm.actions.relation Provides the classes for JOSM actions that work withrelations
.org.openstreetmap.josm.data Provides the classes for JOSM managed data.org.openstreetmap.josm.gui Provides the classes for JOSM graphical user interface.org.openstreetmap.josm.gui.datatransfer Provides the classes for transferring data using cut/copy/paste operations.org.openstreetmap.josm.gui.datatransfer.data Provides the classes for defining the serializable data transferred using cut/copy/paste operations.org.openstreetmap.josm.gui.dialogs Provides three kinds of dialogs: Toggle dialogs on the right side of the GUI, that can be turned on, off, attached or detached from the GUI Changeset dialog based on a standalone implementation, dedicated to OSM changesets management Extended dialogs for everything elseorg.openstreetmap.josm.gui.dialogs.layer Toggle dialog allowing to display the list of layers.org.openstreetmap.josm.gui.io Provides GUI classes for handling input/output operations (download, upload, save).org.openstreetmap.josm.gui.io.importexport Provides GUI classes for handling file import/export operations.org.openstreetmap.josm.gui.layer Provides classes for handling the different kinds of map layers.org.openstreetmap.josm.gui.layer.geoimage Provides classes for handling layers displaying geotagged pictures.org.openstreetmap.josm.gui.layer.gpx Provides classes for handling GPX layers.org.openstreetmap.josm.gui.layer.imagery Provides classes for handling imagery background layers.org.openstreetmap.josm.gui.layer.markerlayer Provides classes for handling marker layers.org.openstreetmap.josm.gui.preferences.advanced Provides classes for handling advanced preferences.org.openstreetmap.josm.io.session Provides the classes for user sessions import/export. -
-
Uses of Layer in org.openstreetmap.josm.actions
Classes in org.openstreetmap.josm.actions with type parameters of type Layer Modifier and Type Class Description static class
AbstractMergeAction.TargetLayerDialogResult<T extends Layer>
TargetLayerDialogResult
returned byAbstractMergeAction.askTargetLayer(java.util.List<? extends org.openstreetmap.josm.gui.layer.Layer>, boolean, java.lang.String, boolean, java.lang.String)
containing the selectedTargetLayer and whether the checkbox is tickedFields in org.openstreetmap.josm.actions declared as Layer Modifier and Type Field Description private Layer
SessionLoadAction.Loader. active
private Layer
RenameLayerAction. layer
T
AbstractMergeAction.TargetLayerDialogResult. selectedTargetLayer
The selected target layer of type TFields in org.openstreetmap.josm.actions with type parameters of type Layer Modifier and Type Field Description private MultiMap<Layer,Layer>
SessionSaveAction. dependencies
private MultiMap<Layer,Layer>
SessionSaveAction. dependencies
private java.util.Map<Layer,SessionLayerExporter>
SessionSaveAction. exporters
private java.util.List<Layer>
SessionLoadAction.Loader. layers
private java.util.List<Layer>
SessionSaveAction. layers
(package private) static java.util.List<java.lang.ref.WeakReference<Layer>>
SessionSaveAction. layersInSessionFile
Methods in org.openstreetmap.josm.actions with type parameters of type Layer Modifier and Type Method Description static <T extends Layer>
TAbstractMergeAction. askTargetLayer(T[] targetLayers, java.lang.String label, java.lang.String title, java.lang.String buttonText, java.lang.String buttonIcon)
Ask user to choose the target layer.static <T extends Layer>
AbstractMergeAction.TargetLayerDialogResult<T>AbstractMergeAction. askTargetLayer(T[] targetLayers, java.lang.String label, java.lang.String checkbox, java.lang.String title, java.lang.String buttonText, java.lang.String buttonIcon, boolean showCheckbox, boolean checkboxDefault)
Ask user to choose the target layer.Methods in org.openstreetmap.josm.actions that return Layer Modifier and Type Method Description protected Layer
AutoScaleAction. getFirstSelectedLayer()
Replies the first selected layer in the layer list dialog.protected Layer
GpxExportAction. getLayer()
Get the layer to export.protected Layer
MergeLayerAction. getSourceLayer()
Returns the source layer.Methods in org.openstreetmap.josm.actions that return types with arguments of type Layer Modifier and Type Method Description protected static AbstractMergeAction.TargetLayerDialogResult<Layer>
AbstractMergeAction. askTargetLayer(java.util.List<? extends Layer> targetLayers, boolean showCheckbox, java.lang.String checkbox, boolean checkboxDefault, java.lang.String buttonText)
Ask user to choose the target layer and shows a checkbox.Methods in org.openstreetmap.josm.actions with parameters of type Layer Modifier and Type Method Description (package private) static boolean
SessionLoadAction.Loader. addLayer(Layer l)
Tries to add a new layer.static <T extends Layer>
TAbstractMergeAction. askTargetLayer(T[] targetLayers, java.lang.String label, java.lang.String title, java.lang.String buttonText, java.lang.String buttonIcon)
Ask user to choose the target layer.static <T extends Layer>
AbstractMergeAction.TargetLayerDialogResult<T>AbstractMergeAction. askTargetLayer(T[] targetLayers, java.lang.String label, java.lang.String checkbox, java.lang.String title, java.lang.String buttonText, java.lang.String buttonIcon, boolean showCheckbox, boolean checkboxDefault)
Ask user to choose the target layer.private static boolean
SaveActionBase. doInternalSave(Layer layer, java.io.File file, boolean quiet)
boolean
SaveActionBase. doSave(Layer layer)
Saves the given layer.boolean
SaveActionBase. doSave(Layer layer, boolean quiet)
Saves the given layer.static boolean
SaveActionBase. doSave(Layer layer, java.io.File file, boolean checkSaveConditions)
Saves a layer to a given file.void
GpxExportAction. export(Layer layer)
Exports a layer to a file.protected java.awt.Component
SessionSaveAction.SessionSaveAsDialog. getDisabledExportPanel(Layer layer)
java.io.File
SaveAction. getFile(Layer layer)
protected abstract java.io.File
SaveActionBase. getFile(Layer layer)
protected java.io.File
SaveAsAction. getFile(Layer layer)
java.util.concurrent.Future<?>
MergeLayerAction. merge(Layer sourceLayer)
Merges the given source layer with another one, determined at runtime.static boolean
MergeLayerAction. warnMergingUploadDiscouragedLayers(Layer sourceLayer, Layer targetLayer)
Warns about a discouraged merge operation, ask for confirmation.boolean
MergeSelectionAction. warnMergingUploadDiscouragedObjects(Layer targetLayer)
Warns the user about merging too many objects with different upload policies.protected void
AbstractMergeAction. warnNoTargetLayersForSourceLayer(Layer sourceLayer)
Warns user when there no layers the source layer could be merged to.Method parameters in org.openstreetmap.josm.actions with type arguments of type Layer Modifier and Type Method Description protected static AbstractMergeAction.TargetLayerDialogResult<Layer>
AbstractMergeAction. askTargetLayer(java.util.List<? extends Layer> targetLayers, boolean showCheckbox, java.lang.String checkbox, boolean checkboxDefault, java.lang.String buttonText)
Ask user to choose the target layer and shows a checkbox.private static void
OpenFileAction.OpenFileTask. checkNewLayers(java.util.List<Layer> oldLayers)
protected java.util.concurrent.Future<?>
MergeLayerAction. doMerge(java.util.List<? extends Layer> targetLayers, java.util.Collection<? extends Layer> sourceLayers)
Submits merge of layers.protected java.util.concurrent.Future<?>
MergeLayerAction. doMerge(java.util.List<? extends Layer> targetLayers, java.util.Collection<? extends Layer> sourceLayers)
Submits merge of layers.java.util.concurrent.Future<?>
MergeLayerAction. merge(java.util.List<? extends Layer> sourceLayers)
Merges a list of layers together.static void
SessionSaveAction. setCurrentLayers(java.util.List<Layer> layers)
Sets the layers that are currently represented in the session filestatic void
SessionSaveAction. setCurrentSession(java.io.File file, boolean zip, java.util.List<Layer> layers)
Deprecated.since 18833, useSessionSaveAction.setCurrentSession(File, List, SessionWriter.SessionWriterFlags...)
insteadstatic void
SessionSaveAction. setCurrentSession(java.io.File file, java.util.List<Layer> layers, java.util.Set<SessionWriter.SessionWriterFlags> flags)
Sets the current session file and the layers included in that filestatic void
SessionSaveAction. setCurrentSession(java.io.File file, java.util.List<Layer> layers, SessionWriter.SessionWriterFlags... flags)
Sets the current session file and the layers included in that fileboolean
ToggleUploadDiscouragedLayerAction. supportLayers(java.util.List<Layer> layers)
private void
SessionSaveAction.SessionSaveAsDialog. updateExporters(java.util.Collection<Layer> noExporter)
Constructors in org.openstreetmap.josm.actions with parameters of type Layer Constructor Description RenameLayerAction(java.io.File file, Layer layer)
Constructs a newRenameLayerAction
. -
Uses of Layer in org.openstreetmap.josm.actions.downloadtasks
Methods in org.openstreetmap.josm.actions.downloadtasks with type parameters of type Layer Modifier and Type Method Description private <L extends Layer>
LDownloadGpsTask.DownloadTask. addOrMergeLayer(L layer, L mergeLayer)
-
Uses of Layer in org.openstreetmap.josm.actions.mapmode
Methods in org.openstreetmap.josm.actions.mapmode with parameters of type Layer Modifier and Type Method Description protected boolean
MapMode. isEditableDataLayer(Layer l)
Determines if the given layer is a data layer that can be modified.boolean
DeleteAction. layerIsSupported(Layer l)
boolean
DrawAction. layerIsSupported(Layer l)
boolean
ExtrudeAction. layerIsSupported(Layer l)
boolean
ImproveWayAccuracyAction. layerIsSupported(Layer l)
boolean
MapMode. layerIsSupported(Layer l)
Determines if layerl
is supported by this map mode.boolean
ParallelWayAction. layerIsSupported(Layer l)
boolean
SelectAction. layerIsSupported(Layer l)
boolean
SelectLassoAction. layerIsSupported(Layer l)
boolean
SplitMode. layerIsSupported(Layer l)
-
Uses of Layer in org.openstreetmap.josm.actions.relation
Methods in org.openstreetmap.josm.actions.relation that return Layer Modifier and Type Method Description protected Layer
ExportRelationToGpxAction. getLayer()
-
Uses of Layer in org.openstreetmap.josm.data
Fields in org.openstreetmap.josm.data declared as Layer Modifier and Type Field Description private Layer
ImageData. layer
Methods in org.openstreetmap.josm.data that return Layer Modifier and Type Method Description Layer
ImageData. getLayer()
Get the layer that this data is associated with.Methods in org.openstreetmap.josm.data with parameters of type Layer Modifier and Type Method Description void
ImageData. setLayer(Layer layer)
Set the layer for use withImageViewerDialog.displayImages(List)
-
Uses of Layer in org.openstreetmap.josm.gui
Fields in org.openstreetmap.josm.gui declared as Layer Modifier and Type Field Description private Layer
MapView.WarningLayerPainter. layer
Fields in org.openstreetmap.josm.gui with type parameters of type Layer Modifier and Type Field Description private java.util.Map<Layer,MapMode>
MapFrame. lastMapMode
private java.util.List<Layer>
MapView. nonChangedLayers
private java.util.HashMap<Layer,MapViewPaintable.LayerPainter>
MapView. registeredLayers
This is a map of all Layers that have been added to this view.Methods in org.openstreetmap.josm.gui with parameters of type Layer Modifier and Type Method Description private MapMode
MapFrame. getLastMapMode(Layer newLayer)
void
MapView. moveLayer(Layer layer, int pos)
Moves the layer to the given new position.void
MapView. paintLayer(Layer layer, java.awt.Graphics2D g)
Paints the given layer to the graphics object, using the current state of this map view.boolean
MapFrame. selectMapMode(MapMode newMapMode, Layer newLayer)
Another version of the selectMapMode for changing layer action.Constructors in org.openstreetmap.josm.gui with parameters of type Layer Constructor Description WarningLayerPainter(Layer layer)
-
Uses of Layer in org.openstreetmap.josm.gui.datatransfer
Fields in org.openstreetmap.josm.gui.datatransfer with type parameters of type Layer Modifier and Type Field Description private java.util.List<Layer>
LayerTransferable.Data. layers
Methods in org.openstreetmap.josm.gui.datatransfer that return types with arguments of type Layer Modifier and Type Method Description java.util.List<Layer>
LayerTransferable.Data. getLayers()
Gets the list of layers that were copied.Constructor parameters in org.openstreetmap.josm.gui.datatransfer with type arguments of type Layer Constructor Description Data(LayerManager manager, java.util.List<Layer> layers)
Create a new data objectLayerTransferable(LayerManager manager, java.util.List<Layer> layers)
Create a new data object -
Uses of Layer in org.openstreetmap.josm.gui.datatransfer.data
Fields in org.openstreetmap.josm.gui.datatransfer.data declared as Layer Modifier and Type Field Description private Layer
LayerTransferData. layer
Methods in org.openstreetmap.josm.gui.datatransfer.data that return Layer Modifier and Type Method Description Layer
LayerTransferData. getLayer()
Gets the layer to be transferred.Constructors in org.openstreetmap.josm.gui.datatransfer.data with parameters of type Layer Constructor Description LayerTransferData(LayerManager layerManager, Layer layer)
Create a new transfer data for the given layer -
Uses of Layer in org.openstreetmap.josm.gui.dialogs
Fields in org.openstreetmap.josm.gui.dialogs declared as Layer Modifier and Type Field Description private Layer
LayerListDialog.LayerVisibleCheckBox. layer
private Layer
LayerListPopup.InfoAction. layer
Methods in org.openstreetmap.josm.gui.dialogs that return Layer Modifier and Type Method Description private Layer
LayerListDialog.LayerListModel. getActiveLayer()
Replies the active layer.Layer
LayerListDialog.LayerListModel. getFirstLayer()
Replies the first layer.Layer
LayerListDialog.LayerListModel. getLayer(int index)
Replies the layer at positionindex
static Layer
LayerListDialog. getLayerForIndex(int index)
Returns the layer at given index, ornull
.Layer
LayerListDialog.LayerListModel. getValue(int index)
Layer
LayerListDialog.LayerListModel. setValue(int index, Layer value)
Methods in org.openstreetmap.josm.gui.dialogs that return types with arguments of type Layer Modifier and Type Method Description java.util.List<Layer>
LayerListDialog.LayerListModel. getLayers()
Replies the list of layers currently managed byMapView
.java.util.List<Layer>
LayerListDialog.LayerListModel. getPossibleMergeTargets(Layer source)
Replies a list of layers which are possible merge targets forsource
java.util.List<Layer>
LayerListDialog.LayerListModel. getSelectedLayers()
Replies the list of currently selected layers.Methods in org.openstreetmap.josm.gui.dialogs with parameters of type Layer Modifier and Type Method Description ActivateLayerAction
LayerListDialog. createActivateLayerAction(Layer layer)
DuplicateAction
LayerListDialog. createDuplicateLayerAction(Layer layer)
MergeAction
LayerListDialog. createMergeLayerAction(Layer layer)
private void
LayerListDialog.LayerListModel. fireMakeVisible(int index, Layer layer)
Fires a make visible event to listenersstatic MultikeyShortcutAction.MultikeyInfo
LayerListDialog. getLayerInfo(Layer l)
Returns info about layer.java.util.List<Layer>
LayerListDialog.LayerListModel. getPossibleMergeTargets(Layer source)
Replies a list of layers which are possible merge targets forsource
(package private) boolean
LayerListDialog.LayerNameCellRenderer. isActiveLayer(Layer layer)
static boolean
LayerListDialog. isLayerValid(Layer l)
Determines if a layer is valid (contained in global layer list).void
LayerListDialog.LayerListModelListener. makeVisible(int index, Layer layer)
Fired when a layer is made visible.private void
LayerListDialog.LayerListModel. onAddLayer(Layer layer)
Invoked when a layer managed byMapView
is addedprivate void
LayerListDialog.LayerListModel. onRemoveLayer(Layer layer)
Invoked if a layer managed byMapView
is removedprivate void
UserListDialog. refreshForActiveLayer(Layer activeLayer)
void
LayerListDialog.LayerListModel. setSelectedLayer(Layer layer)
Markslayer
as selected layer.Layer
LayerListDialog.LayerListModel. setValue(int index, Layer value)
void
LayerListDialog.LayerVisibleCheckBox. updateStatus(Layer layer)
Constructors in org.openstreetmap.josm.gui.dialogs with parameters of type Layer Constructor Description InfoAction(Layer layer)
Constructs a newInfoAction
for the given layer.Constructor parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type Layer Constructor Description LayerListPopup(java.util.List<Layer> selectedLayers)
Constructs a newLayerListPopup
. -
Uses of Layer in org.openstreetmap.josm.gui.dialogs.layer
Fields in org.openstreetmap.josm.gui.dialogs.layer declared as Layer Modifier and Type Field Description private Layer
ActivateLayerAction. layer
private Layer
DuplicateAction. layer
private Layer
MergeAction. layer
Fields in org.openstreetmap.josm.gui.dialogs.layer with type parameters of type Layer Modifier and Type Field Description private java.lang.ref.WeakReference<Layer>
ShowHideLayerAction. lastLayer
private java.util.List<Layer>
MergeAction. layers
private java.util.function.Supplier<java.util.Collection<Layer>>
LayerVisibilityAction. layerSupplier
Methods in org.openstreetmap.josm.gui.dialogs.layer that return types with arguments of type Layer Modifier and Type Method Description private static java.util.List<Layer>
LayerListTransferHandler. createCopy(java.util.List<Layer> layersToUse, java.util.List<Layer> namesToAvoid)
Methods in org.openstreetmap.josm.gui.dialogs.layer with parameters of type Layer Modifier and Type Method Description private static void
DuplicateAction. duplicate(Layer layer)
private void
ActivateLayerAction. execute(Layer layer)
(package private) boolean
ActivateLayerAction. isActiveLayer(Layer layer)
Method parameters in org.openstreetmap.josm.gui.dialogs.layer with type arguments of type Layer Modifier and Type Method Description private static java.util.List<Layer>
LayerListTransferHandler. createCopy(java.util.List<Layer> layersToUse, java.util.List<Layer> namesToAvoid)
MergeAction
MergeAction. getMultiLayerAction(java.util.List<Layer> layers)
private static java.util.List<java.lang.String>
LayerListTransferHandler. getNames(java.util.List<Layer> namesToAvoid)
static java.lang.String
LayerListTransferHandler. suggestNewLayerName(java.lang.String name, java.util.List<Layer> namesToAvoid)
Suggests a new name in the form "copy of name"boolean
DeleteLayerAction. supportLayers(java.util.List<Layer> layers)
boolean
LayerVisibilityAction. supportLayers(java.util.List<Layer> layers)
boolean
MergeAction. supportLayers(java.util.List<Layer> layers)
boolean
ShowHideLayerAction. supportLayers(java.util.List<Layer> layers)
Constructors in org.openstreetmap.josm.gui.dialogs.layer with parameters of type Layer Constructor Description ActivateLayerAction(Layer layer, LayerListDialog.LayerListModel model)
Constructs a newActivateLayerAction
.DuplicateAction(Layer layer, LayerListDialog.LayerListModel model)
Constructs a newDuplicateAction
.MergeAction(Layer layer, java.util.List<Layer> layers, LayerListDialog.LayerListModel model)
Constructs a newMergeAction
.MergeAction(Layer layer, LayerListDialog.LayerListModel model)
Constructs a newMergeAction
.Constructor parameters in org.openstreetmap.josm.gui.dialogs.layer with type arguments of type Layer Constructor Description LayerVisibilityAction(java.util.function.Supplier<java.util.Collection<Layer>> layerSupplier, java.util.function.Supplier<java.util.Collection<ImageryFilterSettings>> filterSettingsSupplier)
Creates a newLayerVisibilityAction
MergeAction(java.util.List<Layer> layers, LayerListDialog.LayerListModel model)
Constructs a newMergeAction
.MergeAction(Layer layer, java.util.List<Layer> layers, LayerListDialog.LayerListModel model)
Constructs a newMergeAction
. -
Uses of Layer in org.openstreetmap.josm.gui.io
Method parameters in org.openstreetmap.josm.gui.io with type arguments of type Layer Modifier and Type Method Description static boolean
SaveLayersDialog. saveUnsavedModifications(java.lang.Iterable<? extends Layer> selectedLayers, SaveLayersDialog.Reason reason)
Asks user to perform "save layer" operations (save on disk and/or upload data to server) before data layers deletion. -
Uses of Layer in org.openstreetmap.josm.gui.io.importexport
Fields in org.openstreetmap.josm.gui.io.importexport with type parameters of type Layer Modifier and Type Field Description private static java.util.List<java.lang.Class<? extends Layer>>
GpxExporter. SUPPORTED_LAYERS
Methods in org.openstreetmap.josm.gui.io.importexport that return types with arguments of type Layer Modifier and Type Method Description static java.util.List<java.lang.Class<? extends Layer>>
GpxExporter. getSupportedLayers()
Returns the list of supported layers.Methods in org.openstreetmap.josm.gui.io.importexport with parameters of type Layer Modifier and Type Method Description boolean
FileExporter. acceptFile(java.io.File pathname, Layer layer)
Check if this exporter can export a certain layer to a certain file.boolean
GpxExporter. acceptFile(java.io.File pathname, Layer layer)
boolean
NoteExporter. acceptFile(java.io.File pathname, Layer layer)
boolean
OsmExporter. acceptFile(java.io.File pathname, Layer layer)
boolean
ValidatorErrorExporter. acceptFile(java.io.File pathname, Layer layer)
protected void
OsmChangeImporter. addLayer(Layer layer)
void
FileExporter. exportData(java.io.File file, Layer layer)
Execute the data export.void
GeoJSONExporter. exportData(java.io.File file, Layer layer)
void
GpxExporter. exportData(java.io.File file, Layer layer)
private void
GpxExporter. exportData(java.io.File file, Layer layer, boolean quiet)
void
NoteExporter. exportData(java.io.File file, Layer layer)
void
OsmExporter. exportData(java.io.File file, Layer layer)
void
OsmExporter. exportData(java.io.File file, Layer layer, boolean isAutosave)
Exports OSM data to the given file.void
ValidatorErrorExporter. exportData(java.io.File file, Layer layer)
void
WMSLayerExporter. exportData(java.io.File file, Layer layer)
void
FileExporter. exportDataQuiet(java.io.File file, Layer layer)
Execute the data export without prompting the user.void
GpxExporter. exportDataQuiet(java.io.File file, Layer layer)
private static GpxData
GpxExporter. getGpxData(Layer layer, java.io.File file)
static boolean
GpxExporter. isSupportedLayer(Layer layer)
Determines if the given layer is supported by this action. -
Uses of Layer in org.openstreetmap.josm.gui.layer
Subclasses of Layer in org.openstreetmap.josm.gui.layer Modifier and Type Class Description class
AbstractCachedTileSourceLayer<T extends org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource>
Class providing cache to other layersclass
AbstractModifiableLayer
A modifiable layer.class
AbstractOsmDataLayer
Abstraction ofOsmDataLayer
.class
AbstractTileSourceLayer<T extends org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource>
Base abstract class that supports displaying images provided by TileSource.class
GpxLayer
A layer that displays data from a Gpx file / the OSM gpx downloads.class
GpxRouteLayer
A layer that displays GpxData.routes from a GPX file.class
ImageryLayer
class
NoteLayer
A layer to hold Note objects.class
OsmDataLayer
A layer that holds OSM data from a specific dataset.class
TMSLayer
Class that displays a slippy map layer.class
ValidatorLayer
A layer showing error messages.class
WMSLayer
This is a layer that grabs the current screen from an WMS server.class
WMTSLayer
WMTS layer based on AbstractTileSourceLayer.Fields in org.openstreetmap.josm.gui.layer declared as Layer Modifier and Type Field Description private Layer
MainLayerManager. activeLayer
The layer from the layers list that is currently active.private Layer
LayerManager.LayerAddEvent. addedLayer
private Layer
Layer.LayerGpxExportAction. layer
private Layer
Layer.LayerSaveAction. layer
private Layer
Layer.LayerSaveAsAction. layer
private Layer
MainLayerManager.ActiveLayerChangeEvent. previousActiveLayer
private Layer
LayerManager.LayerRemoveEvent. removedLayer
Fields in org.openstreetmap.josm.gui.layer with type parameters of type Layer Modifier and Type Field Description private java.util.List<Layer>
CustomizeColor. colorLayers
private java.lang.ref.WeakReference<Layer>
JumpToMarkerActions.JumpToMarker. lastLayer
private java.util.List<Layer>
LayerManager. layers
This is the list of layers we manage.private java.util.Collection<Layer>
LayerManager.LayerRemoveEvent. scheduleForRemoval
Methods in org.openstreetmap.josm.gui.layer with type parameters of type Layer Modifier and Type Method Description <T extends Layer>
java.util.List<T>LayerManager. getLayersOfType(java.lang.Class<T> ofType)
Replies an unmodifiable list of layers of a certain type.Methods in org.openstreetmap.josm.gui.layer that return Layer Modifier and Type Method Description Layer
MainLayerManager. getActiveLayer()
Replies the currently active layerLayer
LayerManager.LayerAddEvent. getAddedLayer()
Gets the layer that was added.Layer
MainLayerManager.ActiveLayerChangeEvent. getPreviousActiveLayer()
Gets the active layer that was previously used.Layer
LayerManager.LayerRemoveEvent. getRemovedLayer()
Gets the layer that is about to be removed.private Layer
MainLayerManager. suggestNextActiveLayer(Layer except)
Determines the next active data layer.Methods in org.openstreetmap.josm.gui.layer that return types with arguments of type Layer Modifier and Type Method Description private java.util.Collection<Layer>
LayerManager. fireLayerRemoving(Layer layer)
Fire the layer remove eventjava.util.List<Layer>
LayerManager. getLayers()
Gets an unmodifiable list of all layers that are currently in this manager.java.util.List<Layer>
MainLayerManager. getVisibleLayersInZOrder()
Creates a list of the visible layers in Z-Order, the layer with the lowest Z-Order first, layer with the highest Z-Order last.protected java.util.Collection<Layer>
LayerManager. realRemoveSingleLayer(Layer layerToRemove)
Remove a single layer from the mapview (implementation).protected java.util.Collection<Layer>
MainLayerManager. realRemoveSingleLayer(Layer layer)
Methods in org.openstreetmap.josm.gui.layer with parameters of type Layer Modifier and Type Method Description void
LayerManager. addLayer(Layer layer)
Add a layer.void
LayerManager. addLayer(Layer layer, boolean initialZoom)
Add a layer.protected void
LayerManager. checkContainsLayer(Layer layer)
Checks if the specified layer is handled by this layer manager.boolean
LayerManager. containsLayer(Layer layer)
replies true if the list of layers managed by this map view contain layerprivate void
LayerManager. fireLayerAdded(Layer layer, boolean initialZoom)
private java.util.Collection<Layer>
LayerManager. fireLayerRemoving(Layer layer)
Fire the layer remove eventstatic LayerPositionStrategy
LayerPositionStrategy. inFrontOf(Layer other)
Gets aLayerPositionStrategy
that inserts this layer in front of a given layerprivate static void
LayerManager. insertLayerAt(java.util.List<Layer> layers, Layer layer, int position)
private void
LayerManager. insertLayerAt(Layer layer, int position)
Insert a layer at a given position.boolean
GpxLayer. isMergable(Layer other)
boolean
GpxRouteLayer. isMergable(Layer other)
boolean
ImageryLayer. isMergable(Layer other)
abstract boolean
Layer. isMergable(Layer other)
Determines if the other layer can be merged into this layer.boolean
NoteLayer. isMergable(Layer other)
boolean
OsmDataLayer. isMergable(Layer other)
boolean
ValidatorLayer. isMergable(Layer other)
void
GpxLayer. mergeFrom(Layer from)
void
GpxRouteLayer. mergeFrom(Layer from)
void
ImageryLayer. mergeFrom(Layer from)
abstract void
Layer. mergeFrom(Layer from)
Merges the given layer into this layer.void
NoteLayer. mergeFrom(Layer from)
void
OsmDataLayer. mergeFrom(Layer from)
void
ValidatorLayer. mergeFrom(Layer from)
void
LayerManager. moveLayer(Layer layer, int position)
Move a layer to a new position.protected void
LayerManager. realAddLayer(Layer layer, boolean initialZoom)
Add a layer (implementation).protected void
MainLayerManager. realAddLayer(Layer layer, boolean initialZoom)
protected void
LayerManager. realMoveLayer(Layer layer, int position)
Move a layer to a new position (implementation).protected void
LayerManager. realRemoveLayer(Layer layer)
Remove the layer from the mapview (implementation).protected java.util.Collection<Layer>
LayerManager. realRemoveSingleLayer(Layer layerToRemove)
Remove a single layer from the mapview (implementation).protected java.util.Collection<Layer>
MainLayerManager. realRemoveSingleLayer(Layer layer)
protected void
MainLayerManager. realSetActiveLayer(Layer layer)
void
LayerManager. removeLayer(Layer layer)
Remove the layer from the mapview.void
MainLayerManager. setActiveLayer(Layer layer)
Set the active layer, unless the layer is being uploaded.private void
MainLayerManager. setActiveLayer(Layer layer, boolean forceEditLayerUpdate)
protected void
JumpToMarkerActions.JumpToMarker. setLastLayer(Layer l)
private Layer
MainLayerManager. suggestNextActiveLayer(Layer except)
Determines the next active data layer.Method parameters in org.openstreetmap.josm.gui.layer with type arguments of type Layer Modifier and Type Method Description static boolean
AbstractTileSourceLayer. actionSupportLayers(java.util.List<Layer> layers)
Default implementation ofLayer.LayerAction.supportLayers(List)
.static LayerPositionStrategy
LayerPositionStrategy. afterLast(java.util.function.Predicate<Layer> what)
Creates a strategy that places the layer after the last layer of a given kind or at the beginning of the list if no such layer exists.javax.swing.Action
CustomizeColor. getMultiLayerAction(java.util.List<Layer> layers)
javax.swing.Action
Layer.MultiLayerAction. getMultiLayerAction(java.util.List<Layer> layers)
Returns the action for a given list of layers.static LayerPositionStrategy
LayerPositionStrategy. inFrontOfFirst(java.util.function.Predicate<Layer> what)
Gets aLayerPositionStrategy
that inserts the layer in front of the first layer that matches a condition.private static void
LayerManager. insertLayerAt(java.util.List<Layer> layers, Layer layer, int position)
void
LayerManager.LayerRemoveEvent. scheduleRemoval(java.util.Collection<? extends Layer> layers)
Schedule the removal of other layers after this layer has been deleted.boolean
CustomizeColor. supportLayers(java.util.List<Layer> layers)
boolean
ImageryLayer.OffsetAction. supportLayers(java.util.List<Layer> layers)
boolean
Layer.LayerAction. supportLayers(java.util.List<Layer> layers)
Determines if this action supports a given list of layers.boolean
Layer.SeparatorLayerAction. supportLayers(java.util.List<Layer> layers)
private void
LayerManager. updateLayers(java.util.function.Consumer<java.util.List<Layer>> mutator)
Update theLayerManager.layers
field.Constructors in org.openstreetmap.josm.gui.layer with parameters of type Layer Constructor Description ActiveLayerChangeEvent(MainLayerManager source, OsmDataLayer previousDataLayer, Layer previousActiveLayer)
Create a newMainLayerManager.ActiveLayerChangeEvent
CustomizeColor(Layer l)
Constructs a newCustomizeColor
for a single layer.LayerAddEvent(LayerManager source, Layer addedLayer, boolean requiresZoom)
LayerGpxExportAction(Layer layer)
Create a new gpx export action for the given layer.LayerRemoveEvent(LayerManager source, Layer removedLayer)
LayerSaveAction(Layer layer)
Create a new action that saves the layerLayerSaveAsAction(Layer layer)
Create a new save as actionConstructor parameters in org.openstreetmap.josm.gui.layer with type arguments of type Layer Constructor Description CustomizeColor(java.util.List<Layer> l)
Constructs a newCustomizeColor
for a given list of layers. -
Uses of Layer in org.openstreetmap.josm.gui.layer.geoimage
Classes in org.openstreetmap.josm.gui.layer.geoimage with type parameters of type Layer Modifier and Type Class Description private static class
ImageViewerDialog.MoveImgDisplayPanel<T extends Layer & IGeoImageLayer>
A JPanel whose entire purpose is to display an image by (a) moving the imgDisplay around and (b) setting the imgDisplay as a child for this panel.Subclasses of Layer in org.openstreetmap.josm.gui.layer.geoimage Modifier and Type Class Description class
CorrelationSupportLayer
A support layer meant to be modified by the user to provide real-time images correlation.class
GeoImageLayer
Layer displaying geotagged pictures.(package private) class
WikimediaCommonsLayer
A layer showing geocoded images from Wikimedia CommonsFields in org.openstreetmap.josm.gui.layer.geoimage declared as Layer Modifier and Type Field Description private T
ImageViewerDialog.MoveImgDisplayPanel. layer
Methods in org.openstreetmap.josm.gui.layer.geoimage with parameters of type Layer Modifier and Type Method Description boolean
CorrelationSupportLayer. isMergable(Layer other)
boolean
GeoImageLayer. isMergable(Layer other)
void
GeoImageLayer. mergeFrom(Layer from)
private void
ImageViewerDialog. registerOnLayer(Layer layer)
private void
ImageViewerDialog. removeImageTab(Layer layer)
Remove a tab for a layer from theImageViewerDialog.layers
tab paneprivate void
ImageViewerDialog. showLayer(Layer newLayer)
Method parameters in org.openstreetmap.josm.gui.layer.geoimage with type arguments of type Layer Modifier and Type Method Description (package private) java.lang.String
ImageViewerDialog.MoveImgDisplayPanel. getLabel(java.util.List<Layer> availableLayers)
Get the label for this panelboolean
ShowThumbnailAction. supportLayers(java.util.List<Layer> layers)
Check if the current layer is supported. -
Uses of Layer in org.openstreetmap.josm.gui.layer.gpx
Classes in org.openstreetmap.josm.gui.layer.gpx with type parameters of type Layer Modifier and Type Class Description class
ConvertToDataLayerAction<T extends Layer>
Fields in org.openstreetmap.josm.gui.layer.gpx declared as Layer Modifier and Type Field Description protected T
ConvertToDataLayerAction. layer
source layerFields in org.openstreetmap.josm.gui.layer.gpx with type parameters of type Layer Modifier and Type Field Description private java.util.List<Layer>
CustomizeDrawingAction. layers
Method parameters in org.openstreetmap.josm.gui.layer.gpx with type arguments of type Layer Modifier and Type Method Description javax.swing.Action
CustomizeDrawingAction. getMultiLayerAction(java.util.List<Layer> layers)
javax.swing.Action
DownloadAlongTrackAction. getMultiLayerAction(java.util.List<Layer> layers)
boolean
CustomizeDrawingAction. supportLayers(java.util.List<Layer> layers)
boolean
DownloadAlongTrackAction. supportLayers(java.util.List<Layer> layers)
Constructors in org.openstreetmap.josm.gui.layer.gpx with parameters of type Layer Constructor Description CustomizeDrawingAction(Layer l)
Create a newCustomizeDrawingAction
Constructor parameters in org.openstreetmap.josm.gui.layer.gpx with type arguments of type Layer Constructor Description CustomizeDrawingAction(java.util.List<Layer> l)
Create a newCustomizeDrawingAction
-
Uses of Layer in org.openstreetmap.josm.gui.layer.imagery
Subclasses of Layer in org.openstreetmap.josm.gui.layer.imagery Modifier and Type Class Description class
MVTLayer
A layer for Mapbox Vector TilesMethod parameters in org.openstreetmap.josm.gui.layer.imagery with type arguments of type Layer Modifier and Type Method Description boolean
AutoLoadTilesAction. supportLayers(java.util.List<Layer> layers)
boolean
AutoZoomAction. supportLayers(java.util.List<Layer> layers)
boolean
MVTLayer.ConvertLayerAction. supportLayers(java.util.List<Layer> layers)
boolean
MVTLayer.EnableLayerAction. supportLayers(java.util.List<Layer> layers)
boolean
ShowErrorsAction. supportLayers(java.util.List<Layer> layers)
-
Uses of Layer in org.openstreetmap.josm.gui.layer.markerlayer
Subclasses of Layer in org.openstreetmap.josm.gui.layer.markerlayer Modifier and Type Class Description class
MarkerLayer
A layer holding markers.Methods in org.openstreetmap.josm.gui.layer.markerlayer with parameters of type Layer Modifier and Type Method Description private static Marker
MarkerLayer. getAdjacentMarker(Marker startMarker, boolean next, Layer layer)
boolean
MarkerLayer. isMergable(Layer other)
void
MarkerLayer. mergeFrom(Layer from)
Method parameters in org.openstreetmap.josm.gui.layer.markerlayer with type arguments of type Layer Modifier and Type Method Description boolean
MarkerLayer.ShowHideMarkerText. supportLayers(java.util.List<Layer> layers)
-
Uses of Layer in org.openstreetmap.josm.gui.preferences.advanced
Subclasses of Layer in org.openstreetmap.josm.gui.preferences.advanced Modifier and Type Class Description private static class
AdvancedPreference.UnclearableOsmDataLayer
-
Uses of Layer in org.openstreetmap.josm.io.session
Classes in org.openstreetmap.josm.io.session with type parameters of type Layer Modifier and Type Class Description class
AbstractSessionExporter<T extends Layer>
Abstract superclass of all session layer exporters.class
GenericSessionExporter<T extends Layer>
Generic superclass ofOsmDataSessionExporter
andGpxTracksSessionExporter
layer exporters.Fields in org.openstreetmap.josm.io.session declared as Layer Modifier and Type Field Description protected T
AbstractSessionExporter. layer
private Layer
SessionReader.LayerDependency. layer
Fields in org.openstreetmap.josm.io.session with type parameters of type Layer Modifier and Type Field Description private MultiMap<Layer,Layer>
SessionWriter. dependencies
private MultiMap<Layer,Layer>
SessionWriter. dependencies
private java.util.Map<Layer,SessionLayerExporter>
SessionWriter. exporters
private java.util.List<Layer>
SessionReader. layers
private java.util.List<Layer>
SessionWriter. layers
private static java.util.Map<java.lang.Class<? extends Layer>,java.lang.Class<? extends SessionLayerExporter>>
SessionWriter. sessionLayerExporters
private java.util.Map<java.lang.Integer,java.util.Map.Entry<Layer,org.w3c.dom.Element>>
SessionReader.ImportSupport. subLayers
Methods in org.openstreetmap.josm.io.session that return Layer Modifier and Type Method Description Layer
SessionReader. getActive()
Returns active layer.protected Layer
GpxRoutesSessionImporter. getLayer(GpxImporter.GpxImporterData importData)
protected Layer
GpxTracksSessionImporter. getLayer(GpxImporter.GpxImporterData importData)
Layer
SessionReader.LayerDependency. getLayer()
static Layer
OsmDataSessionImporter. importData(OsmImporter osmImporter, SessionReader.ImportSupport support, java.lang.String fileStr, ProgressMonitor progressMonitor)
Import data as a new layer.Layer
GeoImageSessionImporter. load(org.w3c.dom.Element elem, SessionReader.ImportSupport support, ProgressMonitor progressMonitor)
Layer
GpxTracksSessionImporter. load(org.w3c.dom.Element elem, SessionReader.ImportSupport support, ProgressMonitor progressMonitor)
Layer
ImagerySessionImporter. load(org.w3c.dom.Element elem, SessionReader.ImportSupport support, ProgressMonitor progressMonitor)
Layer
MarkerSessionImporter. load(org.w3c.dom.Element elem, SessionReader.ImportSupport support, ProgressMonitor progressMonitor)
Layer
NoteSessionImporter. load(org.w3c.dom.Element elem, SessionReader.ImportSupport support, ProgressMonitor progressMonitor)
Layer
OsmDataSessionImporter. load(org.w3c.dom.Element elem, SessionReader.ImportSupport support, ProgressMonitor progressMonitor)
Layer
SessionLayerImporter. load(org.w3c.dom.Element elem, SessionReader.ImportSupport support, ProgressMonitor progressMonitor)
Load the layer from xml meta-data.Methods in org.openstreetmap.josm.io.session that return types with arguments of type Layer Modifier and Type Method Description java.util.Collection<Layer>
AbstractSessionExporter. getDependencies()
java.util.Collection<Layer>
GeoImageSessionExporter. getDependencies()
java.util.Collection<Layer>
MarkerSessionExporter. getDependencies()
java.util.Collection<Layer>
SessionLayerExporter. getDependencies()
Return the Layers, this Layer depends on.java.util.List<Layer>
SessionReader. getLayers()
Returns list of layers that are later added to the mapview.java.util.Map<java.lang.Integer,java.util.Map.Entry<Layer,org.w3c.dom.Element>>
SessionReader.ImportSupport. getSubLayers()
Returns the sub layersMethods in org.openstreetmap.josm.io.session with parameters of type Layer Modifier and Type Method Description void
SessionReader.ImportSupport. addSubLayer(int idx, Layer layer, org.w3c.dom.Element el)
Add sub layersint
SessionWriter.ExportSupport. getLayerIndexOf(Layer layer)
Get the index of the specified layerstatic SessionLayerExporter
SessionWriter. getSessionLayerExporter(Layer layer)
Returns the session layer exporter for the given layer.private static void
SessionReader. setLayerAttributes(Layer layer, org.w3c.dom.Element e)
Method parameters in org.openstreetmap.josm.io.session with type arguments of type Layer Modifier and Type Method Description static void
SessionWriter. registerSessionLayerExporter(java.lang.Class<? extends Layer> layerClass, java.lang.Class<? extends SessionLayerExporter> exporter)
Register a session layer exporter.Constructors in org.openstreetmap.josm.io.session with parameters of type Layer Constructor Description LayerDependency(java.lang.Integer index, Layer layer, SessionLayerImporter importer)
Constructor parameters in org.openstreetmap.josm.io.session with type arguments of type Layer Constructor Description SessionWriter(java.util.List<Layer> layers, int active, java.util.Map<Layer,SessionLayerExporter> exporters, MultiMap<Layer,Layer> dependencies, boolean zip)
Constructs a newSessionWriter
.SessionWriter(java.util.List<Layer> layers, int active, java.util.Map<Layer,SessionLayerExporter> exporters, MultiMap<Layer,Layer> dependencies, boolean zip)
Constructs a newSessionWriter
.SessionWriter(java.util.List<Layer> layers, int active, java.util.Map<Layer,SessionLayerExporter> exporters, MultiMap<Layer,Layer> dependencies, boolean zip)
Constructs a newSessionWriter
.SessionWriter(java.util.List<Layer> layers, int active, java.util.Map<Layer,SessionLayerExporter> exporters, MultiMap<Layer,Layer> dependencies, boolean zip)
Constructs a newSessionWriter
.SessionWriter(java.util.List<Layer> layers, int active, java.util.Map<Layer,SessionLayerExporter> exporters, MultiMap<Layer,Layer> dependencies, SessionWriter.SessionWriterFlags... flags)
Constructs a newSessionWriter
.SessionWriter(java.util.List<Layer> layers, int active, java.util.Map<Layer,SessionLayerExporter> exporters, MultiMap<Layer,Layer> dependencies, SessionWriter.SessionWriterFlags... flags)
Constructs a newSessionWriter
.SessionWriter(java.util.List<Layer> layers, int active, java.util.Map<Layer,SessionLayerExporter> exporters, MultiMap<Layer,Layer> dependencies, SessionWriter.SessionWriterFlags... flags)
Constructs a newSessionWriter
.SessionWriter(java.util.List<Layer> layers, int active, java.util.Map<Layer,SessionLayerExporter> exporters, MultiMap<Layer,Layer> dependencies, SessionWriter.SessionWriterFlags... flags)
Constructs a newSessionWriter
.
-