Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
org.openstreetmap.josm.actions.corrector |
Provides the classes for JOSM
tag correctors . |
org.openstreetmap.josm.actions.mapmode |
Provides the classes for JOSM
map modes . |
org.openstreetmap.josm.command |
Provides the classes for JOSM commands allowing to modify an OSM data set.
|
org.openstreetmap.josm.command.conflict |
Provides commands for handling conflicts.
|
org.openstreetmap.josm.data |
Provides the classes for JOSM managed data.
|
org.openstreetmap.josm.data.validation |
Provides the classes for JOSM data validation.
|
org.openstreetmap.josm.data.validation.tests |
Provides the classes for JOSM data validation tests.
|
org.openstreetmap.josm.gui.conflict.pair |
Provides the classes for displaying conflicts as pair of lists.
|
org.openstreetmap.josm.gui.conflict.pair.properties |
Provides the classes for displaying conflicts in OSM primitive properties.
|
org.openstreetmap.josm.gui.conflict.tags |
Provides the classes for resolving conflicts between OSM tags.
|
org.openstreetmap.josm.gui.datatransfer.importers |
Provides the classes for the transfer support controllers allowing 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.relation |
Toggle dialog allowing to display currently loaded relations and perform operations on them.
|
org.openstreetmap.josm.gui.tagging |
Provides classes for handling edition of OSM tags: tag tables, tag editors.
|
org.openstreetmap.josm.gui.tagging.presets |
Provides classes for handling tagging presets.
|
org.openstreetmap.josm.io.remotecontrol.handler |
Provides the classes for remote control handlers (features exposed to the browser).
|
org.openstreetmap.josm.tools |
Provides the classes for various utilities and tools called from all other packages.
|
Modifier and Type | Field and Description |
---|---|
private Command |
ReverseWayAction.ReverseWayResult.reverseCommand |
Modifier and Type | Field and Description |
---|---|
private java.util.LinkedList<Command> |
JoinAreasAction.cmds |
private java.util.Collection<Command> |
ReverseWayAction.ReverseWayResult.tagCorrectionCommands |
Modifier and Type | Method and Description |
---|---|
private static Command |
AlignInLineAction.alignMultiWay(java.util.Collection<Way> ways)
Align way in case of multiple way #6819
|
private static Command |
AlignInLineAction.alignOnlyNodes(java.util.List<Node> nodes)
Align nodes in case 3 or more nodes are selected.
|
private static Command |
AlignInLineAction.alignSingleNode(Node node,
java.util.List<AlignInLineAction.Line> lines)
Align a single node relative to a set of lines #9081
|
Command |
AlignInLineAction.buildCommand(DataSet ds)
Builds "align in line" command depending on the selected objects.
|
Command |
ReverseWayAction.ReverseWayResult.getAsSequenceCommand()
Gets a single sequence command for reversing this way including changing the tags
|
Command |
ReverseWayAction.ReverseWayResult.getReverseCommand()
Gets the basic reverse command that only changes the order of the nodes.
|
Command |
AlignInLineAction.Line.intersectionCommand(Node n,
AlignInLineAction.Line other)
Intersection of two line.
|
static Command |
MergeNodesAction.mergeNodes(java.util.Collection<Node> nodes,
Node targetLocationNode)
Merges the nodes in
nodes at the specified node's location. |
static Command |
MergeNodesAction.mergeNodes(java.util.Collection<Node> nodes,
Node targetNode,
Node targetLocationNode)
Merges the nodes in
nodes onto one of the nodes. |
private static Command |
OrthogonalizeAction.orthogonalize(java.util.List<OrthogonalizeAction.WayData> wayDataList,
Node singleNode)
Try to orthogonalize the given ways by moving only a single given node
|
Command |
AlignInLineAction.Line.projectionCommand(Node n)
Orthogonal projection of a node N along this line.
|
Modifier and Type | Method and Description |
---|---|
static Pair<Way,Command> |
CombineWayAction.combineWaysWorker(java.util.Collection<Way> ways)
Combine multiple ways into one.
|
private static java.util.Collection<Command> |
DistributeAction.distributeNodes(java.util.Collection<Node> nodes)
Distribute nodes when only nodes are selected.
|
private static java.util.Collection<Command> |
DistributeAction.distributeWay(java.util.Collection<Way> ways,
java.util.Collection<Node> nodes)
Distribute nodes contained by a way, keeping nodes order.
|
protected static java.util.List<Command> |
MergeNodesAction.fixParentWays(java.util.Collection<Node> nodesToDelete,
Node targetNode)
Fixes the parent ways referring to one of the nodes.
|
java.util.Collection<Command> |
ReverseWayAction.ReverseWayResult.getCommands()
Gets the commands that will be required to do a full way reversal including changing the tags
|
java.util.Collection<Command> |
ReverseWayAction.ReverseWayResult.getTagCorrectionCommands()
Gets the command to change the tags of the way
|
private static java.util.Collection<Command> |
OrthogonalizeAction.orthogonalize(java.util.List<OrthogonalizeAction.WayData> wayDataList,
java.util.List<Node> headingNodes)
Outline:
1.
|
static java.util.List<Command> |
CreateMultipolygonAction.removeTagsFromWaysIfNeeded(Relation relation)
This method removes tags/value pairs from inner and outer ways and put them on relation if necessary
Function was extended in reltoolbox plugin by Zverikk and copied back to the core
|
Modifier and Type | Method and Description |
---|---|
private void |
JoinAreasAction.commitCommand(Command c) |
Modifier and Type | Method and Description |
---|---|
private void |
UnGlueAction.execCommands(java.util.List<Command> cmds,
java.util.List<Node> newNodes)
Add commands to undo-redo system.
|
private static Way |
UnGlueAction.modifyWay(Node originalNode,
Way w,
java.util.List<Command> cmds,
java.util.List<Node> newNodes)
dupe the given node of the given way
assume that originalNode is in the way
the new node will be put into the parameter newNodes.
the add-node command will be put into the parameter cmds.
the changed way will be returned and must be put into cmds by the caller!
|
(package private) static void |
UnGlueAction.update(PropertiesMembershipChoiceDialog dialog,
Node existingNode,
java.util.List<Node> newNodes,
java.util.Collection<Command> cmds) |
private static void |
UnGlueAction.updateMemberships(PropertiesMembershipChoiceDialog.ExistingBothNew memberships,
Node originalNode,
java.util.List<Node> newNodes,
java.util.Collection<Command> cmds)
put all newNodes into the same relation(s) that originalNode is in
|
private static void |
UnGlueAction.updateProperties(PropertiesMembershipChoiceDialog.ExistingBothNew tags,
Node existingNode,
java.lang.Iterable<Node> newNodes,
java.util.Collection<Command> cmds) |
Constructor and Description |
---|
ReverseWayResult(Way newWay,
java.util.Collection<Command> tagCorrectionCommands,
Command reverseCommand)
Create a new
ReverseWayAction.ReverseWayResult |
Constructor and Description |
---|
ReverseWayResult(Way newWay,
java.util.Collection<Command> tagCorrectionCommands,
Command reverseCommand)
Create a new
ReverseWayAction.ReverseWayResult |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<Command> |
TagCorrector.applyCorrections(DataSet dataSet,
java.util.Map<OsmPrimitive,java.util.List<TagCorrection>> tagCorrectionsMap,
java.util.Map<OsmPrimitive,java.util.List<RoleCorrection>> roleCorrectionMap,
java.lang.String description)
Creates the commands to correct the tags.
|
abstract java.util.Collection<Command> |
TagCorrector.execute(P oldprimitive,
P primitive)
Executes the tag correction.
|
java.util.Collection<Command> |
ReverseWayTagCorrector.execute(Way oldway,
Way way) |
Modifier and Type | Method and Description |
---|---|
private Command |
DeleteAction.buildDeleteCommands(java.awt.event.MouseEvent e,
int modifiers,
boolean silent)
This function takes any mouse event argument and builds the list of elements
that should be deleted but does not actually delete them.
|
private static Command |
SelectAction.getLastCommandInDataset(DataSet ds)
Obtain command in undoRedo stack to "continue" when dragging
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<Command> |
ParallelWays.makeAddWayAndNodesCommandList() |
Modifier and Type | Method and Description |
---|---|
private void |
DrawAction.insertNodeIntoAllNearbySegments(java.util.List<WaySegment> wss,
Node n,
java.util.Collection<OsmPrimitive> newSelection,
java.util.Collection<Command> cmds,
java.util.List<Way> replacedWays,
java.util.List<Way> reuseWays) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractNodesCommand<C extends java.util.Collection<Node>>
Abstracts superclass of
ChangeNodesCommand / RemoveNodesCommand . |
class |
AddCommand
A command that adds an osm primitive to a dataset.
|
class |
AddPrimitivesCommand
Add primitives to a data layer.
|
class |
ChangeCommand
Command that basically replaces one OSM primitive by another of the same type.
|
class |
ChangeNodesCommand
Command that changes the nodes list of a way.
|
class |
ChangePropertyCommand
Command that manipulate the key/value structure of several objects.
|
class |
ChangePropertyKeyCommand
Command that replaces the key of one or several objects
|
class |
ChangeRelationMemberRoleCommand
Command that changes the role of a relation member
|
class |
DeleteCommand
A command to delete a number of primitives from the dataset.
|
class |
MoveCommand
MoveCommand moves a set of OsmPrimitives along the map.
|
class |
PurgeCommand
Command, to purge a list of primitives.
|
class |
RemoveNodesCommand
Command that removes a set of nodes from a way.
|
class |
RotateCommand
RotateCommand rotates a number of objects around their centre.
|
class |
ScaleCommand
Command, to scale a given set of primitives.
|
class |
SelectCommand
Command that selects OSM primitives
|
class |
SequenceCommand
A command consisting of a sequence of other commands.
|
class |
SplitWayCommand
Splits a way into multiple ways (all identical except for their node list).
|
class |
TransformNodesCommand
Abstract class with common services for nodes rotation and scaling commands.
|
Modifier and Type | Field and Description |
---|---|
private Command[] |
SequenceCommand.sequence
The command sequence to be executed.
|
Modifier and Type | Method and Description |
---|---|
static Command |
DeleteCommand.delete(java.util.Collection<? extends OsmPrimitive> selection)
Try to delete all given primitives.
|
static Command |
DeleteCommand.delete(java.util.Collection<? extends OsmPrimitive> selection,
boolean alsoDeleteNodesInWay)
Try to delete all given primitives.
|
static Command |
DeleteCommand.delete(java.util.Collection<? extends OsmPrimitive> selection,
boolean alsoDeleteNodesInWay,
boolean silent)
Try to delete all given primitives.
|
static Command |
DeleteCommand.deleteWaySegment(WaySegment ws)
Create a command that deletes a single way segment.
|
static Command |
DeleteCommand.deleteWithReferences(java.util.Collection<? extends OsmPrimitive> selection)
Delete the primitives and everything they reference.
|
static Command |
DeleteCommand.deleteWithReferences(java.util.Collection<? extends OsmPrimitive> selection,
boolean silent)
Delete the primitives and everything they reference.
|
Command |
SequenceCommand.getLastCommand()
Returns the last command.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SequenceCommand.setSequence(Command... sequence) |
Constructor and Description |
---|
SequenceCommand(java.lang.String name,
Command... sequenz)
Convenient constructor, if the commands are known at compile time.
|
Constructor and Description |
---|
SequenceCommand(DataSet ds,
java.lang.String name,
java.util.Collection<Command> sequenz,
boolean continueOnError)
Create the command by specifying the list of commands to execute.
|
SequenceCommand(java.lang.String name,
java.util.Collection<Command> sequenz)
Create the command by specifying the list of commands to execute.
|
SequenceCommand(java.lang.String name,
java.util.Collection<Command> sequenz,
boolean continueOnError)
Create the command by specifying the list of commands to execute.
|
SplitWayCommand(java.lang.String name,
java.util.Collection<Command> commandList,
java.util.List<? extends PrimitiveId> newSelection,
Way originalWay,
java.util.List<Way> newWays)
Create a new
SplitWayCommand . |
Modifier and Type | Class and Description |
---|---|
class |
ConflictAddCommand
Command used to add a new conflict.
|
class |
ConflictResolveCommand
|
class |
CoordinateConflictResolveCommand
Represents the resolution of a conflict between the coordinates of two
Node s. |
class |
DeletedStateConflictResolveCommand
Represents the resolution of a conflict between the deleted flag of two
OsmPrimitive s. |
class |
ModifiedConflictResolveCommand
Represents the resolution of a conflict between the modified flag of two
OsmPrimitive s. |
class |
RelationMemberConflictResolverCommand
Represents the resolution of conflicts in the member list of two
Relation s. |
class |
TagConflictResolveCommand
Represents the resolution of a tag conflict in an
OsmPrimitive . |
class |
VersionConflictResolveCommand
Represents the resolution of a version conflict between two
OsmPrimitive s. |
class |
WayNodesConflictResolverCommand
Represents the resolution of conflicts in the node list of two
Way s. |
Modifier and Type | Field and Description |
---|---|
private Command |
UndoRedoHandler.CommandAddedEvent.cmd |
private Command |
UndoRedoHandler.CommandUndoneEvent.cmd |
private Command |
UndoRedoHandler.CommandRedoneEvent.cmd |
Modifier and Type | Field and Description |
---|---|
java.util.LinkedList<Command> |
UndoRedoHandler.commands
All commands that were made on the dataset.
|
java.util.LinkedList<Command> |
UndoRedoHandler.redoCommands
The stack for redoing commands
|
Modifier and Type | Method and Description |
---|---|
Command |
UndoRedoHandler.CommandAddedEvent.getCommand()
Returns the added command.
|
Command |
UndoRedoHandler.CommandUndoneEvent.getCommand()
Returns the undone command.
|
Command |
UndoRedoHandler.CommandRedoneEvent.getCommand()
Returns the redone command.
|
Command |
UndoRedoHandler.getLastCommand()
Gets the last command that was executed on the command stack.
|
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList<Command> |
UndoRedoHandler.getRedoCommands()
Returns all commands that were made and undone on the dataset, that can be redone.
|
java.util.LinkedList<Command> |
UndoRedoHandler.getUndoCommands()
Returns all commands that were made on the dataset, that can be undone.
|
Modifier and Type | Method and Description |
---|---|
void |
UndoRedoHandler.add(Command c)
Executes the command and add it to the intern command queue.
|
void |
UndoRedoHandler.add(Command c,
boolean execute)
Executes the command only if wanted and add it to the intern command queue.
|
void |
UndoRedoHandler.addNoRedraw(Command c)
Executes the command and add it to the intern command queue.
|
void |
UndoRedoHandler.addNoRedraw(Command c,
boolean execute)
Executes the command and add it to the intern command queue.
|
void |
UndoRedoHandler.afterAdd(Command cmd)
Fires a commands change event after adding a command.
|
Modifier and Type | Method and Description |
---|---|
void |
UndoRedoHandler.afterAdd(java.util.List<? extends Command> cmds)
Fires a commands change event after adding a list of commands.
|
Constructor and Description |
---|
CommandAddedEvent(UndoRedoHandler source,
Command cmd) |
CommandRedoneEvent(UndoRedoHandler source,
Command cmd) |
CommandUndoneEvent(UndoRedoHandler source,
Command cmd) |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Supplier<Command> |
TestError.fixingCommand
Supplying a command to fix the error
|
private java.util.function.Supplier<Command> |
TestError.Builder.fixingCommand |
Modifier and Type | Method and Description |
---|---|
protected Command |
Test.deletePrimitivesIfNeeded(java.util.Collection<? extends OsmPrimitive> primitives)
Build a Delete command on all primitives that have not yet been deleted manually by user, or by another error fix.
|
Command |
Test.fixError(TestError testError)
Fixes the error with the appropriate command
|
Command |
TestError.getFix()
Fixes the error with the appropriate command
|
Modifier and Type | Method and Description |
---|---|
TestError.Builder |
TestError.Builder.fix(java.util.function.Supplier<Command> fixingCommand)
Sets a supplier to obtain a command to fix the error.
|
Modifier and Type | Method and Description |
---|---|
Command |
MapCSSTagChecker.FixCommand.createCommand(OsmPrimitive p,
Selector matchingSelector)
Creates the fixing
Command for the given primitive. |
Command |
DuplicatedWayNodes.fixError(TestError testError) |
Command |
Coastlines.fixError(TestError testError) |
Command |
Addresses.fixError(TestError testError)
remove obsolete relation.
|
Command |
DuplicateWay.fixError(TestError testError)
Fix the error by removing all but one instance of duplicate ways
|
Command |
TagChecker.fixError(TestError testError) |
Command |
DuplicateNode.fixError(TestError testError)
Merge the nodes into one.
|
Command |
UntaggedWay.fixError(TestError testError) |
Command |
RelationChecker.fixError(TestError testError) |
Command |
MultipolygonTest.fixError(TestError testError) |
Command |
UntaggedNode.fixError(TestError testError) |
Command |
DuplicateRelation.fixError(TestError testError)
Fix the error by removing all but one instance of duplicate relations
|
(package private) Command |
MapCSSTagChecker.TagCheck.fixPrimitive(OsmPrimitive p)
Constructs a fix in terms of a
Command for the OsmPrimitive
if the error is fixable, or null otherwise. |
Modifier and Type | Method and Description |
---|---|
Command |
ConflictResolver.buildResolveCommand()
Builds the resolution command(s) for the resolved conflicts in this ConflictResolver
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Command> |
PropertiesMergeModel.buildResolveCommand(Conflict<? extends OsmPrimitive> conflict)
Builds the command(s) to apply the conflict resolutions to my primitive
|
Modifier and Type | Method and Description |
---|---|
Command |
MultiValueResolutionDecision.buildChangeCommand(java.util.Collection<? extends OsmPrimitive> primitives)
Builds a change command for applying this resolution to a collection of primitives
|
Command |
MultiValueResolutionDecision.buildChangeCommand(OsmPrimitive primitive)
Builds a change command for applying this resolution to a primitive
|
protected Command |
RelationMemberConflictResolverModel.buildResolveCommand(Relation relation,
OsmPrimitive newPrimitive) |
Command |
RelationMemberConflictResolver.buildTagApplyCommands(java.util.Collection<? extends OsmPrimitive> primitives) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Command> |
CombinePrimitiveResolverDialog.buildResolutionCommands()
Replies the list of
commands needed to apply resolution choices. |
java.util.List<Command> |
RelationMemberConflictResolverModel.buildResolutionCommands(OsmPrimitive newPrimitive)
Builds a collection of commands executing the decisions made in this model.
|
java.util.List<Command> |
CombinePrimitiveResolver.buildResolutionCommands(OsmPrimitive targetPrimitive)
Builds conflicts resolution commands for the given target primitive.
|
protected java.util.List<Command> |
CombinePrimitiveResolver.buildTagChangeCommand(OsmPrimitive primitive,
TagCollection tc)
Builds the list of tag change commands.
|
protected java.util.List<Command> |
CombinePrimitiveResolverDialog.buildTagChangeCommand(OsmPrimitive primitive,
TagCollection tc)
Builds the list of tag change commands.
|
static java.util.List<Command> |
CombinePrimitiveResolverDialog.launchIfNecessary(TagCollection tagsOfPrimitives,
java.util.Collection<? extends OsmPrimitive> primitives,
java.util.Collection<? extends OsmPrimitive> targetPrimitives)
Replies the list of
commands needed to resolve specified conflicts,
by displaying if necessary a CombinePrimitiveResolverDialog to the user. |
Modifier and Type | Method and Description |
---|---|
protected static void |
AbstractTagPaster.commitCommands(java.util.Collection<? extends OsmPrimitive> selection,
java.util.List<Command> commands)
Create and execute SequenceCommand with descriptive title
|
Modifier and Type | Class and Description |
---|---|
private static class |
ValidatorDialog.AutofixCommand |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Command> |
ValidatorDialog.FixTask.fixCommands |
Constructor and Description |
---|
AutofixCommand(java.util.Collection<Command> sequenz) |
Modifier and Type | Method and Description |
---|---|
static Command |
GenericRelationEditor.addPrimitivesToRelation(Relation orig,
java.util.Collection<? extends OsmPrimitive> primitivesToAdd)
Adds primitives to a given relation.
|
Modifier and Type | Method and Description |
---|---|
protected Command |
TagEditorModel.createDeleteTagsCommand(java.util.Collection<OsmPrimitive> primitives) |
protected Command |
TagEditorModel.createUpdateTagCommand(java.util.Collection<OsmPrimitive> primitives,
TagModel tag) |
Modifier and Type | Method and Description |
---|---|
static Command |
TaggingPreset.createCommand(java.util.Collection<OsmPrimitive> sel,
java.util.List<Tag> changedTags)
Create a command to change the given list of tags.
|
Modifier and Type | Method and Description |
---|---|
(package private) Node |
AddWayHandler.findOrCreateNode(LatLon ll,
java.util.List<Command> commands)
Find the node with almost the same coords in dataset or in already added nodes
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<Node> |
Geometry.addIntersections(java.util.List<Way> ways,
boolean test,
java.util.List<Command> cmds)
Will find all intersection and add nodes there for list of given ways.
|