Uses of Class
org.openstreetmap.josm.data.osm.Way
Packages that use Way
Package
Description
Provides the classes for JOSM user actions.
Provides the classes for JOSM
tag correctors.Provides the classes for JOSM
map modes.Provides the classes for JOSM commands allowing to modify an OSM data set.
Provides commands for handling conflicts.
Provides the classes for OSM data:
Primitives:
Node,
Way,
Relation
Users
Tags
Changesets
Utilities classes
Provides the classes for OSM dataset events.
Provides the classes for OSM primitives
history (edition revisions).Provides the classes for performing actions on OSM primitives using Visitor design pattern.
Provides the classes for painting and caching
Multipolygon relations.Provides the classes for JOSM data validation.
Provides the classes for JOSM data validation tests.
Provides utilities classes for JOSM data validation.
Provides the classes for JOSM graphical user interface.
Provides the classes for displaying conflicts in ways list of nodes.
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 else
Provides the classes for sorting relations.
Provides GUI classes for handling history of OSM objects.
Provides classes for handling the different kinds of map layers.
Provides classes for handling validation layer.
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.
Two implementations are provided: XML: this was the system used by default JOSM map style for a long time.
Drawing system based on MapCSS map styles.
Provides the classes for JOSM input/output support.
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 WayModifier and TypeFieldDescriptionprivate final WayJoinAreasAction.Multipolygon.outerWay(package private) final WaySplitWayAction.SegmentToKeepSelectionDialog.selectedWayprivate WayUnGlueAction.selectedWayfinal WayJoinAreasAction.WayInPolygon.way(package private) WaySplitWayAction.SegmentToKeepSelectionDialog.wayToKeepFields in org.openstreetmap.josm.actions with type parameters of type WayModifier and TypeFieldDescriptionSimplifyWayAction.SimplifyWayDataSelectionListener.consumerJoinAreasAction.Multipolygon.innerWaysSplitWayAction.SegmentToKeepSelectionDialog.listSplitWayAction.SegmentToKeepSelectionDialog.newWaysprivate final Collection<Way>CreateMultipolygonAction.CreateUpdateMultipolygonTask.selectedWaysSimplifyWayAction.SimplifyWayDataSelectionListener.wayListSimplifyWayAction.SimplifyChangeListener.waysMethods in org.openstreetmap.josm.actions that return WayModifier and TypeMethodDescriptionprivate WaySelectNonBranchingWaySequences.findWay(Collection<OsmPrimitive> selection) Finds out if the current selection can be extended.private static WaySelectNonBranchingWaySequences.findWay(Collection<OsmPrimitive> selection, Node node) Finds out if the current selection can be extended.final WayJoinAreasAction.Multipolygon.getOuterWay()Returns the outer way.protected static WayCombineWayAction.getTargetWay(Collection<Way> combinedWays) private WayJoinAreasAction.joinOrientedWays(List<JoinAreasAction.WayInPolygon> ways) Joins a list of ways (using CombineWayAction and ReverseWayAction as specified in WayInPath)private WayJoinAreasAction.joinWays(List<JoinAreasAction.WayInPolygon> ways) Joins the outer ways and deletes all short ways that can't be part of a multipolygon anyway.private WayCreate 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 WayModifier and TypeMethodDescriptionCombineWayAction.combineWaysWorker(Collection<Way> ways) Combine multiple ways into one.SplitWayAction.getApplicableWays(List<Way> selectedWays, List<Node> selectedNodes) Determine which ways to split.UnJoinNodeWayAction.getApplicableWays(List<Way> selectedWays, List<Node> selectedNodes) Find ways to which the disconnect can be applied.JoinAreasAction.Multipolygon.getInnerWays()Returns the inner ways.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 WayModifier and TypeMethodDescriptionprivate booleanprivate voidAdd the endpoints of the way to nodes, outerNodesJoinAreasAction.buildNodeChunks(Way way, Collection<Node> splitNodes) Simple chunking version.static SequenceCommandSimplifyWayAction.createSimplifyCommand(Way w) Creates the SequenceCommand to simplify a way with default threshold.static SequenceCommandSimplifyWayAction.createSimplifyCommand(Way w, double threshold) Creates the SequenceCommand to simplify a way with a given threshold.private static SequenceCommandSimplifyWayAction.createSimplifyCommand(Way w, double threshold, boolean deselect) Creates the SequenceCommand to simplify a way with a given threshold.(package private) static voidSplitWayAction.doSplitWay(Way way, Way wayToKeep, List<Way> newWays, List<OsmPrimitive> newSelection) static voidSplitWayAction.doSplitWayShowSegmentSelection(Way splitWay, List<Node> splitNodes, List<OsmPrimitive> selection) Perform way splitting after presenting the user with a choice which way segment history should be preserved (in expert mode)private voidJoinAreasAction.fixRelations(List<JoinAreasAction.RelationRole> rels, Way outer, JoinAreasAction.RelationRole ownMultipol, Set<Relation> relationsToDelete) Adds the previously removed relations again to the outer way.SimplifyWayAction.getMultiUseNodes(Way w) Calculate a set of nodes which occurs more than once in the wayprotected static booleanSimplifyWayAction.isRequiredNode(Way way, Node node, Set<Node> multipleUseNodes) Replies true ifnodeis a required node which can't be removed in order to simplify the way.private WayCreate copy of given way using an older id so that we don't create a new way instead of a modified old one.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!CreateCircleAction.orderNodesByWay(List<Node> nodes, Way way) Order nodes according to way direction.ReverseWayAction.reverseWay(Way w) Reverses a given way.This is a method that splits way into smaller parts, using the prepared nodes list as split points.private booleanUnGlueAction.unglueClosedOrSelfCrossingWay(Way way, PropertiesMembershipChoiceDialog dialog) Duplicates a node used several times by the same way.private voidUnGlueAction.unglueOneNodeAtMostOneWay(Way way, PropertiesMembershipChoiceDialog dialog) Assumes there is one tagged Node stored in selectedNode that it will try to unglue.voidMethod parameters in org.openstreetmap.josm.actions with type arguments of type WayModifier and TypeMethodDescription(package private) voidSimplifyWayAction.SimplifyWayDataSelectionListener.addConsumer(Consumer<List<Way>> wayConsumer) private JoinAreasAction.RelationRoleJoinAreasAction.addOwnMultipolygonRelation(Collection<Way> inner) Will add own multipolygon relation to the "previously existing" relations.private static CommandAlignInLineAction.alignMultiWay(Collection<Way> ways) Align way in case of multiple way #6819static doubleSimplifyWayAction.askSimplifyWays(List<Way> ways, String text, boolean auto) Asks the user for max-err value used to simplify ways, if not remembered beforeprivate static doubleSimplifyWayAction.askSimplifyWays(List<Way> ways, Supplier<String> textSupplier, SimplifyWayAction.SimplifyWayDataSelectionListener listener, boolean auto) Asks the user for max-err value used to simplify ways, if not remembered beforeprivate static SequenceCommandSimplifyWayAction.buildSimplifyWaysCommand(List<Way> ways, double threshold) Creates the commands to simplify the ways with the given thresholdUnGlueAction.calcAffectedRelations(Collection<Way> ways) private static booleanCombineWayAction.checkAndConfirmCombineOutlyingWays(Collection<Way> ways) Check whether user is about to combine ways with unknown parents.private static booleanDistributeAction.checkDistributeNodes(Collection<Way> ways, Collection<Node> nodes) Test if nodes oriented algorithm applies to the selection.private static booleanDistributeAction.checkDistributeWay(Collection<Way> ways, Collection<Node> nodes) Test if one way, no self-crossing, is selected with at most two of its nodes.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.AlignInCircleAction.collectNodesAnticlockwise(List<Way> ways) Assuming all ways can be joined into polygon, create an ordered list of node.AlignInCircleAction.collectNodesWithExternReferrers(List<Way> ways) Collect all nodes with more than one referrer.CombineWayAction.combineWaysWorker(Collection<Way> ways) Combine multiple ways into one.static Pair<SequenceCommand,Relation> CreateMultipolygonAction.createMultipolygonCommand(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) CreateMultipolygonAction.createMultipolygonRelation(Collection<Way> selectedWays, boolean showNotif) protected static voidCombineWayAction.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 voidSplitWayAction.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.SplitWayAction.getApplicableWays(List<Way> selectedWays, List<Node> selectedNodes) Determine which ways to split.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 RelationCreateMultipolygonAction.getSelectedMultipolygonRelation(Collection<Way> selectedWays, Collection<Relation> selectedRelations) protected static WayCombineWayAction.getTargetWay(Collection<Way> combinedWays) private static booleanUnGlueAction.isRelationAffected(Relation r, Set<Node> affectedNodes, Collection<Way> ways) voidJoinAreasAction.join(Collection<Way> ways) Joins the given ways.CombineWayAction.joinWithMultipolygonCode(Collection<Way> ways) UseMultipolygon.joinWays(Collection)to join ways.private WayCreate copy of given way using an older id so that we don't create a new way instead of a modified old one.private WayCreate 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 voidUnGlueAction.notifyWayPartOfRelation(Collection<Way> ways) private booleanJoinAreasAction.removeDuplicateNodes(List<Way> ways) This method removes duplicate points (if any) from the input ways.static voidSimplifyWayAction.simplifyWays(List<Way> ways, double threshold) Runs the commands to simplify the ways with the given thresholdstatic intSimplifyWayAction.simplifyWaysCountNodesRemoved(List<Way> ways, double threshold) Runs the commands to simplify the ways with the given thresholdThis is a method that splits way into smaller parts, using the prepared nodes list as split points.private voidJoinAreasAction.stripTags(Collection<Way> ways) Remove all tags from the all the wayCombineWayAction.tryJoin(Collection<Way> ways) CreateMultipolygonAction.updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) Constructors in org.openstreetmap.josm.actions with parameters of type WayModifierConstructorDescription(package private)Init a line equation from a way.Multipolygon(Way way) Constructs a newMultipolygon.(package private)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 WayModifierConstructorDescriptionprivateCreateUpdateMultipolygonTask(Collection<Way> selectedWays, Relation multipolygonRelation) (package private)SegmentToKeepSelectionDialog(Way selectedWay, List<Way> newWays, Way wayToKeep, List<Node> selectedNodes, List<OsmPrimitive> selection) Creates a way selection(package private)SimplifyChangeListener(JLabel nodesToRemove, SpinnerNumberModel errorModel, List<Way> ways) (package private)SimplifyWayDataSelectionListener(List<Way> wayList) Create a new selection listener forSimplifyWayAction -
Uses of Way in org.openstreetmap.josm.actions.corrector
Methods in org.openstreetmap.josm.actions.corrector that return types with arguments of type WayModifier and TypeMethodDescriptionReverseWayTagCorrector.irreversibleWays(List<Way> ways) Returns the subset of irreversible ways.Methods in org.openstreetmap.josm.actions.corrector with parameters of type WayModifier and TypeMethodDescriptionstatic voidReverseWayNoTagCorrector.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 booleanReverseWayNoTagCorrector.confirmReverseWay(Way way, TagCollection tags) (package private) static List<RoleCorrection>ReverseWayTagCorrector.getRoleCorrections(Way oldway) (package private) static Map<OsmPrimitive,List<TagCorrection>> ReverseWayTagCorrector.getTagCorrectionsMap(Way way) static booleanReverseWayTagCorrector.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 WayModifier and TypeMethodDescriptionReverseWayTagCorrector.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 WayModifier and TypeFieldDescriptionprivate final WaySplitMode.SplitWayActionConcrete.splitWayprivate WayImproveWayAccuracyAction.targetWayFields in org.openstreetmap.josm.actions.mapmode with type parameters of type WayModifier and TypeFieldDescriptionDrawAction.mouseOnExistingWaysParallelWayAction.sourceWaysParallelWays.sourceWaysParallelWays.waysMethods in org.openstreetmap.josm.actions.mapmode that return WayModifier and TypeMethodDescriptionstatic WayFinds the way to work on.static WayDrawAction.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 WayModifier and TypeMethodDescriptionParallelWays.buildWays()Builds the (not yet added) ways from the last computed offset path.SplitMode.getApplicableWays(Node n, Collection<Way> preferredWays) Get a list of potential ways to be split for a given nodeParallelWays.getWays()Returns the resulting parallel ways, available afterParallelWays.commit().Methods in org.openstreetmap.josm.actions.mapmode with parameters of type WayModifier and TypeMethodDescriptionprivate voidSplitMode.addNodeAndSplit(MapView mv, Point mousePos, Way way) Add a node to a way and then split itprivate voidParallelWayAction.addSourceWay(Way w) private voidDrawAction.continueWayFromNode(Way way, Node node) if one of the ends ofwayis givennode, then set currentBaseNode = node and previousNode = adjacent node of waystatic NodeImproveWayAccuracyHelper.findCandidateNode(MapView mv, Way w, Point p) Returns the nearest node to cursor.static WaySegmentImproveWayAccuracyHelper.findCandidateSegment(MapView mv, Way w, Point p) Returns the nearest way segment to cursor.private NodeDrawAction.findNodeToContinueFrom(Node selectedNode, Way selectedWay) Finds a node to continue drawing from.private static booleanExtrudeAction.hasNodeOtherWays(Node node, Way myWay) This method tests ifnodehas other ways apart from the given one.private static booleanChecks whether a way runs in the same direction as a node list.private booleanDrawAction.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 voidParallelWayAction.removeSourceWay(Way w) voidImproveWayAccuracyAction.startImproving(Way targetWay) Switches to Improving stateMethod parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type WayModifier and TypeMethodDescriptionprivate JPopupMenuSplitMode.createPopup(Node n, Collection<Way> applicableWays) Create a new split way selection popupSplitMode.getApplicableWays(Node n, Collection<Way> preferredWays) Get a list of potential ways to be split for a given nodeprivate static StringDrawAction.getTitle(boolean newNode, Node n, Collection<OsmPrimitive> newSelection, Map<Way, List<Node>> reuseWays, boolean extendedWay) private voidDrawAction.insertNodeIntoAllNearbySegments(List<WaySegment> wss, Node n, Collection<OsmPrimitive> newSelection, Collection<Command> cmds, Map<Way, List<Node>> reuseWays) private static voidParallelWayAction.removeWayHighlighting(Collection<Way> ways) Constructors in org.openstreetmap.josm.actions.mapmode with parameters of type WayModifierConstructorDescription(package private)SplitWayActionConcrete(Way splitWay, List<Node> splitNodes, List<OsmPrimitive> selection) Construct an action to split waysplitWayat nodessplitNodesConstructor parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type WayModifierConstructorDescriptionParallelWays(Collection<Way> sourceWays, boolean copyTags, int refWayIndex) Constructs a newParallelWays.ParallelWays(Collection<Way> sourceWays, boolean copyTags, int refWayIndex, double arcStepDegrees) Constructs a newParallelWays. -
Uses of Way in org.openstreetmap.josm.command
Fields in org.openstreetmap.josm.command declared as WayModifier and TypeFieldDescriptionprivate final WaySplitWayCommand.originalWayprotected final WayAbstractNodesCommand.wayFields in org.openstreetmap.josm.command with type parameters of type WayModifier and TypeFieldDescriptionSplitWayCommand.RelationAnalysis.neededIncompleteMembersSplitWayCommand.newWaysMethods in org.openstreetmap.josm.command that return WayModifier and TypeMethodDescriptionSplitWayCommand.Strategy.determineWayToKeep(Iterable<Way> wayChunks) Determines which way chunk should reuse the old id and its history.SplitWayCommand.getOriginalWay()Replies the original way being splitMethods in org.openstreetmap.josm.command that return types with arguments of type WayModifier and TypeMethodDescriptionSplitWayCommand.createNewWaysFromChunks(Way way, Iterable<List<Node>> wayChunks) Creates new way objects for the way chunks and transfers the keys from the original way.SplitWayCommand.RelationAnalysis.getNeededIncompleteMembers()SplitWayCommand.getNewWays()Replies the resulting new waysMethods in org.openstreetmap.josm.command with parameters of type WayModifier and TypeMethodDescription(package private) static SplitWayCommand.AnalysisSplitWayCommand.analyseSplit(Way way, Way wayToKeep, List<Way> newWays) SplitWayCommand.buildSplitChunks(Way wayToSplit, List<Node> splitPoints) Splits the nodes ofwayToSplitinto a list of node sequences which are separated at the nodes insplitPoints.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 SplitWayCommandSplitWayCommand.split(Way way, List<Node> atNodes, Collection<? extends OsmPrimitive> selection) Splits the waywayat the nodes inatNodesand replies the result of this process in an instance ofSplitWayCommand.(package private) static SplitWayCommandSplitWayCommand.splitBasedOnAnalyses(Way way, List<Way> newWays, List<OsmPrimitive> newSelection, SplitWayCommand.Analysis analysis, int indexOfWayToKeep) static SplitWayCommandSplitWayCommand.splitWay(Way way, List<List<Node>> wayChunks, Collection<? extends OsmPrimitive> selection) Splits the waywayinto chunks ofwayChunksand replies the result of this process in an instance ofSplitWayCommand.static SplitWayCommandSplitWayCommand.splitWay(Way way, List<List<Node>> wayChunks, Collection<? extends OsmPrimitive> selection, SplitWayCommand.Strategy splitStrategy) Splits the waywayinto chunks ofwayChunksand 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 waywayinto chunks ofwayChunksand replies the result of this process in an instance ofSplitWayCommand.private static SplitWayCommand.RelationInformationSplitWayCommand.treatAsRestriction(Relation r, RelationMember rm, Relation c, Collection<Way> newWays, Way way, List<Node> changedWayNodes) voidMethod parameters in org.openstreetmap.josm.command with type arguments of type WayModifier and TypeMethodDescriptionprivate static voidSplitWayCommand.addSortedWays(int position, int indexOfWayToKeep, SplitWayCommand.Direction direction, List<Way> newWays, Relation relation) Add ways in a sorted manner(package private) static SplitWayCommand.AnalysisSplitWayCommand.analyseSplit(Way way, Way wayToKeep, List<Way> newWays) 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.private static booleanSplitWayCommand.needToReverseSplit(int position, int indexOfWayToKeep, Relation relation, List<Way> newWays) This is only strictly necessary when we are splitting a route where it starts to loop back.(package private) static SplitWayCommandSplitWayCommand.splitBasedOnAnalyses(Way way, List<Way> newWays, List<OsmPrimitive> newSelection, SplitWayCommand.Analysis analysis, int indexOfWayToKeep) private static SplitWayCommand.RelationInformationSplitWayCommand.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 WayModifierConstructorDescriptionprotectedAbstractNodesCommand(DataSet ds, Way way, C cmdNodes) Constructs a newAbstractNodesCommand.protectedAbstractNodesCommand(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 WayModifierConstructorDescription(package private)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 -
Uses of Way in org.openstreetmap.josm.data.osm
Fields in org.openstreetmap.josm.data.osm with type parameters of type WayModifier and TypeFieldDescriptionprivate final QuadBucketPrimitiveStore<Node,Way, Relation> DataSet.storeMultipolygonBuilder.JoinedPolygon.wayslist of ways building this polygonMethods in org.openstreetmap.josm.data.osm that return WayModifier and TypeMethodDescriptionDataSet.getLastSelectedWay()Returns the way selected last or null if no way primitives were selected or selection is empty.RelationMember.getWay()Returns the relation member as a way.private static WayWaySegment.toWay()Returns this way segment as complete way.Methods in org.openstreetmap.josm.data.osm that return types with arguments of type WayModifier and TypeMethodDescriptionNode.getParentWays()Replies the list of referring ways.DataSet.getWays()DataSet.searchWays(BBox bbox) 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 WayModifier and TypeMethodDescriptionNodeGraph.buildNodePairs(Way way, boolean directed) Builds a list of pair of nodes from the given way.booleanDataSet.containsWay(Way w) Determines if the given way can be retrieved in the data set through its bounding box.private static void(package private) voidDataSet.fireWayNodesChanged(Way way) protected voidDataSetMerger.fixIncomplete(Way other) static WaySegmentWaySegment.forNodePair(Way way, Node first, Node second) Determines and returns the way segment for the given way and node pair.private voidDataSetMerger.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 WayModifier and TypeMethodDescriptionNodeGraph.buildNodePairs(List<Way> ways, boolean directed) Builds a list of pair of nodes from the given ways.static NodeGraphNodeGraph.createDirectedGraphFromWays(Collection<Way> ways) Create a directed graph from the given ways.static NodeGraphNodeGraph.createNearlyUndirectedGraphFromNodeWays(Collection<Way> ways) Create a nearly undirected graph from the given ways, but prevent reversing of all non-new ways by fixing one direction.static NodeGraphNodeGraph.createUndirectedGraphFromNodeWays(Collection<Way> ways) Create an undirected graph from the given ways, but prevent reversing of all non-new ways by fixing one direction.MultipolygonBuilder.joinWays(Collection<Way> ways) Joins the givenwaysto multipolygon rings.MultipolygonBuilder.makeFromWays(Collection<Way> ways) Splits ways into inner and outer JoinedWays.Constructors in org.openstreetmap.josm.data.osm with parameters of type WayModifierConstructorDescriptionJoinedPolygon(Way way) Creates a polygon from single way.Constructs a newWayfrom an existingWay(including its id).Constructs a newWayfrom an existingWay.Constructs a newWayfrom an existingWay.WaySegment(Way way, int i) Constructs a newIWaySegment.Constructor parameters in org.openstreetmap.josm.data.osm with type arguments of type WayModifierConstructorDescriptionJoinedPolygon(List<Way> ways, List<Boolean> reversed) Constructs a newJoinedPolygonfrom given list of ways. -
Uses of Way in org.openstreetmap.josm.data.osm.event
Fields in org.openstreetmap.josm.data.osm.event declared as WayMethods in org.openstreetmap.josm.data.osm.event that return WayModifier and TypeMethodDescriptionWayNodesChangedEvent.getChangedWay()Returns the way affected by the change.Constructors in org.openstreetmap.josm.data.osm.event with parameters of type WayModifierConstructorDescriptionWayNodesChangedEvent(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 WayModifierConstructorDescriptionHistoryWay(Way w) Constructs a newHistoryWayfrom an existingWay. -
Uses of Way in org.openstreetmap.josm.data.osm.visitor
Methods in org.openstreetmap.josm.data.osm.visitor with parameters of type WayModifier and TypeMethodDescriptionprotected voidMergeSourceBuildingVisitor.rememberWay(Way w) remembers a way in the hullvoidWays have their way nodes.voidvoidvoidVisiting 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 WayMethods in org.openstreetmap.josm.data.osm.visitor.paint.relations that return types with arguments of type WayModifier and TypeMethodDescriptionMultipolygon.getInnerWays()Replies the list of inner ways.Multipolygon.getOuterWays()Replies the list of outer ways.Method parameters in org.openstreetmap.josm.data.osm.visitor.paint.relations with type arguments of type WayModifier and TypeMethodDescriptionprivate voidMultipolygon.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 -
Uses of Way in org.openstreetmap.josm.data.validation
Methods in org.openstreetmap.josm.data.validation with parameters of type Way -
Uses of Way in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests declared as WayFields in org.openstreetmap.josm.data.validation.tests with type parameters of type WayModifier and TypeFieldDescriptionSimilarNamedWays.cellWaysAll ways, grouped by cellsCoastlines.coastlineWaysSimilarNamedWays.errorWaysThe already detected errorsSimilarNamedWays.errorWaysThe already detected errorsprivate final Collection<Way>PowerLines.foundPowerLinesprivate final Map<List<Way>,List<WaySegment>> CrossingWays.seenWaysThe already detected ways in errorCycleDetector.usableWaterwaysAll waterways for cycle detectionLongSegment.visitedWaysset of visited ways.DuplicateWay.waysToCheckCrossingWays.waysToTestUnconnectedWays.waysToTestUntaggedWay.waysUsedInRelationsPowerLines.wrongLineTypeMethods in org.openstreetmap.josm.data.validation.tests that return WayModifier and TypeMethodDescriptionprotected WayUnconnectedWays.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 WayModifier and TypeMethodDescriptionprivate Collection<Way>CrossingWays.addNearbyObjects()private Collection<Way>CycleDetector.buildGraph(Way way) Returns a collection of ways, which belongs to the same graph.private static Map<List<Way>,List<WaySegment>> MultipolygonTest.findIntersectingWays(Relation r, boolean findSharedWaySegments) SeeCrossingWaysprivate Collection<Collection<Way>>CycleDetector.getGraphs()Returns all directional waterways which connect to at least one other usable way.Methods in org.openstreetmap.josm.data.validation.tests with parameters of type WayModifier and TypeMethodDescriptionprivate voidCoastlines.addError(int errCode, Way w, Collection<Way> otherWays, Node n) Add error if not already doneprivate voidWayConnectedToArea.addPossibleError(Way w, Node wayNode, OsmPrimitive p, OsmPrimitive area) private voidPowerLines.addWaterWaySegments(Way w) Add segments to the appropriate cellsprivate static booleanCrossingWays.areLayerOrLevelDifferent(Way w1, Way w2) private Collection<Way>CycleDetector.buildGraph(Way way) Returns a collection of ways, which belongs to the same graph.private voidSharpAngles.checkAngle(Node node1, Node node2, Node node3, int i, Way way, boolean last) protected static Set<WaySegment>OverlappingWays.checkDuplicateWaySegment(Way w) private voidTurnrestrictionTest.checkIfConnected(Relation r, Way previous, Way current, String msg, int code) private voidCoastlines.checkIfReversed(Way w, Way other, Node n1) Check if a reversed way would fit, if yes, add fixable "reversed" error, "unordered" elseprivate voidvoidSharpAngles.checkWayForSharpAngles(Way way) Check nodes in a way for sharp angles(package private) CrossingWays.MessageHelperCrossingWays.createMessage(Way w1, Way w2) (package private) CrossingWays.MessageHelperCrossingWays.Ways.createMessage(Way w1, Way w2) private voidSharpAngles.createNearlyOverlappingError(double angle, Way way, OsmPrimitive primitive) (package private) static booleanPowerLines.detectDiscontinuity(Way way, Set<OsmPrimitive> nRefDiscontinuities, List<Set<Node>> sRefDiscontinuities) Detects ref=* numbering discontinuities in the given way.private static voidPowerLines.findCrossings(Map<Point2D, List<WaySegment>> ways, Way parent, Set<Way> crossingWays, Set<ILatLon> crossingPositions) Searches for way intersections, which intersect thepairattribute.static voidCrossingWays.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.CrossingWays.Boundaries.getBoundaryTags(Way w) Collect all boundary tag values of the way and its parent relationsDuplicateWay.getOrderedNodes(Way w) Replies the ordered list of nodes of way w such as it is easier to find duplicated ways.final TestErrorUnclosedWays.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 voidHighways.handleCarWay(Node n, Way w) private voidHighways.handleCyclistWay(Node n, Way w) private voidHighways.handlePedestrianWay(Node n, Way w) private boolean(package private) booleanCrossingWays.Boundaries.ignoreWaySegmentCombination(Way w1, Way w2) (package private) abstract booleanCrossingWays.ignoreWaySegmentCombination(Way w1, Way w2) (package private) booleanCrossingWays.SelfCrossing.ignoreWaySegmentCombination(Way w1, Way w2) (package private) booleanCrossingWays.Ways.ignoreWaySegmentCombination(Way w1, Way w2) private booleanUnconnectedWays.MyWaySegment.isConnectedTo(Node node, Set<Node> visited, double len, Way parent) Check if the given node is connected to this segment using a reasonable short way.private static booleanPowerLines.isConnectedToStationLine(Node n, Way w) Determines if the current node connected to a line which usually used inside power stations.private static booleanCycleDetector.isConsecutive(Way w, Node n, Node m) Determines if the given nodes are consecutive part of the parent way.private static booleanPowerLines.isContinuesAsMinorLine(Way way) Checks if the way continues as a power=minor_line.private static booleanTurnrestrictionTest.isFullOneway(Way w) static booleanHighways.isHighwayLinkOkay(Way way) Determines if the given link road is correct, see https://wiki.openstreetmap.org/wiki/Highway_link.private booleanUnconnectedWays.MyWaySegment.isObstacle(Way w) private static booleanOverlappingWays.isOtherLinear(Way way) protected static booleanPowerLines.isPowerLine(Way w) Determines if the specified way denotes a power line.protected static booleanPowerLines.isPowerLineOrCable(Way w) Determines if the specified way denotes a power line or cable.private static booleanPowerLines.isRelatedToPower(Way way) static booleanCrossingWays.isSelfCrossing(Way way) Check if the given way is self crossingstatic booleanSelfIntersectingWay.isSelfIntersecting(Way way) Check if the given way is self-intersectingprivate static booleanHighways.isSpecialArea(Way w) Check if way is an area on a layer above or below 0.private static booleanDirectionNodes.isSuitableParentWay(Way w) protected booleanUnconnectedWays.isWantedWay(Way w) (package private) static CrossingWays.WayTypeprivate voidPowerLines.powerlineChecks(Way w) The base powerline checksprivate voidSharpAngles.processSharpAngleForErrorCreation(double angle, int i, Way way, boolean last, Node pointNode) private voidWronglyOrderedWays.reportError(Way w, String msg, int type) private voidbooleanSharpAngles.shouldBeTestedForSharpAngles(Way way) Check whether a way should be checked for sharp anglesprivate voidWayConnectedToArea.testForError(Way w, Node wayNode, OsmPrimitive p) private voidHighways.testHighwayLink(Way way) private voidprivate voidprivate voidHighways.testWrongRoundabout(Way w) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidprivate voidLongSegment.visitWaySegment(Way w, int i) Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type WayModifier and TypeMethodDescriptionprivate voidCoastlines.addError(int errCode, Way w, Collection<Way> otherWays, Node n) Add error if not already doneprivate voidOverlappingWays.analyseOverlaps(Set<WaySegment> duplicated, Map<List<Way>, Set<WaySegment>> seenWays) protected voidAddresses.checkDistance(OsmPrimitive house, Collection<Way> street) private static booleanHighways.checkLayer(Node connection, List<Way> ways) Check if there are at least two neighbouring nodes on the given ways.private static voidPowerLines.findCrossings(Map<Point2D, List<WaySegment>> ways, Way parent, Set<Way> crossingWays, Set<ILatLon> crossingPositions) Searches for way intersections, which intersect thepairattribute.private static booleanMultipolygonTest.hasIntersectionWay(Multipolygon.PolyData pd, Set<Way> intersectionWays) Simple check if given ring contains way that is known to intersect.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 WayModifierConstructorDescription(package private)MyWaySegment(Way w, Node n1, Node n2, boolean concersArea) (package private)RefChecker(Way way) -
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 WayModifier and TypeMethodDescriptionReturns the start and end cells of a way.Methods in org.openstreetmap.josm.data.validation.util with parameters of type WayModifier and TypeMethodDescriptionReturns the start and end cells of a way.voidvoidIf 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 -
Uses of Way in org.openstreetmap.josm.gui
Methods in org.openstreetmap.josm.gui that return WayModifier and TypeMethodDescriptionfinal WayNavigatableComponent.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 WayModifier and TypeMethodDescriptionNavigatableComponent.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*.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 WayModifier and TypeMethodDescriptionNavigatableComponent.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*.voidMapStatus.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 WayModifier and TypeMethodDescriptionvoidNodeListMergeModel.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 -
Uses of Way in org.openstreetmap.josm.gui.dialogs.relation.sort
Methods in org.openstreetmap.josm.gui.dialogs.relation.sort with parameters of type WayModifier and TypeMethodDescriptionprivate static booleanWayConnectionTypeCalculator.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 -
Uses of Way in org.openstreetmap.josm.gui.layer
Methods in org.openstreetmap.josm.gui.layer with parameters of type WayMethod parameters in org.openstreetmap.josm.gui.layer with type arguments of type WayModifier and TypeMethodDescriptionprivate static voidOsmDataLayer.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 -
Uses of Way in org.openstreetmap.josm.gui.mappaint
Fields in org.openstreetmap.josm.gui.mappaint with type parameters of type WayModifier and TypeFieldDescriptionMap<IPrimitive,Map<List<Way>, List<WaySegment>>> Environment.crossingWaysMapCrossing 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 WayModifier and TypeMethodDescriptionprivate 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 WayMethods in org.openstreetmap.josm.io that return WayModifier and TypeMethodDescriptionprotected final WayAbstractReader.parseWay(AbstractReader.CommonReader commonReader, AbstractReader.WayReader wayReader) protected WayOsmReader.parseWay()Methods in org.openstreetmap.josm.io that return types with arguments of type WayModifier and TypeMethodDescriptionGeoJSONReader.createWay(jakarta.json.JsonArray coordinates, boolean autoClose) GeoJSONReader.parseLineString(jakarta.json.JsonObject feature, jakarta.json.JsonArray coordinates) Methods in org.openstreetmap.josm.io with parameters of type WayModifier and TypeMethodDescriptionappends aWayid and the list of ids of nodes the way refers to the list of ids which will be fetched from the server.voidMethod parameters in org.openstreetmap.josm.io with type arguments of type WayModifier and TypeMethodDescriptionvoidOsmWriter.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 WayModifier and TypeMethodDescriptionprivate static voidRightAndLefthandTraffic.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 doubleGeometry.closedWayArea(Way way) Returns area of a closed way in square meters.static WaySegmentGeometry.getClosestWaySegment(Way way, OsmPrimitive primitive) Get the closestWaySegmentfrom a way to a primitive.static doubleGeometry.getDistanceWayNode(Way way, Node node) Get the distance between a way and a nodestatic doubleGeometry.getDistanceWayWay(Way w1, Way w2) Get the distance between different ways.static DoubleRotationAngle.WayDirectionRotationAngle.getRotationAngleForNodeOnWay(Node n, Way w) Calculates the rotation angle of a node in a way based on the preceding way segment.static booleanGeometry.isClockwise(Way w) Determines whether a way is oriented clockwise.Method parameters in org.openstreetmap.josm.tools with type arguments of type WayModifier and TypeMethodDescriptionGeometry.addIntersections(List<Way> ways, boolean test, List<Command> cmds) Will find all intersection and add nodes there for list of given ways.private static voidRightAndLefthandTraffic.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 voidRightAndLefthandTraffic.appendLeftDrivingBoundaries(OsmPrimitive osm, Collection<Way> ways) static booleanGeometry.isNodeInsideMultiPolygon(INode node, Relation multiPolygon, Predicate<Way> isOuterWayAMatch) Tests if thenodeis inside the multipolygonmultiPolygon.static booleanGeometry.isPolygonInsideMultiPolygon(List<? extends INode> nodes, Relation multiPolygon, Predicate<Way> isOuterWayAMatch) Tests if the polygon formed bynodesis inside the multipolygonmultiPolygon.static booleanGeometry.isPolygonInsideMultiPolygon(List<? extends INode> nodes, Pair<List<MultipolygonBuilder.JoinedPolygon>, List<MultipolygonBuilder.JoinedPolygon>> outerInner, Predicate<Way> isOuterWayAMatch) Tests if the polygon formed bynodesis inside the multipolygonmultiPolygon.Constructor parameters in org.openstreetmap.josm.tools with type arguments of type WayModifierConstructorDescriptionDefaultGeoProperty(Collection<Way> ways) Create DefaultGeoProperty based on a collection of closed ways.