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, invalidBecauselayerRemoved
getChildren, getDescriptionIcon
private 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)
Command
fillModifiedData
in class Command
modified
- The modified primitivesdeleted
- The deleted primitivesadded
- The added primitivespublic void undoCommand()
Command
undoCommand
in class Command
public boolean executeCommand()
Command
executeCommand
in class Command
public java.lang.String getDescriptionText()
PseudoCommand
getDescriptionText
in class PseudoCommand