Modifier and Type | Field and Description |
---|---|
private Command |
SplitWayAction.SplitWayResult.command |
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 Command |
AlignInLineAction.alignMultiWay(java.util.Collection<Way> ways)
Align way in case of multiple way #6819
|
private Command |
AlignInLineAction.alignOnlyNodes(java.util.List<Node> nodes)
Align nodes in case 3 or more nodes are selected.
|
private Command |
AlignInLineAction.alignSingleNode(Node node,
java.util.List<AlignInLineAction.Line> lines)
Align a single node relative to a set of lines #9081
|
Command |
ReverseWayAction.ReverseWayResult.getAsSequenceCommand() |
Command |
SplitWayAction.SplitWayResult.getCommand()
Replies the command to be performed to split the way
|
Command |
ReverseWayAction.ReverseWayResult.getReverseCommand() |
Command |
AlignInLineAction.Line.intersectionCommand(Node n,
AlignInLineAction.Line other)
Intersection of two line.
|
static Command |
MergeNodesAction.mergeNodes(OsmDataLayer layer,
java.util.Collection<Node> nodes,
Node targetLocationNode)
Merges the nodes in
nodes at the specified node's location. |
static Command |
MergeNodesAction.mergeNodes(OsmDataLayer layer,
java.util.Collection<Node> nodes,
Node targetNode,
Node targetLocationNode)
Merges the nodes in
nodes onto one of the nodes. |
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) |
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() |
java.util.Collection<Command> |
ReverseWayAction.ReverseWayResult.getTagCorrectionCommands() |
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 static void |
PasteTagsAction.commitCommands(java.util.Collection<OsmPrimitive> selection,
java.util.List<Command> commands)
Create and execute SequenceCommand with descriptive title
|
private void |
UnGlueAction.execCommands(java.util.List<Command> cmds,
java.util.List<Node> newNodes)
Add commands to undo-redo system.
|
private void |
UnGlueAction.fixRelations(Node originalNode,
java.util.List<Command> cmds,
java.util.List<Node> newNodes)
put all newNodes into the same relation(s) that originalNode is in
|
private 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 OrginalNode 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!
|
Constructor and Description |
---|
ReverseWayAction.ReverseWayResult(Way newWay,
java.util.Collection<Command> tagCorrectionCommands,
Command reverseCommand) |
SplitWayAction.SplitWayResult(Command command,
java.util.List<? extends PrimitiveId> newSelection,
Way originalWay,
java.util.List<Way> newWays) |
Constructor and Description |
---|
ReverseWayAction.ReverseWayResult(Way newWay,
java.util.Collection<Command> tagCorrectionCommands,
Command reverseCommand) |
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 Command |
SelectAction.getLastCommand()
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 |
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 |
class |
SelectCommand
Command that selects OSM primitives
|
class |
SequenceCommand
A command consisting of a sequence of other commands.
|
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(OsmDataLayer layer,
java.util.Collection<? extends OsmPrimitive> selection)
Try to delete all given primitives.
|
static Command |
DeleteCommand.delete(OsmDataLayer layer,
java.util.Collection<? extends OsmPrimitive> selection,
boolean alsoDeleteNodesInWay)
Try to delete all given primitives.
|
static Command |
DeleteCommand.delete(OsmDataLayer layer,
java.util.Collection<? extends OsmPrimitive> selection,
boolean alsoDeleteNodesInWay,
boolean silent)
Try to delete all given primitives.
|
static Command |
DeleteCommand.deleteWaySegment(OsmDataLayer layer,
WaySegment ws) |
static Command |
DeleteCommand.deleteWithReferences(OsmDataLayer layer,
java.util.Collection<? extends OsmPrimitive> selection)
Delete the primitives and everything they reference.
|
static Command |
DeleteCommand.deleteWithReferences(OsmDataLayer layer,
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(java.lang.String name,
java.util.Collection<Command> sequenz)
Create the command by specifying the list of commands to execute.
|
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 | Method and Description |
---|---|
protected java.util.Collection<Command> |
TagCorrector.applyCorrections(java.util.Map<OsmPrimitive,java.util.List<TagCorrection>> tagCorrectionsMap,
java.util.Map<OsmPrimitive,java.util.List<RoleCorrection>> roleCorrectionMap,
java.lang.String description) |
abstract java.util.Collection<Command> |
TagCorrector.execute(P oldprimitive,
P primitive) |
java.util.Collection<Command> |
ReverseWayTagCorrector.execute(Way oldway,
Way way) |
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 |
---|---|
void |
UndoRedoHandler.add(Command c)
Executes the command and add it to the intern command queue.
|
void |
UndoRedoHandler.addNoRedraw(Command c)
Executes the command and add it to the intern command queue.
|
Modifier and Type | Field and Description |
---|---|
protected Command |
FixableTestError.fix |
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
|
Command |
FixableTestError.getFix() |
Constructor and Description |
---|
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
java.util.Collection<?> highlighted,
Command fix) |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
Command fix) |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
int code,
OsmPrimitive primitive,
Command fix) |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String description_en,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
java.util.Collection<?> highlighted,
Command fix) |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String description_en,
int code,
java.util.Collection<? extends OsmPrimitive> primitives,
Command fix) |
FixableTestError(Test tester,
Severity severity,
java.lang.String message,
java.lang.String description,
java.lang.String description_en,
int code,
OsmPrimitive primitive,
Command fix) |
Modifier and Type | Method and Description |
---|---|
Command |
Coastlines.fixError(TestError testError) |
Command |
PowerLines.fixError(TestError testError) |
Command |
TagChecker.fixError(TestError testError) |
Command |
UntaggedNode.fixError(TestError testError) |
Command |
DuplicatedWayNodes.fixError(TestError testError) |
Command |
DuplicateWay.fixError(TestError testError)
Fix the error by removing all but one instance of duplicate ways
|
Command |
RelationChecker.fixError(TestError testError) |
Command |
DuplicateRelation.fixError(TestError testError)
Fix the error by removing all but one instance of duplicate relations
|
Command |
Highways.fixError(TestError testError) |
Command |
DuplicateNode.fixError(TestError testError)
Merge the nodes into one.
|
Command |
UntaggedWay.fixError(TestError testError) |
(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.
|
protected java.util.List<Command> |
CombinePrimitiveResolverDialog.buildTagChangeCommand(OsmPrimitive primitive,
TagCollection tc) |
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 |
---|---|
static Command |
GenericRelationEditor.addPrimitivesToRelation(Relation orig,
java.util.Collection<? extends OsmPrimitive> primitivesToAdd)
Adds primitives to a given relation.
|
Modifier and Type | Method and Description |
---|---|
static Command |
TaggingPreset.createCommand(java.util.Collection<OsmPrimitive> sel,
java.util.List<Tag> changedTags) |
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 |
---|---|
(package private) Node |
AddWayHandler.findOrCreateNode(LatLon ll,
java.util.List<Command> commands)
Find the node with almost the same ccords 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.
|