Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
org.openstreetmap.josm.actions.downloadtasks |
Provides the classes for JOSM
download tasks . |
org.openstreetmap.josm.actions.mapmode |
Provides the classes for JOSM
map modes . |
org.openstreetmap.josm.actions.relation |
Provides the classes for JOSM actions that work with
relations . |
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 else
|
org.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 geottaged 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.io.session |
Provides the classes for user sessions import/export.
|
Modifier and Type | Class and Description |
---|---|
static class |
AbstractMergeAction.TargetLayerDialogResult<T extends Layer>
TargetLayerDialogResult returned by AbstractMergeAction.askTargetLayer(List, String, boolean)
containing the selectedTargetLayer and whether the checkbox is ticked |
Modifier and Type | Field and Description |
---|---|
private Layer |
SessionLoadAction.Loader.active |
private Layer |
RenameLayerAction.layer |
T |
AbstractMergeAction.TargetLayerDialogResult.selectedTargetLayer
The selected target layer of type T
|
Modifier and Type | Field and Description |
---|---|
private MultiMap<Layer,Layer> |
SessionSaveAsAction.dependencies |
private MultiMap<Layer,Layer> |
SessionSaveAsAction.dependencies |
private java.util.Map<Layer,SessionLayerExporter> |
SessionSaveAsAction.exporters |
private java.util.List<Layer> |
SessionLoadAction.Loader.layers |
private java.util.List<Layer> |
SessionSaveAsAction.layers |
Modifier and Type | Method and Description |
---|---|
static <T extends Layer> |
AbstractMergeAction.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.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.
|
Modifier and Type | Method and Description |
---|---|
protected static Layer |
AbstractMergeAction.askTargetLayer(java.util.List<Layer> targetLayers)
Ask user to choose the target layer.
|
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.
|
Modifier and Type | Method and Description |
---|---|
protected static AbstractMergeAction.TargetLayerDialogResult<Layer> |
AbstractMergeAction.askTargetLayer(java.util.List<Layer> targetLayers,
boolean showCheckbox,
java.lang.String checkbox,
boolean checkboxDefault)
Ask user to choose the target layer and shows a checkbox.
|
protected static AbstractMergeAction.TargetLayerDialogResult<Layer> |
AbstractMergeAction.askTargetLayer(java.util.List<Layer> targetLayers,
java.lang.String checkbox,
boolean checkboxDefault)
Ask user to choose the target layer and shows a checkbox.
|
Modifier and Type | Method and Description |
---|---|
(package private) static boolean |
SessionLoadAction.Loader.addLayer(Layer l)
Tries to add a new layer.
|
static <T extends Layer> |
AbstractMergeAction.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.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 |
SaveActionBase.doSave(Layer layer)
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 |
SessionSaveAsAction.SessionSaveAsDialog.getDisabledExportPanel(Layer layer) |
protected abstract java.io.File |
SaveActionBase.getFile(Layer layer) |
java.io.File |
SaveAction.getFile(Layer layer) |
protected java.io.File |
SaveAsAction.getFile(Layer layer) |
boolean |
LassoModeAction.layerIsSupported(Layer l) |
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.
|
Modifier and Type | Method and Description |
---|---|
protected static Layer |
AbstractMergeAction.askTargetLayer(java.util.List<Layer> targetLayers)
Ask user to choose the target layer.
|
protected static AbstractMergeAction.TargetLayerDialogResult<Layer> |
AbstractMergeAction.askTargetLayer(java.util.List<Layer> targetLayers,
boolean showCheckbox,
java.lang.String checkbox,
boolean checkboxDefault)
Ask user to choose the target layer and shows a checkbox.
|
protected static AbstractMergeAction.TargetLayerDialogResult<Layer> |
AbstractMergeAction.askTargetLayer(java.util.List<Layer> targetLayers,
java.lang.String checkbox,
boolean checkboxDefault)
Ask user to choose the target layer and shows a checkbox.
|
protected java.util.concurrent.Future<?> |
MergeLayerAction.doMerge(java.util.List<Layer> targetLayers,
java.util.Collection<Layer> sourceLayers)
Submits merge of layers.
|
protected java.util.concurrent.Future<?> |
MergeLayerAction.doMerge(java.util.List<Layer> targetLayers,
java.util.Collection<Layer> sourceLayers)
Submits merge of layers.
|
java.util.concurrent.Future<?> |
MergeLayerAction.merge(java.util.List<Layer> sourceLayers)
Merges a list of layers together.
|
boolean |
ToggleUploadDiscouragedLayerAction.supportLayers(java.util.List<Layer> layers) |
Constructor and Description |
---|
RenameLayerAction(java.io.File file,
Layer layer)
Constructs a new
RenameLayerAction . |
Modifier and Type | Method and Description |
---|---|
private <L extends Layer> |
DownloadGpsTask.DownloadTask.addOrMergeLayer(L layer,
L mergeLayer) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
MapMode.isEditableDataLayer(Layer l)
Determines if the given layer is a data layer that can be modified.
|
boolean |
ParallelWayAction.layerIsSupported(Layer l) |
boolean |
ExtrudeAction.layerIsSupported(Layer l) |
boolean |
ImproveWayAccuracyAction.layerIsSupported(Layer l) |
boolean |
DrawAction.layerIsSupported(Layer l) |
boolean |
MapMode.layerIsSupported(Layer l)
Determines if layer
l is supported by this map mode. |
boolean |
SelectAction.layerIsSupported(Layer l) |
boolean |
DeleteAction.layerIsSupported(Layer l) |
Modifier and Type | Method and Description |
---|---|
protected Layer |
ExportRelationToGpxAction.getLayer() |
Modifier and Type | Field and Description |
---|---|
private Layer |
MapView.WarningLayerPainter.layer |
Modifier and Type | Field and 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.
|
Modifier and Type | Method and 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.
|
Constructor and Description |
---|
WarningLayerPainter(Layer layer) |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Layer> |
LayerTransferable.Data.layers |
Modifier and Type | Method and Description |
---|---|
java.util.List<Layer> |
LayerTransferable.Data.getLayers()
Gets the list of layers that were copied.
|
Constructor and Description |
---|
Data(LayerManager manager,
java.util.List<Layer> layers)
Create a new data object
|
LayerTransferable(LayerManager manager,
java.util.List<Layer> layers)
Create a new data object
|
Modifier and Type | Field and Description |
---|---|
private Layer |
LayerTransferData.layer |
Modifier and Type | Method and Description |
---|---|
Layer |
LayerTransferData.getLayer()
Gets the layer to be transferred.
|
Constructor and Description |
---|
LayerTransferData(LayerManager layerManager,
Layer layer)
Create a new transfer data for the given layer
|
Modifier and Type | Field and Description |
---|---|
private Layer |
LayerListPopup.InfoAction.layer |
Modifier and Type | Method and 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 position
index |
static Layer |
LayerListDialog.getLayerForIndex(int index)
Returns the layer at given index, or
null . |
Layer |
LayerListDialog.LayerListModel.getValue(int index) |
Layer |
LayerListDialog.LayerListModel.setValue(int index,
Layer value) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Layer> |
LayerListDialog.LayerListModel.getLayers()
Replies the list of layers currently managed by
MapView . |
java.util.List<Layer> |
LayerListDialog.LayerListModel.getPossibleMergeTargets(Layer source)
Replies a list of layers which are possible merge targets for
source |
java.util.List<Layer> |
LayerListDialog.LayerListModel.getSelectedLayers()
Replies the list of currently selected layers.
|
Modifier and Type | Method and 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 listeners
|
static 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 for
source |
protected 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 by
MapView is added |
private void |
LayerListDialog.LayerListModel.onRemoveLayer(Layer layer)
Invoked if a layer managed by
MapView is removed |
private void |
UserListDialog.refreshForActiveLayer(Layer activeLayer) |
void |
LayerListDialog.LayerListModel.setSelectedLayer(Layer layer)
Marks
layer as selected layer. |
Layer |
LayerListDialog.LayerListModel.setValue(int index,
Layer value) |
void |
LayerListDialog.LayerVisibleCheckBox.updateStatus(Layer layer) |
Constructor and Description |
---|
InfoAction(Layer layer)
Constructs a new
InfoAction for the given layer. |
Constructor and Description |
---|
LayerListPopup(java.util.List<Layer> selectedLayers)
Constructs a new
LayerListPopup . |
Modifier and Type | Class and Description |
---|---|
private class |
LayerVisibilityAction.AbstractFilterSlider<T extends Layer>
This is a slider for a filter value.
|
Modifier and Type | Field and Description |
---|---|
private Layer |
DuplicateAction.layer |
private Layer |
ActivateLayerAction.layer |
private Layer |
MergeAction.layer |
Modifier and Type | Field and Description |
---|---|
private java.lang.ref.WeakReference<Layer> |
ShowHideLayerAction.lastLayer |
private java.util.List<Layer> |
MergeAction.layers |
private java.util.function.Supplier<java.util.List<Layer>> |
LayerVisibilityAction.ColorSelector.layerSupplier |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<Layer> |
LayerListTransferHandler.createCopy(java.util.List<Layer> layersToUse,
java.util.List<Layer> namesToAvoid) |
Modifier and Type | Method and Description |
---|---|
protected void |
LayerVisibilityAction.OpacitySlider.applyValueToLayer(Layer layer) |
private static void |
DuplicateAction.duplicate(Layer layer) |
private void |
ActivateLayerAction.execute(Layer layer) |
(package private) boolean |
ActivateLayerAction.isActiveLayer(Layer layer) |
Modifier and Type | Method and Description |
---|---|
private static java.util.List<Layer> |
LayerListTransferHandler.createCopy(java.util.List<Layer> layersToUse,
java.util.List<Layer> namesToAvoid) |
private static java.util.List<Layer> |
LayerListTransferHandler.createCopy(java.util.List<Layer> layersToUse,
java.util.List<Layer> namesToAvoid) |
protected java.util.Collection<T> |
LayerVisibilityAction.AbstractFilterSlider.filterLayers(java.util.List<Layer> layers) |
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 |
LayerVisibilityAction.supportLayers(java.util.List<Layer> layers) |
boolean |
ShowHideLayerAction.supportLayers(java.util.List<Layer> layers) |
boolean |
DeleteLayerAction.supportLayers(java.util.List<Layer> layers) |
boolean |
MergeAction.supportLayers(java.util.List<Layer> layers) |
void |
LayerVisibilityAction.LayerVisibilityMenuEntry.updateLayers(java.util.List<Layer> layers,
boolean allVisible,
boolean allHidden)
Update the displayed value depending on the current layers
|
void |
LayerVisibilityAction.VisibilityCheckbox.updateLayers(java.util.List<Layer> layers,
boolean allVisible,
boolean allHidden) |
void |
LayerVisibilityAction.AbstractFilterSlider.updateLayers(java.util.List<Layer> layers,
boolean allVisible,
boolean allHidden) |
void |
LayerVisibilityAction.ColorSelector.updateLayers(java.util.List<Layer> layers,
boolean allVisible,
boolean allHidden) |
protected abstract void |
LayerVisibilityAction.AbstractFilterSlider.updateSliderWhileEnabled(java.util.Collection<? extends Layer> usedLayers,
boolean allHidden) |
protected void |
LayerVisibilityAction.OpacitySlider.updateSliderWhileEnabled(java.util.Collection<? extends Layer> usedLayers,
boolean allHidden) |
protected void |
LayerVisibilityAction.GammaFilterSlider.updateSliderWhileEnabled(java.util.Collection<? extends Layer> usedLayers,
boolean allHidden) |
protected void |
LayerVisibilityAction.SharpnessSlider.updateSliderWhileEnabled(java.util.Collection<? extends Layer> usedLayers,
boolean allHidden) |
protected void |
LayerVisibilityAction.ColorfulnessSlider.updateSliderWhileEnabled(java.util.Collection<? extends Layer> usedLayers,
boolean allHidden) |
Constructor and Description |
---|
ActivateLayerAction(Layer layer,
LayerListDialog.LayerListModel model)
Constructs a new
ActivateLayerAction . |
DuplicateAction(Layer layer,
LayerListDialog.LayerListModel model)
Constructs a new
DuplicateAction . |
MergeAction(Layer layer,
LayerListDialog.LayerListModel model)
Constructs a new
MergeAction . |
MergeAction(Layer layer,
java.util.List<Layer> layers,
LayerListDialog.LayerListModel model)
Constructs a new
MergeAction . |
Constructor and Description |
---|
ColorSelector(java.util.function.Supplier<java.util.List<Layer>> layerSupplier) |
MergeAction(Layer layer,
java.util.List<Layer> layers,
LayerListDialog.LayerListModel model)
Constructs a new
MergeAction . |
MergeAction(java.util.List<Layer> layers,
LayerListDialog.LayerListModel model)
Constructs a new
MergeAction . |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ValidatorErrorExporter.acceptFile(java.io.File pathname,
Layer layer) |
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) |
protected void |
OsmChangeImporter.addLayer(Layer layer) |
void |
ValidatorErrorExporter.exportData(java.io.File file,
Layer layer) |
void |
FileExporter.exportData(java.io.File file,
Layer layer)
Execute the data export.
|
void |
GpxExporter.exportData(java.io.File file,
Layer layer) |
void |
GeoJSONExporter.exportData(java.io.File file,
Layer layer) |
void |
NoteExporter.exportData(java.io.File file,
Layer layer) |
void |
WMSLayerExporter.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 noBackup)
Exports OSM data to the given file.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCachedTileSourceLayer<T extends AbstractTMSTileSource>
Class providing cache to other layers
|
class |
AbstractModifiableLayer
A modifiable layer.
|
class |
AbstractOsmDataLayer
Abstraction of
OsmDataLayer . |
class |
AbstractTileSourceLayer<T extends 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 |
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.
|
Modifier and Type | Field and Description |
---|---|
private Layer |
MainLayerManager.activeLayer
The layer from the layers list that is currently active.
|
private Layer |
LayerManager.LayerAddEvent.addedLayer |
private Layer |
Layer.LayerSaveAction.layer |
private Layer |
Layer.LayerSaveAsAction.layer |
private Layer |
Layer.LayerGpxExportAction.layer |
private Layer |
MainLayerManager.ActiveLayerChangeEvent.previousActiveLayer |
private Layer |
LayerManager.LayerRemoveEvent.removedLayer |
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
<T extends Layer> |
LayerManager.getLayersOfType(java.lang.Class<T> ofType)
Replies an unmodifiable list of layers of a certain type.
|
Modifier and Type | Method and Description |
---|---|
Layer |
MainLayerManager.getActiveLayer()
Replies the currently active layer
|
Layer |
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 according to the following
rules:
if there is at least one
OsmDataLayer the first one
becomes active
otherwise, the top most layer of any type becomes active
|
Modifier and Type | Method and Description |
---|---|
private java.util.Collection<Layer> |
LayerManager.fireLayerRemoving(Layer layer)
Fire the layer remove event
|
java.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> |
MainLayerManager.realRemoveSingleLayer(Layer layer) |
protected java.util.Collection<Layer> |
LayerManager.realRemoveSingleLayer(Layer layerToRemove)
Remove a single layer from the mapview (implementation).
|
Modifier and Type | Method and 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 layer
|
private void |
LayerManager.fireLayerAdded(Layer layer,
boolean initialZoom) |
private java.util.Collection<Layer> |
LayerManager.fireLayerRemoving(Layer layer)
Fire the layer remove event
|
static LayerPositionStrategy |
LayerPositionStrategy.inFrontOf(Layer other)
Gets a
LayerPositionStrategy that inserts this layer in front of a given layer |
private void |
LayerManager.insertLayerAt(Layer layer,
int position)
Insert a layer at a given position.
|
private static void |
LayerManager.insertLayerAt(java.util.List<Layer> layers,
Layer layer,
int position) |
boolean |
NoteLayer.isMergable(Layer other) |
boolean |
OsmDataLayer.isMergable(Layer other) |
abstract boolean |
Layer.isMergable(Layer other) |
boolean |
GpxLayer.isMergable(Layer other) |
boolean |
ImageryLayer.isMergable(Layer other) |
boolean |
ValidatorLayer.isMergable(Layer other) |
void |
NoteLayer.mergeFrom(Layer from) |
void |
OsmDataLayer.mergeFrom(Layer from) |
abstract void |
Layer.mergeFrom(Layer from)
Merges the given layer into this layer.
|
void |
GpxLayer.mergeFrom(Layer from) |
void |
ImageryLayer.mergeFrom(Layer from) |
void |
ValidatorLayer.mergeFrom(Layer from) |
void |
LayerManager.moveLayer(Layer layer,
int position)
Move a layer to a new position.
|
protected void |
MainLayerManager.realAddLayer(Layer layer,
boolean initialZoom) |
protected void |
LayerManager.realAddLayer(Layer layer,
boolean initialZoom)
Add a layer (implementation).
|
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> |
MainLayerManager.realRemoveSingleLayer(Layer layer) |
protected java.util.Collection<Layer> |
LayerManager.realRemoveSingleLayer(Layer layerToRemove)
Remove a single layer from the mapview (implementation).
|
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 according to the following
rules:
if there is at least one
OsmDataLayer the first one
becomes active
otherwise, the top most layer of any type becomes active
|
Modifier and Type | Method and Description |
---|---|
static boolean |
AbstractTileSourceLayer.actionSupportLayers(java.util.List<Layer> layers)
Default implementation of
Layer.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 |
Layer.MultiLayerAction.getMultiLayerAction(java.util.List<Layer> layers)
Returns the action for a given list of layers.
|
javax.swing.Action |
CustomizeColor.getMultiLayerAction(java.util.List<Layer> layers) |
static LayerPositionStrategy |
LayerPositionStrategy.inFrontOfFirst(java.util.function.Predicate<Layer> what)
Gets a
LayerPositionStrategy 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 |
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) |
boolean |
CustomizeColor.supportLayers(java.util.List<Layer> layers) |
boolean |
ImageryLayer.OffsetAction.supportLayers(java.util.List<Layer> layers) |
private void |
LayerManager.updateLayers(java.util.function.Consumer<java.util.List<Layer>> mutator)
Update the
LayerManager.layers field. |
Constructor and Description |
---|
ActiveLayerChangeEvent(MainLayerManager source,
OsmDataLayer previousDataLayer,
Layer previousActiveLayer)
Create a new
MainLayerManager.ActiveLayerChangeEvent |
CustomizeColor(Layer l)
Constructs a new
CustomizeColor 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 layer
|
LayerSaveAsAction(Layer layer)
Create a new save as action
|
Constructor and Description |
---|
CustomizeColor(java.util.List<Layer> l)
Constructs a new
CustomizeColor for a given list of layers. |
Modifier and Type | Class and Description |
---|---|
class |
GeoImageLayer
Layer displaying geottaged pictures.
|
Modifier and Type | Method and Description |
---|---|
boolean |
GeoImageLayer.isMergable(Layer other) |
void |
GeoImageLayer.mergeFrom(Layer from) |
private void |
ImageViewerDialog.registerOnLayer(Layer layer) |
private void |
ImageViewerDialog.showLayer(Layer newLayer) |
Modifier and Type | Method and Description |
---|---|
boolean |
ShowThumbnailAction.supportLayers(java.util.List<Layer> layers)
Check if the current layer is supported.
|
Modifier and Type | Class and Description |
---|---|
class |
ConvertToDataLayerAction<T extends Layer>
|
Modifier and Type | Field and Description |
---|---|
protected T |
ConvertToDataLayerAction.layer
source layer
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<Layer> |
CustomizeDrawingAction.layers |
Modifier and Type | Method and Description |
---|---|
javax.swing.Action |
CustomizeDrawingAction.getMultiLayerAction(java.util.List<Layer> layers) |
boolean |
CustomizeDrawingAction.supportLayers(java.util.List<Layer> layers) |
Constructor and Description |
---|
CustomizeDrawingAction(Layer l)
Create a new
CustomizeDrawingAction |
Constructor and Description |
---|
CustomizeDrawingAction(java.util.List<Layer> l)
Create a new
CustomizeDrawingAction |
Modifier and Type | Method and Description |
---|---|
boolean |
AutoZoomAction.supportLayers(java.util.List<Layer> layers) |
boolean |
ShowErrorsAction.supportLayers(java.util.List<Layer> layers) |
boolean |
AutoLoadTilesAction.supportLayers(java.util.List<Layer> layers) |
Modifier and Type | Class and Description |
---|---|
class |
MarkerLayer
A layer holding markers.
|
Modifier and Type | Method and Description |
---|---|
private static Marker |
MarkerLayer.getAdjacentMarker(Marker startMarker,
boolean next,
Layer layer) |
boolean |
MarkerLayer.isMergable(Layer other) |
void |
MarkerLayer.mergeFrom(Layer from) |
Modifier and Type | Method and Description |
---|---|
boolean |
MarkerLayer.ShowHideMarkerText.supportLayers(java.util.List<Layer> layers) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSessionExporter<T extends Layer>
Abstract superclass of all session layer exporters.
|
class |
GenericSessionExporter<T extends Layer>
Generic superclass of
OsmDataSessionExporter and GpxTracksSessionExporter layer exporters. |
Modifier and Type | Field and Description |
---|---|
private Layer |
SessionReader.LayerDependency.layer |
protected T |
AbstractSessionExporter.layer |
Modifier and Type | Field and 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 |
Modifier and Type | Method and Description |
---|---|
Layer |
SessionReader.getActive() |
Layer |
SessionReader.LayerDependency.getLayer() |
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 |
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 |
MarkerSessionImporter.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 |
SessionLayerImporter.load(org.w3c.dom.Element elem,
SessionReader.ImportSupport support,
ProgressMonitor progressMonitor)
Load the layer from xml meta-data.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Layer> |
SessionLayerExporter.getDependencies()
Return the Layers, this Layer depends on.
|
java.util.Collection<Layer> |
AbstractSessionExporter.getDependencies() |
java.util.Collection<Layer> |
GeoImageSessionExporter.getDependencies() |
java.util.Collection<Layer> |
MarkerSessionExporter.getDependencies() |
java.util.List<Layer> |
SessionReader.getLayers() |
Modifier and Type | Method and Description |
---|---|
static SessionLayerExporter |
SessionWriter.getSessionLayerExporter(Layer layer)
Returns the session layer exporter for the given layer.
|
Modifier and Type | Method and Description |
---|---|
static void |
SessionWriter.registerSessionLayerExporter(java.lang.Class<? extends Layer> layerClass,
java.lang.Class<? extends SessionLayerExporter> exporter)
Register a session layer exporter.
|
Constructor and Description |
---|
LayerDependency(java.lang.Integer index,
Layer layer,
SessionLayerImporter importer) |
Constructor and Description |
---|
SessionWriter(java.util.List<Layer> layers,
int active,
java.util.Map<Layer,SessionLayerExporter> exporters,
MultiMap<Layer,Layer> dependencies,
boolean zip)
Constructs a new
SessionWriter . |
SessionWriter(java.util.List<Layer> layers,
int active,
java.util.Map<Layer,SessionLayerExporter> exporters,
MultiMap<Layer,Layer> dependencies,
boolean zip)
Constructs a new
SessionWriter . |
SessionWriter(java.util.List<Layer> layers,
int active,
java.util.Map<Layer,SessionLayerExporter> exporters,
MultiMap<Layer,Layer> dependencies,
boolean zip)
Constructs a new
SessionWriter . |
SessionWriter(java.util.List<Layer> layers,
int active,
java.util.Map<Layer,SessionLayerExporter> exporters,
MultiMap<Layer,Layer> dependencies,
boolean zip)
Constructs a new
SessionWriter . |