Package org.openstreetmap.josm.actions
package org.openstreetmap.josm.actions
Provides the classes for JOSM user actions.
All of them inherit from
JosmAction.-
ClassDescriptionNice about screen.Abstract base class for info actions, opening an URL describing a particular object.Abstract superclass of different "Merge" actions.the list cell renderer used to render layer list entriesAbstractMergeAction.TargetLayerDialogResult<T extends Layer>
TargetLayerDialogResultreturned 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 tickedThis is the base class for all actions that paste objects.Superclass of "Select" actions in various parts of JOSM.Superclass of "History" actions in various parts of JOSM.Abstract super-class of all upload actions.Abstract class for key=value parameters, used inParameterizedAction.Simple ActionParameter implementation for string values.Interface to indicate that name (tooltip) and icon may be changed for an entry in the toolbar.Action displayed in imagery menu to add a new imagery layer.Represents the user choices when selecting layers to display.This action displays a dialog where the user can enter a latitude and longitude, and when ok is pressed, a new node is created at the specified position.Rotates the grid drawn over the map so that its lines run parallel to the current selection: either a single way (the direction from its first to its last node) or exactly two nodes.Aligns all selected nodes within a circle.InvalidSelection exception has to be raised when action can't be performedAligns all selected nodes into a straight line (useful for roads that should be straight, but have side roads and therefore need multiple nodes)InvalidSelection exception has to be raised when action can't be performedClass that represent a lineToggles the autoScale feature of the mapViewA list of things we can zoom to.This action toggles the visibility of theChangesetCacheManagerdialog.User action to close open changesets.Combines multiple ways into one.Copy OSM primitives to clipboard in order to paste them, or their tags, somewhere else.User action to copy the coordinates of one or several node(s) to the clipboard.User action to copy the URL of one or several object(s) to the clipboard.- Create a new circle from two selected nodes or a way with 2 nodes which represent the diameter of the circle.Class designed to create a couple between a node and its angle relative to the center of the circle.Create multipolygon from selected ways automatically.Action that deletes selected objects.Deletes the active layer.This action toggles visibility of dialogs panel and other panels to free more space for drawing (GIMP-like)Helper class for all actions that access the disk.Distributes the selected nodes to equal distances along a line.Action that opens a connection to the osm server and downloads map data.Abstract superclass of DownloadAlongTrackAction and DownloadAlongWayActionCalculate area around selected ways and split it into reasonable parts so that they can be downloaded.Action that downloads the notes within the current view from the server.Action that downloads the OSM data within the current view from the server.Download an OsmPrimitive by specifying type and IDThis action loads the set of primitives referring to the current selection from the OSM server.This class toggles whether to draw boundaries of downloaded data.An action that duplicates the given nodes.Exit the application.This action toggles the Expert mode.This listener is notified whenever the expert mode setting changed.A file filter that filters after the extension.Strategy to determine if extensions must be added to the description.Follow line action - Makes easier to draw a line that shares points with another line Aimed at those who want to draw two or more lines related with each other, but carry different information (i.e.This class toggles the full-screen mode.Exports data to gpx.Open a help browser and displays lightweight online help.Display history information about OSM ways, nodes, or relations.Dialog allowing to choose object id if no one is selected.Display history information about OSM ways, nodes, or relations in web browser.Adjust the position of an imagery layer.Display advanced object information about OSM nodes, ways, or relations.Display object information about OSM nodes, ways, or relations in web browser.User action to invert the selection in the current dataset.Interface used to enable/disable all primitive-related actions, even those registered by plugins.Join Areas (i.e.A multipolygon with a list of inner ways and an assembled polygon for the outer wayThis helper class describes a polygon, assembled from several ways.This helper class describes join areas action result.A record class to store how a multipolygon is constructedHelper storage class for finding findOuterWaysHelperClass - saves a way and the "inside" side.This helper class implements algorithm traversing through connected ways.Action allowing to join a node to a nearby way, operating on two modes: Join Node to Way: Include a node into the nearest way segments.Sorts collinear nodes by their distance to a common reference node.Base class helper for all Actions in JOSM.Allows to jump to a specific location.Download rectified images from various services.Class that bundles all required information of a rectifier serviceAction that merges two or more OSM data layers.Merges a collection of nodes into one node.Merge the currently selected objects into another layer.Mirror the selected nodes or ways along the vertical axis Note: If a ways are selected, their nodes are mirroredMoves the selectionMove direction.This action displays a dialog with the coordinates of a node where the user can change them, and when ok is pressed, the node is relocated to the specified position.Creates a blank new OSM data layer.Creates a blank new local OSM data layer.Action to open browser on given URL.Open a file chooser dialog and select a file to import.Task to open files.Open an URL input dialog and load data from the given URL.Tools / OrthogonalizeClass contains some auxiliary functionsException: unsuited user inputException: angle cannot be recognized as 0, 90, 180 or 270 degreesUndo the previous orthogonalization for certain nodes.Class contains everything we need to know about a single way.Interface for (toolbar-)actions that have additional parameters which need to be saved to the preferences (and loaded back).Action wrapper that delegates to aParameterizedActionobject using a specific set of parameters.Paste OSM primitives from clipboard to the current edit layer.A special version of thePasteActionthat pastes at the exact source location the item was copied from.Action, to paste all tags from one primitive to another.Open the Preferences dialog.User action to toggle a custom boolean preference value.The action to purge the selected primitives, i.e.force selection to be active for all entriesRedoes the last command.Action to rename an specific layer.Reorders all non-overlay imagery layers in a cyclic manner.Reports a ticket to JOSM bugtracker.Restarts JOSM as it was launched.Obtains the selected key and values from a table and restores those properties on the specified primitive.Reverses the ways that are currently selected by the userThe resulting way after reversing it and the commands to get there.Export the data as an OSM xml file.Abstract superclass of save actions.Export the data.Action to use the Notes search API to download all notes matching a given search term.User action to select all primitives in the current dataset.This allows to select a polygon/multipolygon by an internal point.Auxiliary class for theSelectNonBranchingWaySequencesAction.This allows to select a sequence of non-branching connected ways.Select child objects (way nodes and relation members) that are shared by all objects in the current selection.Loads a JOSM session.JOSM session loaderSaves a JOSM sessionSaves a JOSM session to a new fileMoves the origin of the grid drawn over the map to the current selection, so that grid lines pass through it, and enables the grid.This action toggles the display of the grid over the map view.Opens a dialog with useful status information like version numbers for Java, JOSM and plugins Also includes preferences with stripped username and password.Delete unnecessary nodes from a waySplits a way into multiple ways (all identical except for their node list).A dialog to query which way segment should reuse the history of the way to split.The tagging presets search action (F3).This class enables and disables tiled rendering mode.Abstract class for Toggle Actions.An action enabling/disabling the discouraged upload flag of the layer specified in the constructor.Undoes the last command.Duplicate nodes that are used by multiple ways or tagged nodes used by a single way or nodes which referenced more than once by a single way.Disconnect nodes from a way they currently belong to.User action to clear the current selection.This action synchronizes the dataset with the current state on the server.This action synchronizes a set of primitives with their state on the server.This action synchronizes a set of primitives with their state on the server.Action that opens a connection to the osm server and uploads all changes.Action to initiate uploading changed notes to the OSM server.Uploads the current selection to the server.Computes the collection of primitives to upload, given a collection of candidate primitives.The action that does the validate thing.This action toggles automatic moving of the map view to last placed nodeThis class toggles the wireframe rendering mode.Zoom in map.Zoom out map.An action that zooms to the selected OSM primitive in a table of primitives.