public class SelectCommand extends Command
Command.OldNodeState| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<OsmPrimitive> |
newSelection
the primitives to select when executing the command
|
private java.util.Collection<OsmPrimitive> |
oldSelection
the selection before applying the new selection
|
| Constructor and Description |
|---|
SelectCommand(java.util.Collection<OsmPrimitive> newSelection)
Constructs a new select command.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getDescriptionText()
Provides a description text representing this command.
|
void |
undoCommand()
Undoes the command.
|
checkAndConfirmOutlyingOperation, getLayer, getOrig, getParticipatingPrimitives, invalidBecauselayerRemovedgetChildren, getDescriptionIconprivate final java.util.Collection<OsmPrimitive> newSelection
private java.util.Collection<OsmPrimitive> oldSelection
public SelectCommand(java.util.Collection<OsmPrimitive> newSelection)
newSelection - the primitives to select when executing the command.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 void undoCommand()
CommandundoCommand in class Commandpublic boolean executeCommand()
CommandexecuteCommand in class Commandpublic java.lang.String getDescriptionText()
PseudoCommandgetDescriptionText in class PseudoCommand