Uses of Class
org.openstreetmap.josm.data.osm.Way
-
Packages that use Way Package Description org.openstreetmap.josm.actions Provides the classes for JOSM user actions.org.openstreetmap.josm.actions.corrector Provides the classes for JOSMtag correctors
.org.openstreetmap.josm.actions.mapmode Provides the classes for JOSMmap modes
.org.openstreetmap.josm.command Provides the classes for JOSM commands allowing to modify an OSM data set.org.openstreetmap.josm.command.conflict Provides commands for handling conflicts.org.openstreetmap.josm.data.osm Provides the classes for OSM data:Primitives
:Node
,Way
,Relation
Users
Tags
Changesets
Utilities classesorg.openstreetmap.josm.data.osm.event Provides the classes for OSM dataset events.org.openstreetmap.josm.data.osm.history Provides the classes for OSM primitiveshistory
(edition revisions).org.openstreetmap.josm.data.osm.visitor Provides the classes for performing actions on OSM primitives using Visitor design pattern.org.openstreetmap.josm.data.osm.visitor.paint.relations Provides the classes for painting and cachingMultipolygon
relations.org.openstreetmap.josm.data.validation Provides the classes for JOSM data validation.org.openstreetmap.josm.data.validation.tests Provides the classes for JOSM data validation tests.org.openstreetmap.josm.data.validation.util Provides utilities classes for JOSM data validation.org.openstreetmap.josm.gui Provides the classes for JOSM graphical user interface.org.openstreetmap.josm.gui.conflict.pair.nodes Provides the classes for displaying conflicts in ways list of nodes.org.openstreetmap.josm.gui.dialogs Provides three kinds of dialogs: Toggle dialogs on the right side of the GUI, that can be turned on, off, attached or detached from the GUI Changeset dialog based on a standalone implementation, dedicated to OSM changesets management Extended dialogs for everything elseorg.openstreetmap.josm.gui.dialogs.relation.sort Provides the classes for sorting relations.org.openstreetmap.josm.gui.history Provides GUI classes for handling history of OSM objects.org.openstreetmap.josm.gui.layer Provides classes for handling the different kinds of map layers.org.openstreetmap.josm.gui.layer.validation Provides classes for handling validation layer.org.openstreetmap.josm.gui.mappaint Drawing system allowing to display and render OSM map data in a user-friendly and customizable way, through map styles.
Two implementations are provided: XML: this was the system used by default JOSM map style for a long time.org.openstreetmap.josm.gui.mappaint.mapcss Drawing system based on MapCSS map styles.org.openstreetmap.josm.io Provides the classes for JOSM input/output support.org.openstreetmap.josm.tools Provides the classes for various utilities and tools called from all other packages. -
-
Uses of Way in org.openstreetmap.josm.actions
Fields in org.openstreetmap.josm.actions declared as Way Modifier and Type Field Description private Way
JoinAreasAction.Multipolygon. outerWay
(package private) Way
SplitWayAction.SegmentToKeepSelectionDialog. selectedWay
private Way
UnGlueAction. selectedWay
Way
JoinAreasAction.WayInPolygon. way
(package private) Way
SplitWayAction.SegmentToKeepSelectionDialog. wayToKeep
Fields in org.openstreetmap.josm.actions with type parameters of type Way Modifier and Type Field Description private List<Way>
JoinAreasAction.Multipolygon. innerWays
(package private) JList<Way>
SplitWayAction.SegmentToKeepSelectionDialog. list
(package private) List<Way>
SplitWayAction.SegmentToKeepSelectionDialog. newWays
private Collection<Way>
CreateMultipolygonAction.CreateUpdateMultipolygonTask. selectedWays
private List<Way>
SimplifyWayAction.SimplifyChangeListener. ways
Methods in org.openstreetmap.josm.actions that return Way Modifier and Type Method Description private Way
SelectNonBranchingWaySequences. findWay(Collection<OsmPrimitive> selection)
Finds out if the current selection can be extended.private static Way
SelectNonBranchingWaySequences. findWay(Collection<OsmPrimitive> selection, Node node)
Finds out if the current selection can be extended.Way
JoinAreasAction.Multipolygon. getOuterWay()
Returns the outer way.protected static Way
CombineWayAction. getTargetWay(Collection<Way> combinedWays)
private Way
JoinAreasAction. joinOrientedWays(List<JoinAreasAction.WayInPolygon> ways)
Joins a list of ways (using CombineWayAction and ReverseWayAction as specified in WayInPath)private Way
JoinAreasAction. joinWays(List<JoinAreasAction.WayInPolygon> ways)
Joins the outer ways and deletes all short ways that can't be part of a multipolygon anyway.private Way
JoinAreasAction. keepOlder(Way way, Map<Node,Way> oldestWayMap, List<Way> discardedWays)
Create copy of given way using an older id so that we don't create a new way instead of a modified old one.Methods in org.openstreetmap.josm.actions that return types with arguments of type Way Modifier and Type Method Description static Pair<Way,Command>
CombineWayAction. combineWaysWorker(Collection<Way> ways)
Combine multiple ways into one.(package private) static List<Way>
SplitWayAction. getApplicableWays(List<Way> selectedWays, List<Node> selectedNodes)
Determine which ways to split.(package private) static List<Way>
UnJoinNodeWayAction. getApplicableWays(List<Way> selectedWays, List<Node> selectedNodes)
Find ways to which the disconnect can be applied.List<Way>
JoinAreasAction.Multipolygon. getInnerWays()
Returns the inner ways.private List<Way>
JoinAreasAction. splitWayOnNodes(Way way, Set<Node> nodes, Map<Node,Way> oldestWayMap)
This is a method that splits way into smaller parts, using the prepared nodes list as split points.Methods in org.openstreetmap.josm.actions with parameters of type Way Modifier and Type Method Description private boolean
UnGlueAction. addCheckedChangeNodesCmd(List<Command> cmds, Way w, List<Node> nodes)
private void
SelectNonBranchingWaySequences. addNodes(Way way)
Add the endpoints of the way to nodes, outerNodesprivate static List<List<Node>>
JoinAreasAction. buildNodeChunks(Way way, Collection<Node> splitNodes)
Simple chunking version.static SequenceCommand
SimplifyWayAction. createSimplifyCommand(Way w)
Creates the SequenceCommand to simplify a way with default threshold.static SequenceCommand
SimplifyWayAction. createSimplifyCommand(Way w, double threshold)
Creates the SequenceCommand to simplify a way with a given threshold.(package private) static void
SplitWayAction. doSplitWay(Way way, Way wayToKeep, List<Way> newWays, List<OsmPrimitive> newSelection)
private void
JoinAreasAction. fixRelations(List<JoinAreasAction.RelationRole> rels, Way outer, JoinAreasAction.RelationRole ownMultipol, Set<Relation> relationsToDelete)
Adds the previously removed relations again to the outer way.private static Set<Node>
SimplifyWayAction. getMultiUseNodes(Way w)
Calculate a set of nodes which occurs more than once in the wayprotected static boolean
SimplifyWayAction. isRequiredNode(Way way, Node node, Set<Node> multipleUseNodes)
Replies true ifnode
is a required node which can't be removed in order to simplify the way.private Way
JoinAreasAction. keepOlder(Way way, Map<Node,Way> oldestWayMap, List<Way> discardedWays)
Create copy of given way using an older id so that we don't create a new way instead of a modified old one.private static List<Node>
UnGlueAction. modifyWay(Node originalNode, Way w, List<Command> cmds, List<Node> newNodes)
dupe the given node of the given way assume that originalNode is in the way the new node will be put into the parameter newNodes. the add-node command will be put into the parameter cmds. the changed way will be returned and must be put into cmds by the caller!private static List<Node>
CreateCircleAction. orderNodesByWay(List<Node> nodes, Way way)
Order nodes according to way direction.static ReverseWayAction.ReverseWayResult
ReverseWayAction. reverseWay(Way w)
Reverses a given way.private List<Way>
JoinAreasAction. splitWayOnNodes(Way way, Set<Node> nodes, Map<Node,Way> oldestWayMap)
This is a method that splits way into smaller parts, using the prepared nodes list as split points.private boolean
UnGlueAction. unglueClosedOrSelfCrossingWay(Way way, PropertiesMembershipChoiceDialog dialog)
Duplicates a node used several times by the same way.private void
UnGlueAction. unglueOneNodeAtMostOneWay(Way way, PropertiesMembershipChoiceDialog dialog)
Assumes there is one tagged Node stored in selectedNode that it will try to unglue.void
UploadSelectionAction.UploadHullBuilder. visit(Way w)
Method parameters in org.openstreetmap.josm.actions with type arguments of type Way Modifier and Type Method Description private JoinAreasAction.RelationRole
JoinAreasAction. addOwnMultipolygonRelation(Collection<Way> inner)
Will add own multipolygon relation to the "previously existing" relations.private static Command
AlignInLineAction. alignMultiWay(Collection<Way> ways)
Align way in case of multiple way #6819static double
SimplifyWayAction. askSimplifyWays(List<Way> ways, String text, boolean auto)
Asks the user for max-err value used to simplify ways, if not remembered beforeprivate static SequenceCommand
SimplifyWayAction. buildSimplifyWaysCommand(List<Way> ways, double threshold)
Creates the commands to simplify the ways with the given thresholdprotected Set<Relation>
UnGlueAction. calcAffectedRelations(Collection<Way> ways)
private static boolean
DistributeAction. checkDistributeNodes(Collection<Way> ways, Collection<Node> nodes)
Test if nodes oriented algorithm applies to the selection.private static boolean
DistributeAction. checkDistributeWay(Collection<Way> ways, Collection<Node> nodes)
Test if one way, no self-crossing, is selected with at most two of its nodes.private List<Node>
UnJoinNodeWayAction. cleanSelectedNodes(List<Way> selectedWays, List<Node> selectedNodes)
Removes irrelevant nodes from user selection.static List<JoinAreasAction.Multipolygon>
JoinAreasAction. collectMultipolygons(Collection<Way> selectedWays)
This method analyzes multipolygon relationships of given ways and collects addition inner ways to consider.private static List<Node>
AlignInCircleAction. collectNodesAnticlockwise(List<Way> ways)
Assuming all ways can be joined into polygon, create an ordered list of node.private static List<Node>
AlignInCircleAction. collectNodesWithExternReferrers(List<Way> ways)
Collect all nodes with more than one referrer.static Pair<Way,Command>
CombineWayAction. combineWaysWorker(Collection<Way> ways)
Combine multiple ways into one.static Pair<SequenceCommand,Relation>
CreateMultipolygonAction. createMultipolygonCommand(Collection<Way> selectedWays, Relation selectedMultipolygonRelation)
static Pair<Relation,Relation>
CreateMultipolygonAction. createMultipolygonRelation(Collection<Way> selectedWays, boolean showNotif)
protected static void
CombineWayAction. detectReversedWays(Collection<Way> ways, List<Node> path, List<Way> reversedWays, List<Way> unreversedWays)
private static Collection<Command>
DistributeAction. distributeWay(Collection<Way> ways, Collection<Node> nodes)
Distribute nodes contained by a way, keeping nodes order.(package private) static void
SplitWayAction. doSplitWay(Way way, Way wayToKeep, List<Way> newWays, List<OsmPrimitive> newSelection)
static List<JoinAreasAction.AssembledPolygon>
JoinAreasAction. findBoundaryPolygons(Collection<JoinAreasAction.WayInPolygon> multigonWays, List<Way> discardedResult)
Finds all ways that form inner or outer boundaries.(package private) static List<Way>
SplitWayAction. getApplicableWays(List<Way> selectedWays, List<Node> selectedNodes)
Determine which ways to split.(package private) static List<Way>
UnJoinNodeWayAction. getApplicableWays(List<Way> selectedWays, List<Node> selectedNodes)
Find ways to which the disconnect can be applied.private static List<AlignInLineAction.Line>
AlignInLineAction. getInvolvedLines(Node node, List<Way> refWays)
Get lines useful to do alignment of a single nodeprivate static Relation
CreateMultipolygonAction. getSelectedMultipolygonRelation(Collection<Way> selectedWays, Collection<Relation> selectedRelations)
protected static Way
CombineWayAction. getTargetWay(Collection<Way> combinedWays)
private static boolean
UnGlueAction. isRelationAffected(Relation r, Set<Node> affectedNodes, Collection<Way> ways)
void
JoinAreasAction. join(Collection<Way> ways)
Joins the given ways.private static List<Node>
CombineWayAction. joinWithMultipolygonCode(Collection<Way> ways)
UseMultipolygon.joinWays(Collection)
to join ways.private Way
JoinAreasAction. keepOlder(Way way, Map<Node,Way> oldestWayMap, List<Way> discardedWays)
Create copy of given way using an older id so that we don't create a new way instead of a modified old one.private Way
JoinAreasAction. keepOlder(Way way, Map<Node,Way> oldestWayMap, List<Way> discardedWays)
Create copy of given way using an older id so that we don't create a new way instead of a modified old one.private static List<JoinAreasAction.WayInPolygon>
JoinAreasAction. markWayInsideSide(List<Way> parts, boolean isInner)
This method analyzes the way and assigns each part what direction polygon "inside" is.protected void
UnGlueAction. notifyWayPartOfRelation(Collection<Way> ways)
private boolean
JoinAreasAction. removeDuplicateNodes(List<Way> ways)
This method removes duplicate points (if any) from the input ways.static void
SimplifyWayAction. simplifyWays(List<Way> ways, double threshold)
Runs the commands to simplify the ways with the given thresholdstatic int
SimplifyWayAction. simplifyWaysCountNodesRemoved(List<Way> ways, double threshold)
Runs the commands to simplify the ways with the given thresholdprivate List<Way>
JoinAreasAction. splitWayOnNodes(Way way, Set<Node> nodes, Map<Node,Way> oldestWayMap)
This is a method that splits way into smaller parts, using the prepared nodes list as split points.private void
JoinAreasAction. stripTags(Collection<Way> ways)
Remove all tags from the all the wayprotected static List<Node>
CombineWayAction. tryJoin(Collection<Way> ways)
static Pair<Relation,Relation>
CreateMultipolygonAction. updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation)
Constructors in org.openstreetmap.josm.actions with parameters of type Way Constructor Description Line(Way way)
Init a line equation from a way.Multipolygon(Way way)
Constructs a newMultipolygon
.SegmentToKeepSelectionDialog(Way selectedWay, List<Way> newWays, Way wayToKeep, List<Node> selectedNodes, List<OsmPrimitive> selection)
WayInPolygon(Way way, boolean insideRight)
Constructor parameters in org.openstreetmap.josm.actions with type arguments of type Way Constructor Description CreateUpdateMultipolygonTask(Collection<Way> selectedWays, Relation multipolygonRelation)
SegmentToKeepSelectionDialog(Way selectedWay, List<Way> newWays, Way wayToKeep, List<Node> selectedNodes, List<OsmPrimitive> selection)
SelectNonBranchingWaySequences(Collection<Way> ways)
Creates a way selectionSimplifyChangeListener(JLabel nodesToRemove, SpinnerNumberModel errorModel, List<Way> ways)
-
Uses of Way in org.openstreetmap.josm.actions.corrector
Methods in org.openstreetmap.josm.actions.corrector that return types with arguments of type Way Modifier and Type Method Description static List<Way>
ReverseWayTagCorrector. irreversibleWays(List<Way> ways)
Returns the subset of irreversible ways.Methods in org.openstreetmap.josm.actions.corrector with parameters of type Way Modifier and Type Method Description static void
ReverseWayNoTagCorrector. checkAndConfirmReverseWay(Way way)
Checks the given way can be safely reversed and asks user to confirm the operation if it not the case.private static boolean
ReverseWayNoTagCorrector. confirmReverseWay(Way way, TagCollection tags)
Collection<Command>
ReverseWayTagCorrector. execute(Way oldway, Way way)
(package private) static List<RoleCorrection>
ReverseWayTagCorrector. getRoleCorrections(Way oldway)
(package private) static Map<OsmPrimitive,List<TagCorrection>>
ReverseWayTagCorrector. getTagCorrectionsMap(Way way)
static boolean
ReverseWayTagCorrector. isReversible(Way way)
Tests whether way can be reversed without semantic change, i.e., whether tags have to be changed.Method parameters in org.openstreetmap.josm.actions.corrector with type arguments of type Way Modifier and Type Method Description static List<Way>
ReverseWayTagCorrector. irreversibleWays(List<Way> ways)
Returns the subset of irreversible ways. -
Uses of Way in org.openstreetmap.josm.actions.mapmode
Fields in org.openstreetmap.josm.actions.mapmode declared as Way Modifier and Type Field Description private Way
ImproveWayAccuracyAction. targetWay
Fields in org.openstreetmap.josm.actions.mapmode with type parameters of type Way Modifier and Type Field Description private Set<Way>
DrawAction. mouseOnExistingWays
private Set<Way>
ParallelWayAction. sourceWays
private List<Way>
ParallelWays. ways
Methods in org.openstreetmap.josm.actions.mapmode that return Way Modifier and Type Method Description static Way
ImproveWayAccuracyHelper. findWay(MapView mv, Point p)
Finds the way to work on.static Way
DrawAction. getWayForNode(Node n)
Replies the parent way of a node, if it is the end of exactly one usable way.Methods in org.openstreetmap.josm.actions.mapmode that return types with arguments of type Way Modifier and Type Method Description List<Way>
ParallelWays. getWays()
Returns the resulting parallel ways.Methods in org.openstreetmap.josm.actions.mapmode with parameters of type Way Modifier and Type Method Description private void
ParallelWayAction. addSourceWay(Way w)
private void
DrawAction. continueWayFromNode(Way way, Node node)
if one of the ends ofway
is givennode
, then set currentBaseNode = node and previousNode = adjacent node of waystatic Node
ImproveWayAccuracyHelper. findCandidateNode(MapView mv, Way w, Point p)
Returns the nearest node to cursor.static WaySegment
ImproveWayAccuracyHelper. findCandidateSegment(MapView mv, Way w, Point p)
Returns the nearest way segment to cursor.private Node
DrawAction. findNodeToContinueFrom(Node selectedNode, Way selectedWay)
Finds a node to continue drawing from.private static boolean
ExtrudeAction. hasNodeOtherWays(Node node, Way myWay)
This method tests ifnode
has other ways apart from the given one.private boolean
DrawAction. isSelfContainedWay(Way selectedWay, Node currentNode, Node targetNode)
Prevent creation of ways that look like this: <----> This happens if users want to draw a no-exit-sideway from the main way like this: ^ |<----> | The solution isn't ideal because the main way will end in the side way, which is bad for navigation software ("drive straight on") but at least easier to fix.private void
ParallelWayAction. removeSourceWay(Way w)
void
ImproveWayAccuracyAction. startImproving(Way targetWay)
Switches to Improving stateMethod parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type Way Modifier and Type Method Description private static String
DrawAction. getTitle(boolean newNode, Node n, Collection<OsmPrimitive> newSelection, Map<Way,List<Node>> reuseWays, boolean extendedWay)
private void
DrawAction. insertNodeIntoAllNearbySegments(List<WaySegment> wss, Node n, Collection<OsmPrimitive> newSelection, Collection<Command> cmds, Map<Way,List<Node>> reuseWays)
private static void
ParallelWayAction. removeWayHighlighting(Collection<Way> ways)
Constructor parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type Way Constructor Description ParallelWays(Collection<Way> sourceWays, boolean copyTags, int refWayIndex)
Constructs a newParallelWays
. -
Uses of Way in org.openstreetmap.josm.command
Fields in org.openstreetmap.josm.command declared as Way Modifier and Type Field Description private Way
SplitWayCommand. originalWay
protected Way
AbstractNodesCommand. way
Fields in org.openstreetmap.josm.command with type parameters of type Way Modifier and Type Field Description private Set<Way>
SplitWayCommand.RelationAnalysis. neededIncompleteMembers
private List<Way>
SplitWayCommand. newWays
Methods in org.openstreetmap.josm.command that return Way Modifier and Type Method Description Way
SplitWayCommand.Strategy. determineWayToKeep(Iterable<Way> wayChunks)
Determines which way chunk should reuse the old id and its history.Way
SplitWayCommand. getOriginalWay()
Replies the original way being splitMethods in org.openstreetmap.josm.command that return types with arguments of type Way Modifier and Type Method Description static List<Way>
SplitWayCommand. createNewWaysFromChunks(Way way, Iterable<List<Node>> wayChunks)
Creates new way objects for the way chunks and transfers the keys from the original way.Set<Way>
SplitWayCommand.RelationAnalysis. getNeededIncompleteMembers()
List<Way>
SplitWayCommand. getNewWays()
Replies the resulting new waysMethods in org.openstreetmap.josm.command with parameters of type Way Modifier and Type Method Description (package private) static SplitWayCommand.Analysis
SplitWayCommand. analyseSplit(Way way, Way wayToKeep, List<Way> newWays)
static List<List<Node>>
SplitWayCommand. buildSplitChunks(Way wayToSplit, List<Node> splitPoints)
Splits the nodes ofwayToSplit
into a list of node sequences which are separated at the nodes insplitPoints
.static List<Way>
SplitWayCommand. createNewWaysFromChunks(Way way, Iterable<List<Node>> wayChunks)
Creates new way objects for the way chunks and transfers the keys from the original way.static Optional<SplitWayCommand>
SplitWayCommand. doSplitWay(Way way, Way wayToKeep, List<Way> newWays, List<OsmPrimitive> newSelection, SplitWayCommand.WhenRelationOrderUncertain whenRelationOrderUncertain)
Effectively constructs theSplitWayCommand
.static SplitWayCommand
SplitWayCommand. split(Way way, List<Node> atNodes, Collection<? extends OsmPrimitive> selection)
Splits the wayway
at the nodes inatNodes
and replies the result of this process in an instance ofSplitWayCommand
.(package private) static SplitWayCommand
SplitWayCommand. splitBasedOnAnalyses(Way way, List<Way> newWays, List<OsmPrimitive> newSelection, SplitWayCommand.Analysis analysis, int indexOfWayToKeep)
static SplitWayCommand
SplitWayCommand. splitWay(Way way, List<List<Node>> wayChunks, Collection<? extends OsmPrimitive> selection)
Splits the wayway
into chunks ofwayChunks
and replies the result of this process in an instance ofSplitWayCommand
.static SplitWayCommand
SplitWayCommand. splitWay(Way way, List<List<Node>> wayChunks, Collection<? extends OsmPrimitive> selection, SplitWayCommand.Strategy splitStrategy)
Splits the wayway
into chunks ofwayChunks
and replies the result of this process in an instance ofSplitWayCommand
.static Optional<SplitWayCommand>
SplitWayCommand. splitWay(Way way, List<List<Node>> wayChunks, Collection<? extends OsmPrimitive> selection, SplitWayCommand.Strategy splitStrategy, SplitWayCommand.WhenRelationOrderUncertain whenRelationOrderUncertain)
Splits the wayway
into chunks ofwayChunks
and replies the result of this process in an instance ofSplitWayCommand
.private static SplitWayCommand.RelationInformation
SplitWayCommand. treatAsRestriction(Relation r, RelationMember rm, Relation c, Collection<Way> newWays, Way way, List<Node> changedWayNodes)
void
Command.CloneVisitor. visit(Way w)
Method parameters in org.openstreetmap.josm.command with type arguments of type Way Modifier and Type Method Description (package private) static SplitWayCommand.Analysis
SplitWayCommand. analyseSplit(Way way, Way wayToKeep, List<Way> newWays)
Way
SplitWayCommand.Strategy. determineWayToKeep(Iterable<Way> wayChunks)
Determines which way chunk should reuse the old id and its history.static Optional<SplitWayCommand>
SplitWayCommand. doSplitWay(Way way, Way wayToKeep, List<Way> newWays, List<OsmPrimitive> newSelection, SplitWayCommand.WhenRelationOrderUncertain whenRelationOrderUncertain)
Effectively constructs theSplitWayCommand
.(package private) static SplitWayCommand
SplitWayCommand. splitBasedOnAnalyses(Way way, List<Way> newWays, List<OsmPrimitive> newSelection, SplitWayCommand.Analysis analysis, int indexOfWayToKeep)
private static SplitWayCommand.RelationInformation
SplitWayCommand. treatAsRestriction(Relation r, RelationMember rm, Relation c, Collection<Way> newWays, Way way, List<Node> changedWayNodes)
Constructors in org.openstreetmap.josm.command with parameters of type Way Constructor Description AbstractNodesCommand(DataSet ds, Way way, C cmdNodes)
Constructs a newAbstractNodesCommand
.AbstractNodesCommand(Way way, C cmdNodes)
Constructs a newAbstractNodesCommand
.ChangeNodesCommand(DataSet ds, Way way, List<Node> newNodes)
Constructs a newChangeNodesCommand
.ChangeNodesCommand(Way way, List<Node> newNodes)
Constructs a newChangeNodesCommand
.RemoveNodesCommand(DataSet ds, Way way, Set<Node> rmNodes)
Constructs a newRemoveNodesCommand
.RemoveNodesCommand(Way way, Set<Node> rmNodes)
Constructs a newRemoveNodesCommand
.SplitWayCommand(String name, Collection<Command> commandList, List<? extends PrimitiveId> newSelection, Way originalWay, List<Way> newWays)
Create a newSplitWayCommand
.Constructor parameters in org.openstreetmap.josm.command with type arguments of type Way Constructor Description RelationAnalysis(Relation relation, RelationMember relationMember, SplitWayCommand.Direction direction, Set<Way> neededIncompleteMembers)
-
Uses of Way in org.openstreetmap.josm.command.conflict
Fields in org.openstreetmap.josm.command.conflict with type parameters of type Way Modifier and Type Field Description private Conflict<Way>
WayNodesConflictResolverCommand. conflict
the conflict to resolve -
Uses of Way in org.openstreetmap.josm.data.osm
Fields in org.openstreetmap.josm.data.osm with type parameters of type Way Modifier and Type Field Description private QuadBucketPrimitiveStore<Node,Way,Relation>
DataSet. store
List<Way>
MultipolygonBuilder.JoinedPolygon. ways
list of ways building this polygonMethods in org.openstreetmap.josm.data.osm that return Way Modifier and Type Method Description Way
RelationMember. getWay()
Returns the relation member as a way.private static Way
OsmUtils. newWay(LatLon around, boolean enforceLocation)
Way
WaySegment. toWay()
Returns this way segment as complete way.Methods in org.openstreetmap.josm.data.osm that return types with arguments of type Way Modifier and Type Method Description List<Way>
Node. getParentWays()
Replies the set of referring ways.Collection<Way>
DataSet. getWays()
List<Way>
DataSet. searchWays(BBox bbox)
Set<Way>
DataSet. unlinkNodeFromWays(Node node)
Removes all references from ways in this dataset to a particular node.Methods in org.openstreetmap.josm.data.osm with parameters of type Way Modifier and Type Method Description static List<NodePair>
NodeGraph. buildNodePairs(Way way, boolean directed)
Builds a list of pair of nodes from the given way.boolean
DataSet. containsWay(Way w)
Determines if the given way can be retrieved in the data set through its bounding box.private static void
DataSet. deleteWay(Way way)
(package private) void
DataSet. fireWayNodesChanged(Way way)
protected void
DataSetMerger. fixIncomplete(Way other)
static WaySegment
WaySegment. forNodePair(Way way, Node first, Node second)
Determines and returns the way segment for the given way and node pair.private void
DataSetMerger. mergeNodeList(Way source)
Merges the node list of a source way onto its target way.Method parameters in org.openstreetmap.josm.data.osm with type arguments of type Way Modifier and Type Method Description static List<NodePair>
NodeGraph. buildNodePairs(List<Way> ways, boolean directed)
Builds a list of pair of nodes from the given ways.static NodeGraph
NodeGraph. createDirectedGraphFromWays(Collection<Way> ways)
static NodeGraph
NodeGraph. createNearlyUndirectedGraphFromNodeWays(Collection<Way> ways)
static NodeGraph
NodeGraph. createUndirectedGraphFromNodeWays(Collection<Way> ways)
Create an undirected graph from the given ways, but prevent reversing of all non-new ways by fix one direction.static List<MultipolygonBuilder.JoinedPolygon>
MultipolygonBuilder. joinWays(Collection<Way> ways)
Joins the givenways
to multipolygon rings.String
MultipolygonBuilder. makeFromWays(Collection<Way> ways)
Splits ways into inner and outer JoinedWays.Constructors in org.openstreetmap.josm.data.osm with parameters of type Way Constructor Description JoinedPolygon(Way way)
Creates a polygon from single way.Way(Way original)
Constructs a newWay
from an existingWay
(including its id).Way(Way original, boolean clearMetadata)
Constructs a newWay
from an existingWay
.Way(Way original, boolean clearMetadata, boolean copyNodes)
Constructs a newWay
from an existingWay
.WaySegment(Way way, int i)
Constructs a newIWaySegment
.Constructor parameters in org.openstreetmap.josm.data.osm with type arguments of type Way Constructor Description JoinedPolygon(List<Way> ways, List<Boolean> reversed)
Constructs a newJoinedPolygon
from given list of ways. -
Uses of Way in org.openstreetmap.josm.data.osm.event
Fields in org.openstreetmap.josm.data.osm.event declared as Way Modifier and Type Field Description private Way
WayNodesChangedEvent. way
Methods in org.openstreetmap.josm.data.osm.event that return Way Modifier and Type Method Description Way
WayNodesChangedEvent. getChangedWay()
Returns the way affected by the change.Constructors in org.openstreetmap.josm.data.osm.event with parameters of type Way Constructor Description WayNodesChangedEvent(DataSet dataSet, Way way)
Constructs a newWayNodesChangedEvent
. -
Uses of Way in org.openstreetmap.josm.data.osm.history
Constructors in org.openstreetmap.josm.data.osm.history with parameters of type Way Constructor Description HistoryWay(Way w)
Constructs a newHistoryWay
from an existingWay
. -
Uses of Way in org.openstreetmap.josm.data.osm.visitor
Methods in org.openstreetmap.josm.data.osm.visitor with parameters of type Way Modifier and Type Method Description protected void
MergeSourceBuildingVisitor. rememberWay(Way w)
remembers a way in the hullvoid
AllNodesVisitor. visit(Way w)
Ways have their way nodes.void
BoundingXYVisitor. visit(Way w)
void
MergeSourceBuildingVisitor. visit(Way w)
void
OsmPrimitiveVisitor. visit(Way w)
Visiting call for lines. -
Uses of Way in org.openstreetmap.josm.data.osm.visitor.paint.relations
Fields in org.openstreetmap.josm.data.osm.visitor.paint.relations with type parameters of type Way Modifier and Type Field Description private List<Way>
Multipolygon. innerWays
private List<Way>
Multipolygon. outerWays
Methods in org.openstreetmap.josm.data.osm.visitor.paint.relations that return types with arguments of type Way Modifier and Type Method Description List<Way>
Multipolygon. getInnerWays()
Replies the list of inner ways.List<Way>
Multipolygon. getOuterWays()
Replies the list of outer ways.Method parameters in org.openstreetmap.josm.data.osm.visitor.paint.relations with type arguments of type Way Modifier and Type Method Description private void
Multipolygon. createPolygons(List<Way> ways, List<Multipolygon.PolyData> result)
static Collection<Multipolygon.JoinedWay>
Multipolygon. joinWays(Collection<Way> waysToJoin)
Attempt to combine the ways in the list if they share common end nodesConstructors in org.openstreetmap.josm.data.osm.visitor.paint.relations with parameters of type Way Constructor Description PolyData(Way closedWay)
Constructs a newPolyData
from a closed way. -
Uses of Way in org.openstreetmap.josm.data.validation
Methods in org.openstreetmap.josm.data.validation with parameters of type Way Modifier and Type Method Description void
Test.TagTest. visit(Way w)
void
Test. visit(Way w)
-
Uses of Way in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests declared as Way Modifier and Type Field Description Way
UnconnectedWays.MyWaySegment. w
the wayFields in org.openstreetmap.josm.data.validation.tests with type parameters of type Way Modifier and Type Field Description private Map<Point2D,List<Way>>
SimilarNamedWays. cellWays
All ways, grouped by cellsprivate List<Way>
Coastlines. coastlineWays
private MultiMap<Way,Way>
SimilarNamedWays. errorWays
The already detected errorsprivate MultiMap<Way,Way>
SimilarNamedWays. errorWays
The already detected errorsprivate Map<List<Way>,List<WaySegment>>
CrossingWays. seenWays
The already detected ways in errorprivate Set<Way>
LongSegment. visitedWays
set of visited ways.private Set<Way>
UnconnectedWays. waysToTest
private Set<Way>
UntaggedWay. waysUsedInRelations
Methods in org.openstreetmap.josm.data.validation.tests that return Way Modifier and Type Method Description protected Way
UnconnectedWays. getWantedParentWay(Node endnode)
An unconnected node might have multiple parent ways, e.g.Methods in org.openstreetmap.josm.data.validation.tests that return types with arguments of type Way Modifier and Type Method Description private static Map<List<Way>,List<WaySegment>>
MultipolygonTest. findIntersectingWays(Relation r, boolean findSharedWaySegments)
SeeCrossingWays
Methods in org.openstreetmap.josm.data.validation.tests with parameters of type Way Modifier and Type Method Description private void
Coastlines. addError(int errCode, Way w, Collection<Way> otherWays, Node n)
Add error if not already doneprivate void
WayConnectedToArea. addPossibleError(Way w, Node wayNode, OsmPrimitive p, OsmPrimitive area)
private static boolean
CrossingWays. areLayerOrLevelDifferent(Way w1, Way w2)
private void
SharpAngles. checkAngle(Node node1, Node node2, Node node3, int i, Way way, boolean last)
protected static Set<WaySegment>
OverlappingWays. checkDuplicateWaySegment(Way w)
private void
TurnrestrictionTest. checkIfConnected(Relation r, Way previous, Way current, String msg, int code)
private void
Coastlines. checkIfReversed(Way w, Way other, Node n1)
Check if a reversed way would fit, if yes, add fixable "reversed" error, "unordered" elsevoid
SharpAngles. checkWayForSharpAngles(Way way)
Check nodes in a way for sharp angles(package private) CrossingWays.MessageHelper
CrossingWays. createMessage(Way w1, Way w2)
(package private) CrossingWays.MessageHelper
CrossingWays.Ways. createMessage(Way w1, Way w2)
private void
SharpAngles. createNearlyOverlappingError(double angle, Way way, OsmPrimitive primitive)
static void
CrossingWays. findIntersectingWay(Way w, Map<Point2D,List<WaySegment>> cellSegments, Map<List<Way>,List<WaySegment>> crossingWays, boolean findSharedWaySegments)
Find ways which are crossing without sharing a node.private static Set<String>
CrossingWays.Boundaries. getBoundaryTags(Way w)
Collect all boundary tag values of the way and its parent relationsstatic List<LatLon>
DuplicateWay. getOrderedNodes(Way w)
Replies the ordered list of nodes of way w such as it is easier to find duplicated ways.TestError
UnclosedWays.UnclosedWaysCheck. getTestError(Way w, UnclosedWays test)
Returns the test error of the given way, if any.(package private) List<UnconnectedWays.MyWaySegment>
UnconnectedWays. getWaySegments(Way w)
private void
Highways. handleCarWay(Node n, Way w)
private void
Highways. handleCyclistWay(Node n, Way w)
private void
Highways. handlePedestrianWay(Node n, Way w)
private boolean
LongSegment. ignoreWay(Way w)
(package private) boolean
CrossingWays.Boundaries. ignoreWaySegmentCombination(Way w1, Way w2)
(package private) abstract boolean
CrossingWays. ignoreWaySegmentCombination(Way w1, Way w2)
(package private) boolean
CrossingWays.SelfCrossing. ignoreWaySegmentCombination(Way w1, Way w2)
(package private) boolean
CrossingWays.Ways. ignoreWaySegmentCombination(Way w1, Way w2)
private boolean
UnconnectedWays.MyWaySegment. isConnectedTo(Node node, LinkedHashSet<Node> visited, double len, Way parent)
Check if the given node is connected to this segment using a reasonable short way.private static boolean
TurnrestrictionTest. isFullOneway(Way w)
static boolean
Highways. isHighwayLinkOkay(Way way)
Determines if the given link road is correct, see https://wiki.openstreetmap.org/wiki/Highway_link.private boolean
UnconnectedWays.MyWaySegment. isObstacle(Way w)
private static boolean
OverlappingWays. isOtherLinear(Way way)
protected static boolean
PowerLines. isPowerLine(Way w)
Determines if the specified way denotes a power line.private static boolean
PowerLines. isRelatedToPower(Way way)
static boolean
CrossingWays. isSelfCrossing(Way way)
Check if the given way is self crossingstatic boolean
SelfIntersectingWay. isSelfIntersecting(Way way)
Check if the given way is self-intersectingprivate static boolean
DirectionNodes. isSuitableParentWay(Way w)
protected boolean
UnconnectedWays. isWantedWay(Way w)
(package private) static CrossingWays.WayType
CrossingWays.WayType. of(Way w)
private void
SharpAngles. processSharpAngleForErrorCreation(double angle, int i, Way way, boolean last, Node pointNode)
private void
WronglyOrderedWays. reportError(Way w, String msg, int type)
boolean
SharpAngles. shouldBeTestedForSharpAngles(Way way)
Check whether or not a way should be checked for sharp anglesprivate void
WayConnectedToArea. testForError(Way w, Node wayNode, OsmPrimitive p)
private void
Highways. testHighwayLink(Way way)
private void
LongSegment. testWay(Way w)
private void
Highways. testWrongRoundabout(Way w)
void
Addresses. visit(Way w)
void
ApiCapabilitiesTest. visit(Way w)
void
Coastlines. visit(Way way)
void
CrossingWays. visit(Way w)
void
DuplicatedWayNodes. visit(Way w)
void
DuplicateWay. visit(Way w)
void
Highways. visit(Way w)
void
LongSegment. visit(Way w)
void
OverlappingWays. visit(Way w)
void
PowerLines. visit(Way w)
void
RightAngleBuildingTest. visit(Way w)
void
SelfIntersectingWay. visit(Way w)
void
SharpAngles. visit(Way way)
void
SimilarNamedWays. visit(Way w)
void
UnclosedWays. visit(Way w)
void
UnconnectedWays. visit(Way w)
void
UntaggedWay. visit(Way w)
void
WayConnectedToArea. visit(Way w)
void
WronglyOrderedWays. visit(Way w)
private void
LongSegment. visitWaySegment(Way w, int i)
Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type Way Modifier and Type Method Description private void
Coastlines. addError(int errCode, Way w, Collection<Way> otherWays, Node n)
Add error if not already doneprivate void
OverlappingWays. analyseOverlaps(Set<WaySegment> duplicated, Map<List<Way>,Set<WaySegment>> seenWays)
protected void
Addresses. checkDistance(OsmPrimitive house, Collection<Way> street)
private static boolean
MultipolygonTest. hasIntersectionWay(Multipolygon.PolyData pd, Set<Way> intersectionWays)
Simple check if given ring contains way that is known to intersect.Relation
MultipolygonTest. makeFromWays(Collection<Way> ways)
Create a multipolygon relation from the given ways and test it.Constructors in org.openstreetmap.josm.data.validation.tests with parameters of type Way Constructor Description MyWaySegment(Way w, Node n1, Node n2, boolean concersArea)
-
Uses of Way in org.openstreetmap.josm.data.validation.util
Methods in org.openstreetmap.josm.data.validation.util that return types with arguments of type Way Modifier and Type Method Description static List<List<Way>>
ValUtil. getWaysInCell(Way w, Map<Point2D,List<Way>> cellWays)
Returns the start and end cells of a way.Methods in org.openstreetmap.josm.data.validation.util with parameters of type Way Modifier and Type Method Description static List<List<Way>>
ValUtil. getWaysInCell(Way w, Map<Point2D,List<Way>> cellWays)
Returns the start and end cells of a way.void
AggregatePrimitivesVisitor. visit(Way w)
void
NameVisitor. visit(Way w)
If the way has a name-key or id-key, this is displayed.Method parameters in org.openstreetmap.josm.data.validation.util with type arguments of type Way Modifier and Type Method Description static List<List<Way>>
ValUtil. getWaysInCell(Way w, Map<Point2D,List<Way>> cellWays)
Returns the start and end cells of a way. -
Uses of Way in org.openstreetmap.josm.gui
Methods in org.openstreetmap.josm.gui that return Way Modifier and Type Method Description Way
NavigatableComponent. getNearestWay(Point p, Predicate<OsmPrimitive> predicate)
The *result* depends on the current map selection state.Methods in org.openstreetmap.josm.gui that return types with arguments of type Way Modifier and Type Method Description List<Way>
NavigatableComponent. getNearestWays(Point p, Collection<Way> ignore, Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.List<Way>
NavigatableComponent. getNearestWays(Point p, Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.Method parameters in org.openstreetmap.josm.gui with type arguments of type Way Modifier and Type Method Description List<Way>
NavigatableComponent. getNearestWays(Point p, Collection<Way> ignore, Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.void
MapStatus. setDist(Collection<Way> ways)
Sets the distance text to the total sum of given ways length -
Uses of Way in org.openstreetmap.josm.gui.conflict.pair.nodes
Methods in org.openstreetmap.josm.gui.conflict.pair.nodes with parameters of type Way Modifier and Type Method Description void
NodeListMergeModel. populate(Way my, Way their, Map<PrimitiveId,PrimitiveId> mergedMap)
-
Uses of Way in org.openstreetmap.josm.gui.dialogs
Methods in org.openstreetmap.josm.gui.dialogs with parameters of type Way Modifier and Type Method Description void
ConflictDialog.ConflictPainter. visit(Way w)
-
Uses of Way in org.openstreetmap.josm.gui.dialogs.relation.sort
Methods in org.openstreetmap.josm.gui.dialogs.relation.sort with parameters of type Way Modifier and Type Method Description private boolean
WayConnectionTypeCalculator. isConnected(Way way1, Way way2)
-
Uses of Way in org.openstreetmap.josm.gui.history
Methods in org.openstreetmap.josm.gui.history with parameters of type Way Modifier and Type Method Description void
HistoryBrowserModel.HistoryPrimitiveBuilder. visit(Way w)
-
Uses of Way in org.openstreetmap.josm.gui.layer
Methods in org.openstreetmap.josm.gui.layer with parameters of type Way Modifier and Type Method Description void
OsmDataLayer.DataCountVisitor. visit(Way w)
Method parameters in org.openstreetmap.josm.gui.layer with type arguments of type Way Modifier and Type Method Description private static void
OsmDataLayer. waysToGpxData(Collection<Way> ways, GpxData gpxData, Set<Node> doneNodes, String gpxPrefix)
-
Uses of Way in org.openstreetmap.josm.gui.layer.validation
Methods in org.openstreetmap.josm.gui.layer.validation with parameters of type Way Modifier and Type Method Description void
PaintVisitor. visit(Way w)
-
Uses of Way in org.openstreetmap.josm.gui.mappaint
Fields in org.openstreetmap.josm.gui.mappaint with type parameters of type Way Modifier and Type Field Description Map<IPrimitive,Map<List<Way>,List<WaySegment>>>
Environment. crossingWaysMap
Crossing ways result from CrossingFinder, filled for incomplete ways/relations -
Uses of Way in org.openstreetmap.josm.gui.mappaint.mapcss
Methods in org.openstreetmap.josm.gui.mappaint.mapcss that return types with arguments of type Way Modifier and Type Method Description private Map<List<Way>,List<WaySegment>>
Selector.ChildOrParentSelector.CrossingFinder. findCrossings(IPrimitive area, Map<Point2D,List<WaySegment>> cellSegments)
-
Uses of Way in org.openstreetmap.josm.io
Fields in org.openstreetmap.josm.io with type parameters of type Way Modifier and Type Field Description private static Set<Way>
GeoJSONWriter. processedMultipolygonWays
Methods in org.openstreetmap.josm.io that return Way Modifier and Type Method Description protected Way
AbstractReader. parseWay(AbstractReader.CommonReader commonReader, AbstractReader.WayReader wayReader)
protected Way
OsmReader. parseWay()
Methods in org.openstreetmap.josm.io that return types with arguments of type Way Modifier and Type Method Description private Optional<Way>
GeoJSONReader. createWay(javax.json.JsonArray coordinates, boolean autoClose)
Methods in org.openstreetmap.josm.io with parameters of type Way Modifier and Type Method Description MultiFetchServerObjectReader
MultiFetchServerObjectReader. appendWay(Way way)
appends aWay
id and the list of ids of nodes the way refers to the list of ids which will be fetched from the server.void
GeoJSONWriter.GeometryPrimitiveVisitor. visit(Way w)
Method parameters in org.openstreetmap.josm.io with type arguments of type Way Modifier and Type Method Description void
OsmWriter. writeWays(Collection<Way> ways)
Writes the given ways sorted by id -
Uses of Way in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools with parameters of type Way Modifier and Type Method Description private static void
RightAndLefthandTraffic. addWayIfNotInner(Collection<Way> ways, Way w)
Adds w to ways, except if it is an inner way of another lefthand driving multipolygon, as Lesotho in South Africa and Cyprus village in British Cyprus base.static double
Geometry. closedWayArea(Way way)
Returns area of a closed way in square meters.static WaySegment
Geometry. getClosestWaySegment(Way way, OsmPrimitive primitive)
Get the closestWaySegment
from a way to a primitive.static double
Geometry. getDistanceWayNode(Way way, Node node)
Get the distance between a way and a nodestatic double
Geometry. getDistanceWayWay(Way w1, Way w2)
Get the distance between different ways.static boolean
Geometry. isClockwise(Way w)
Determines whether a way is oriented clockwise.Method parameters in org.openstreetmap.josm.tools with type arguments of type Way Modifier and Type Method Description static Set<Node>
Geometry. addIntersections(List<Way> ways, boolean test, List<Command> cmds)
Will find all intersection and add nodes there for list of given ways.private static void
RightAndLefthandTraffic. addWayIfNotInner(Collection<Way> ways, Way w)
Adds w to ways, except if it is an inner way of another lefthand driving multipolygon, as Lesotho in South Africa and Cyprus village in British Cyprus base.(package private) static void
RightAndLefthandTraffic. appendLeftDrivingBoundaries(OsmPrimitive osm, Collection<Way> ways)
static boolean
Geometry. isNodeInsideMultiPolygon(INode node, Relation multiPolygon, Predicate<Way> isOuterWayAMatch)
Tests if thenode
is inside the multipolygonmultiPolygon
.static boolean
Geometry. isPolygonInsideMultiPolygon(List<? extends INode> nodes, Relation multiPolygon, Predicate<Way> isOuterWayAMatch)
Tests if the polygon formed bynodes
is inside the multipolygonmultiPolygon
.static boolean
Geometry. isPolygonInsideMultiPolygon(List<? extends INode> nodes, Pair<List<MultipolygonBuilder.JoinedPolygon>,List<MultipolygonBuilder.JoinedPolygon>> outerInner, Predicate<Way> isOuterWayAMatch)
Tests if the polygon formed bynodes
is inside the multipolygonmultiPolygon
.Constructor parameters in org.openstreetmap.josm.tools with type arguments of type Way Constructor Description DefaultGeoProperty(Collection<Way> ways)
Create DefaultGeoProperty based on a collection of closed ways.
-