public static class SplitWayAction.SplitWayResult extends Object
SplitWayAction
SplitWayAction.splitWay(org.openstreetmap.josm.gui.layer.OsmDataLayer, org.openstreetmap.josm.data.osm.Way, java.util.List<java.util.List<org.openstreetmap.josm.data.osm.Node>>, java.util.Collection<? extends org.openstreetmap.josm.data.osm.OsmPrimitive>)
,
SplitWayAction.split(org.openstreetmap.josm.gui.layer.OsmDataLayer, org.openstreetmap.josm.data.osm.Way, java.util.List<org.openstreetmap.josm.data.osm.Node>, java.util.Collection<? extends org.openstreetmap.josm.data.osm.OsmPrimitive>)
Modifier and Type | Field and Description |
---|---|
private Command |
command |
private List<? extends PrimitiveId> |
newSelection |
private List<Way> |
newWays |
private Way |
originalWay |
Constructor and Description |
---|
SplitWayAction.SplitWayResult(Command command,
List<? extends PrimitiveId> newSelection,
Way originalWay,
List<Way> newWays) |
Modifier and Type | Method and Description |
---|---|
Command |
getCommand()
Replies the command to be performed to split the way
|
List<? extends PrimitiveId> |
getNewSelection()
Replies the new list of selected primitives ids
|
List<Way> |
getNewWays()
Replies the resulting new ways
|
Way |
getOriginalWay()
Replies the original way being split
|
private final List<? extends PrimitiveId> newSelection
private Way originalWay
public SplitWayAction.SplitWayResult(Command command, List<? extends PrimitiveId> newSelection, Way originalWay, List<Way> newWays)
command
- The command to be performed to split the way (which is saved for later retrieval by the getCommand()
method)newSelection
- The new list of selected primitives ids (which is saved for later retrieval by the getNewSelection()
method)originalWay
- The original way being split (which is saved for later retrieval by the getOriginalWay()
method)newWays
- The resulting new ways (which is saved for later retrieval by the getOriginalWay()
method)public Command getCommand()
public List<? extends PrimitiveId> getNewSelection()
public Way getOriginalWay()
public List<Way> getNewWays()