public static class SplitWayAction.SplitWayResult extends java.lang.Object
SplitWayActionSplitWayAction.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 java.util.List<? extends PrimitiveId> |
newSelection |
private java.util.List<Way> |
newWays |
private Way |
originalWay |
| Constructor and Description |
|---|
SplitWayResult(Command command,
java.util.List<? extends PrimitiveId> newSelection,
Way originalWay,
java.util.List<Way> newWays) |
| Modifier and Type | Method and Description |
|---|---|
Command |
getCommand()
Replies the command to be performed to split the way
|
java.util.List<? extends PrimitiveId> |
getNewSelection()
Replies the new list of selected primitives ids
|
java.util.List<Way> |
getNewWays()
Replies the resulting new ways
|
Way |
getOriginalWay()
Replies the original way being split
|
private final java.util.List<? extends PrimitiveId> newSelection
private Way originalWay
public SplitWayResult(Command command, java.util.List<? extends PrimitiveId> newSelection, Way originalWay, java.util.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 java.util.List<? extends PrimitiveId> getNewSelection()
public Way getOriginalWay()
public java.util.List<Way> getNewWays()