C
- type of nodes collection used for this commandpublic abstract class AbstractNodesCommand<C extends java.util.Collection<Node>> extends Command
ChangeNodesCommand
/ RemoveNodesCommand
.Command.OldNodeState
Modifier and Type | Field and Description |
---|---|
protected C |
cmdNodes |
protected Way |
way |
IS_INCOMPLETE, IS_OK, IS_OUTSIDE
Modifier | Constructor and Description |
---|---|
protected |
AbstractNodesCommand(DataSet ds,
Way way,
C cmdNodes)
Constructs a new
AbstractNodesCommand . |
protected |
AbstractNodesCommand(Way way,
C cmdNodes)
Constructs a new
AbstractNodesCommand . |
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.
|
int |
hashCode() |
protected abstract void |
modifyWay() |
checkOutlyingOrIncompleteOperation, ensurePrimitivesAreInDataset, getAffectedDataSet, getOrig, getParticipatingPrimitives, undoCommand
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getChildren, getDescriptionText
protected AbstractNodesCommand(Way way, C cmdNodes)
AbstractNodesCommand
.way
- The way to modifycmdNodes
- The collection of nodes for this commandprotected AbstractNodesCommand(DataSet ds, Way way, C cmdNodes)
AbstractNodesCommand
.ds
- The target data set. Must not be null
way
- The way to modifycmdNodes
- The collection of nodes for this commandprotected abstract void modifyWay()
public boolean executeCommand()
Command
The layer should be invalidated after execution so that it can be re-painted.
executeCommand
in class 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 javax.swing.Icon getDescriptionIcon()
PseudoCommand