public class RemoveNodesCommand extends Command
Command.OldNodeState
Modifier and Type | Field and Description |
---|---|
private Set<Node> |
rmNodes |
private Way |
way |
Constructor and Description |
---|
RemoveNodesCommand(Way way,
List<Node> rmNodes)
Constructs a new
RemoveNodesCommand . |
Modifier and Type | Method and Description |
---|---|
boolean |
executeCommand()
Executes the command on the dataset.
|
void |
fillModifiedData(Collection<OsmPrimitive> modified,
Collection<OsmPrimitive> deleted,
Collection<OsmPrimitive> added)
Fill in the changed data this command operates on.
|
Icon |
getDescriptionIcon()
Provides a descriptive icon of this command.
|
String |
getDescriptionText()
Provides a description text representing this command.
|
checkAndConfirmOutlyingOperation, getLayer, getOrig, getParticipatingPrimitives, invalidBecauselayerRemoved, undoCommand
getChildren
public RemoveNodesCommand(Way way, List<Node> rmNodes)
RemoveNodesCommand
.way
- The way to modifyrmNodes
- The list of nodes to removepublic boolean executeCommand()
Command
executeCommand
in class Command
public void fillModifiedData(Collection<OsmPrimitive> modified, Collection<OsmPrimitive> deleted, Collection<OsmPrimitive> added)
Command
fillModifiedData
in class Command
modified
- The modified primitivesdeleted
- The deleted primitivesadded
- The added primitivespublic String getDescriptionText()
PseudoCommand
getDescriptionText
in class PseudoCommand
public Icon getDescriptionIcon()
PseudoCommand
getDescriptionIcon
in class PseudoCommand