public class RemoveNodesCommand extends Command
Command.OldNodeState| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<Node> |
rmNodes |
private Way |
way |
IS_INCOMPLETE, IS_OK, IS_OUTSIDE| Constructor and Description |
|---|
RemoveNodesCommand(Way way,
java.util.List<Node> rmNodes)
Constructs a new
RemoveNodesCommand. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
boolean |
executeCommand()
Executes the command on the dataset.
|
void |
fillModifiedData(java.util.Collection<OsmPrimitive> modified,
java.util.Collection<OsmPrimitive> deleted,
java.util.Collection<OsmPrimitive> added)
Fill in the changed data this command operates on.
|
javax.swing.Icon |
getDescriptionIcon()
Provides a descriptive icon of this command.
|
java.lang.String |
getDescriptionText()
Provides a description text representing this command.
|
int |
hashCode() |
checkAndConfirmOutlyingOperation, checkOutlyingOrIncompleteOperation, getAffectedDataSet, getLayer, getOrig, getParticipatingPrimitives, invalidateAffectedLayers, invalidBecauselayerRemoved, undoCommandclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetChildrenpublic RemoveNodesCommand(Way way, java.util.List<Node> rmNodes)
RemoveNodesCommand.way - The way to modifyrmNodes - The list of nodes to removepublic boolean executeCommand()
CommandThe layer should be invalidated after execution so that it can be re-painted.
executeCommand in class CommandCommand.invalidateAffectedLayers()public void fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
CommandfillModifiedData in class Commandmodified - The modified primitivesdeleted - The deleted primitivesadded - The added primitivespublic java.lang.String getDescriptionText()
PseudoCommandpublic javax.swing.Icon getDescriptionIcon()
PseudoCommand