Uses of Class
org.openstreetmap.josm.data.osm.Node
-
Packages that use Node Package Description org.openstreetmap.josm.actions Provides the classes for JOSM user actions.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.algorithms General purpose algorithm classes for OSM data validation.org.openstreetmap.josm.data.osm Provides the classes for OSM data:Primitives:Node,Way,RelationUsersTagsChangesetsUtilities 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 cachingMultipolygonrelations.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.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.io Provides the classes for JOSM input/output support.org.openstreetmap.josm.io.remotecontrol.handler Provides the classes for remote control handlers (features exposed to the browser).org.openstreetmap.josm.tools Provides the classes for various utilities and tools called from all other packages. -
-
Uses of Node in org.openstreetmap.josm.actions
Fields in org.openstreetmap.josm.actions declared as Node Modifier and Type Field Description private NodeCreateCircleAction.PolarNode. nodeprivate NodeUnGlueAction. selectedNodeFields in org.openstreetmap.josm.actions with type parameters of type Node Modifier and Type Field Description private java.util.Set<Node>SelectNonBranchingWaySequences. nodesendpoints of selected waysprivate java.util.Set<Node>SelectNonBranchingWaySequences. outerNodesouter endpoints of selected waysprivate static java.util.Map<Node,EastNorth>OrthogonalizeAction. rememberMovementsRemember movements, so the user can later undo it for certain nodes(package private) java.util.List<Node>SplitWayAction.SegmentToKeepSelectionDialog. selectedNodesprivate java.util.Set<Node>UnGlueAction. selectedNodesjava.util.List<Node>OrthogonalizeAction.WayData. wayNodesThe assigned wayMethods in org.openstreetmap.josm.actions that return Node Modifier and Type Method Description private static NodeUnGlueAction. cloneNode(Node originalNode, java.util.List<Command> cmds)private NodeJoinAreasAction.WayTraverser. getHeadNode()Walking throughJoinAreasAction.WayInPolygonsegments, head node is the current positionprivate NodeJoinAreasAction.WayTraverser. getPrevNode()Node just before head node.private static Node[]AlignInLineAction. nodeFurthestAppart(java.util.List<Node> nodes)Return the two nodes the most distant from the provided list.private static Node[]AlignInLineAction. nodePairFurthestApart(java.util.List<Node> nodes)Return 2 nodes making up the line along which provided nodes must be aligned.static NodeMergeNodesAction. selectTargetLocationNode(java.util.List<Node> candidates)Select the location of the target node after merge.static NodeMergeNodesAction. selectTargetNode(java.util.Collection<Node> candidates)Find which node to merge into (i.e.Methods in org.openstreetmap.josm.actions that return types with arguments of type Node Modifier and Type Method Description private static java.util.List<java.util.List<Node>>JoinAreasAction. buildNodeChunks(Way way, java.util.Collection<Node> splitNodes)Simple chunking version.private java.util.List<Node>UnJoinNodeWayAction. cleanSelectedNodes(java.util.List<Way> selectedWays, java.util.List<Node> selectedNodes)Removes irrelevant nodes from user selection.private static java.util.List<Node>AlignInCircleAction. collectNodesAnticlockwise(java.util.List<Way> ways)Assuming all ways can be joined into polygon, create an ordered list of node.private static java.util.List<Node>AlignInCircleAction. collectNodesWithExternReferrers(java.util.List<Way> ways)Collect all nodes with more than one referrer.private static java.util.Set<Node>SimplifyWayAction. getMultiUseNodes(Way w)Calculate a set of nodes which occurs more than once in the wayjava.util.List<Node>JoinAreasAction.AssembledPolygon. getNodes()private java.util.Collection<Node>CopyCoordinatesAction. getSelectedNodes()private static java.util.List<Node>CombineWayAction. joinWithMultipolygonCode(java.util.Collection<Way> ways)UseMultipolygon.joinWays(Collection)to join ways.private static java.util.List<Node>UnGlueAction. modifyWay(Node originalNode, Way w, java.util.List<Command> cmds, java.util.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 java.util.List<Node>CreateCircleAction. orderNodesByTrafficHand(java.util.List<Node> nodes)Order nodes according to left/right hand traffic.private static java.util.List<Node>CreateCircleAction. orderNodesByWay(java.util.List<Node> nodes, Way way)Order nodes according to way direction.private static java.util.Set<Node>DistributeAction. removeNodesWithoutCoordinates(java.util.Collection<Node> col)Remove nodes without known coordinates from a collection.private static java.util.List<Node>AlignInCircleAction. sortByAngle(java.util.List<Node> nodes)protected static java.util.List<Node>CombineWayAction. tryJoin(java.util.Collection<Way> ways)Methods in org.openstreetmap.josm.actions with parameters of type Node Modifier and Type Method Description static voidAlignInCircleAction. addMoveCommandIfNeeded(Node n, PolarCoor coor, java.util.List<Command> cmds)Add aMoveCommandto move a node to a PolarCoor if there is a significant move.private voidSelectNonBranchingWaySequences. addNodes(Node node)Add a way endpoint to nodes, outerNodesprivate static CommandAlignInLineAction. alignSingleNode(Node node, java.util.List<AlignInLineAction.Line> lines)Align a single node relative to a set of lines #9081private static NodeUnGlueAction. cloneNode(Node originalNode, java.util.List<Command> cmds)intJoinNodeWayAction.NodeDistanceToRefNodeComparator. compare(Node first, Node second)static voidMergeNodesAction. doMergeNodes(OsmDataLayer layer, java.util.Collection<Node> nodes, Node targetLocationNode)Merges the nodes innodesat the specified node's location.private static WaySelectNonBranchingWaySequences. findWay(java.util.Collection<OsmPrimitive> selection, Node node)Finds out if the current selection can be extended.protected static java.util.List<Command>MergeNodesAction. fixParentWays(java.util.Collection<Node> nodesToDelete, Node targetNode)Fixes the parent ways referring to one of the nodes.private static doubleJoinAreasAction.WayTraverser. getAngle(Node n1, Node n2, Node n3)Returns oriented angle (N1N2, N1N3) in range [0; 2*Math.PI[private static java.util.List<AlignInLineAction.Line>AlignInLineAction. getInvolvedLines(Node node, java.util.List<Way> refWays)Get lines useful to do alignment of a single nodeCommandAlignInLineAction.Line. intersectionCommand(Node n, AlignInLineAction.Line other)Intersection of two line.protected static booleanSimplifyWayAction. isRequiredNode(Way way, Node node, java.util.Set<Node> multipleUseNodes)Replies true ifnodeis a required node which can't be removed in order to simplify the way.static CommandMergeNodesAction. mergeNodes(java.util.Collection<Node> nodes, Node targetLocationNode)Merges the nodes innodesat the specified node's location.static CommandMergeNodesAction. mergeNodes(java.util.Collection<Node> nodes, Node targetNode, Node targetLocationNode)Merges the nodes innodesonto one of the nodes.private static java.util.List<Node>UnGlueAction. modifyWay(Node originalNode, Way w, java.util.List<Command> cmds, java.util.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 CommandOrthogonalizeAction. orthogonalize(java.util.List<OrthogonalizeAction.WayData> wayDataList, Node singleNode)Try to orthogonalize the given ways by moving only a single given nodeCommandAlignInLineAction.Line. projectionCommand(Node n)Orthogonal projection of a node N along this line.(package private) static voidUnGlueAction. update(PropertiesMembershipChoiceDialog dialog, Node existingNode, java.util.List<Node> newNodes, java.util.List<Command> cmds)private static voidUnGlueAction. updateMemberships(PropertiesMembershipChoiceDialog.ExistingBothNew memberships, Node originalNode, java.util.List<Node> newNodes, java.util.List<Command> cmds)put all newNodes into the same relation(s) that originalNode is inprivate static voidUnGlueAction. updateProperties(PropertiesMembershipChoiceDialog.ExistingBothNew tags, Node existingNode, java.lang.Iterable<Node> newNodes, java.util.List<Command> cmds)voidUploadSelectionAction.UploadHullBuilder. visit(Node n)Method parameters in org.openstreetmap.josm.actions with type arguments of type Node Modifier and Type Method Description private static CommandAlignInLineAction. alignOnlyNodes(java.util.List<Node> nodes)Align nodes in case 3 or more nodes are selected.private static java.util.List<java.util.List<Node>>JoinAreasAction. buildNodeChunks(Way way, java.util.Collection<Node> splitNodes)Simple chunking version.protected static voidSimplifyWayAction. buildSimplifiedNodeList(java.util.List<Node> wnew, int from, int to, double threshold, java.util.List<Node> simplifiedNodes)Builds the simplified list of nodes for a way segment given by a lower indexfromand an upper indexto.protected static voidCombineWayAction. detectReversedWays(java.util.Collection<Way> ways, java.util.List<Node> path, java.util.List<Way> reversedWays, java.util.List<Way> unreversedWays)private static java.util.Collection<Command>DistributeAction. distributeNodes(java.util.Collection<Node> nodes)Distribute nodes when only nodes are selected.static voidMergeNodesAction. doMergeNodes(OsmDataLayer layer, java.util.Collection<Node> nodes, Node targetLocationNode)Merges the nodes innodesat the specified node's location.static voidSplitWayAction. doSplitWayShowSegmentSelection(Way splitWay, java.util.List<Node> splitNodes, java.util.List<OsmPrimitive> selection)Perform way splitting after presenting the user with a choice which way segment history should be preserved (in expert mode)protected static java.util.List<Command>MergeNodesAction. fixParentWays(java.util.Collection<Node> nodesToDelete, Node targetNode)Fixes the parent ways referring to one of the nodes.private static booleanUnGlueAction. isRelationAffected(Relation r, java.util.Set<Node> affectedNodes, java.util.Collection<Way> ways)protected static booleanSimplifyWayAction. isRequiredNode(Way way, Node node, java.util.Set<Node> multipleUseNodes)Replies true ifnodeis a required node which can't be removed in order to simplify the way.private WayJoinAreasAction. keepOlder(Way way, java.util.Map<Node,Way> oldestWayMap, java.util.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.static CommandMergeNodesAction. mergeNodes(java.util.Collection<Node> nodes, Node targetLocationNode)Merges the nodes innodesat the specified node's location.static CommandMergeNodesAction. mergeNodes(java.util.Collection<Node> nodes, Node targetNode, Node targetLocationNode)Merges the nodes innodesonto one of the nodes.static CommandAlignInCircleAction. moveNodesCommand(java.util.List<Node> nodes, java.util.Set<Node> fixNodes, EastNorth center, double radius)Move each node of the list of nodes to be arranged in a circle.static CommandAlignInCircleAction. moveNodesCommand(java.util.List<Node> nodes, java.util.Set<Node> fixNodes, EastNorth center, double radius)Move each node of the list of nodes to be arranged in a circle.private static Node[]AlignInLineAction. nodeFurthestAppart(java.util.List<Node> nodes)Return the two nodes the most distant from the provided list.private static Node[]AlignInLineAction. nodePairFurthestApart(java.util.List<Node> nodes)Return 2 nodes making up the line along which provided nodes must be aligned.private static java.util.List<Node>CreateCircleAction. orderNodesByTrafficHand(java.util.List<Node> nodes)Order nodes according to left/right hand traffic.private static java.util.List<Node>CreateCircleAction. orderNodesByWay(java.util.List<Node> nodes, Way way)Order nodes according to way direction.private static java.util.Set<Node>DistributeAction. removeNodesWithoutCoordinates(java.util.Collection<Node> col)Remove nodes without known coordinates from a collection.static NodeMergeNodesAction. selectTargetLocationNode(java.util.List<Node> candidates)Select the location of the target node after merge.static NodeMergeNodesAction. selectTargetNode(java.util.Collection<Node> candidates)Find which node to merge into (i.e.private static java.util.List<Node>AlignInCircleAction. sortByAngle(java.util.List<Node> nodes)private java.util.List<Way>JoinAreasAction. splitWayOnNodes(Way way, java.util.Set<Node> nodes, java.util.Map<Node,Way> oldestWayMap)This is a method that splits way into smaller parts, using the prepared nodes list as split points.private java.util.List<Way>JoinAreasAction. splitWayOnNodes(Way way, java.util.Set<Node> nodes, java.util.Map<Node,Way> oldestWayMap)This is a method that splits way into smaller parts, using the prepared nodes list as split points.(package private) static voidUnGlueAction. update(PropertiesMembershipChoiceDialog dialog, Node existingNode, java.util.List<Node> newNodes, java.util.List<Command> cmds)private static voidUnGlueAction. updateMemberships(PropertiesMembershipChoiceDialog.ExistingBothNew memberships, Node originalNode, java.util.List<Node> newNodes, java.util.List<Command> cmds)put all newNodes into the same relation(s) that originalNode is inprivate static voidUnGlueAction. updateProperties(PropertiesMembershipChoiceDialog.ExistingBothNew tags, Node existingNode, java.lang.Iterable<Node> newNodes, java.util.List<Command> cmds)private static booleanAlignInCircleAction. validateGeometry(java.util.List<Node> nodes)Constructors in org.openstreetmap.josm.actions with parameters of type Node Constructor Description Line(Node first, Node last)Init a line by 2 nodes.NodeDistanceToRefNodeComparator(Node referenceNode, Node referenceNode2, boolean projectFirst)PolarNode(EastNorth center, Node n)Constructor parameters in org.openstreetmap.josm.actions with type arguments of type Node Constructor Description WayData(java.util.List<Node> wayNodes) -
Uses of Node in org.openstreetmap.josm.actions.mapmode
Fields in org.openstreetmap.josm.actions.mapmode declared as Node Modifier and Type Field Description private NodeImproveWayAccuracyAction. candidateNodeprivate NodeDrawAction. currentBaseNodeprivate NodeDrawAction. lastUsedNodeprivate NodeDrawAction. mouseOnExistingNodeprivate NodeDeleteAction.DeleteParameters. nearestNodeprivate NodeDrawAction. previousNodeprivate NodeExtrudeAction. selectedNodeprivate NodeSelectAction.VirtualManager. virtualNodeFields in org.openstreetmap.josm.actions.mapmode with type parameters of type Node Modifier and Type Field Description private java.util.List<Node>ExtrudeAction. movingNodeListCollection of nodes that is movedprivate java.util.List<Node>ParallelWays. sortedNodesprivate java.util.List<Node>SplitMode.SplitWayActionConcrete. splitNodesMethods in org.openstreetmap.josm.actions.mapmode that return Node Modifier and Type Method Description private static NodeParallelWays. copyNode(Node source, boolean copyTags)static NodeImproveWayAccuracyHelper. findCandidateNode(MapView mv, Way w, java.awt.Point p)Returns the nearest node to cursor.private NodeDrawAction. findNodeToContinueFrom(Node selectedNode, Way selectedWay)Finds a node to continue drawing from.private NodeSelectAction. findNodeToMergeTo(java.awt.Point p)Tries to find a node to merge to when in move-merge mode for the current mouse position.NodeDrawAction. getCurrentBaseNode()Replies the current base node, after having checked it is still usable (see #11105).private NodeExtrudeAction. getNextNode(int index)Gets a node from selected way after given index.private NodeExtrudeAction. getPreviousNode(int index)Gets a node from selected way before given index.Methods in org.openstreetmap.josm.actions.mapmode with parameters of type Node Modifier and Type Method Description private static voidDrawAction. adjustNode(java.util.Collection<Pair<Node,Node>> segs, Node n)Adjusts the position of a node to lie on a segment (or a segment intersection).private static voidDrawAction. adjustNodeDefault(java.util.Collection<Pair<Node,Node>> segs, Node n)private static voidDrawAction. adjustNodeTwoSegments(java.util.Collection<Pair<Node,Node>> segs, Node n)private voidDrawAction. continueWayFromNode(Way way, Node node)if one of the ends ofwayis givennode, then set currentBaseNode = node and previousNode = adjacent node of wayprivate static NodeParallelWays. copyNode(Node source, boolean copyTags)private static voidParallelWays. copyNodeInMap(java.util.Map<Node,Node> splitNodeMap, Node node, boolean copyTags)private javax.swing.JPopupMenuSplitMode. createPopup(Node n, java.util.Collection<Way> applicableWays)Create a new split way selection popupprivate static booleanImproveWayAccuracyHelper. ensureCandidateIsNotBehindSegments(java.lang.Iterable<Pair<Node,Node>> wpps, Node n, EastNorth pEN, EastNorth nEN)Check to see if a candidate node is underneath a way segmentprivate NodeDrawAction. findNodeToContinueFrom(Node selectedNode, Way selectedWay)Finds a node to continue drawing from.private static java.util.List<Way>SplitMode. getApplicableWays(Node n, java.util.Collection<Way> preferredWays)Get a list of potential ways to be split for a given nodeprivate static java.lang.StringDrawAction. getTitle(boolean newNode, Node n, java.util.Collection<OsmPrimitive> newSelection, java.util.Map<Way,java.util.List<Node>> reuseWays, boolean extendedWay)static WayDrawAction. getWayForNode(Node n)Replies the parent way of a node, if it is the end of exactly one usable way.private static booleanExtrudeAction. hasNodeOtherWays(Node node, Way myWay)This method tests ifnodehas other ways apart from the given one.private voidDrawAction. insertNodeIntoAllNearbySegments(java.util.List<WaySegment> wss, Node n, java.util.Collection<OsmPrimitive> newSelection, java.util.Collection<Command> cmds, java.util.Map<Way,java.util.List<Node>> reuseWays)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.voidSelectAction. mergeNodes(OsmDataLayer layer, java.util.Collection<Node> nodes, Node targetLocationNode)Merge nodes usingMergeNodesAction.private voidDrawAction. tryToMoveNodeOnIntersection(java.util.List<WaySegment> wss, Node n)Method parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type Node Modifier and Type Method Description private static voidDrawAction. adjustNode(java.util.Collection<Pair<Node,Node>> segs, Node n)Adjusts the position of a node to lie on a segment (or a segment intersection).private static voidDrawAction. adjustNode(java.util.Collection<Pair<Node,Node>> segs, Node n)Adjusts the position of a node to lie on a segment (or a segment intersection).private static voidDrawAction. adjustNodeDefault(java.util.Collection<Pair<Node,Node>> segs, Node n)private static voidDrawAction. adjustNodeDefault(java.util.Collection<Pair<Node,Node>> segs, Node n)private static voidDrawAction. adjustNodeTwoSegments(java.util.Collection<Pair<Node,Node>> segs, Node n)private static voidDrawAction. adjustNodeTwoSegments(java.util.Collection<Pair<Node,Node>> segs, Node n)private static voidParallelWays. copyNodeInMap(java.util.Map<Node,Node> splitNodeMap, Node node, boolean copyTags)private static voidParallelWays. copyNodeInMap(java.util.Map<Node,Node> splitNodeMap, Node node, boolean copyTags)private static booleanSelectAction. doesImpactStatusLine(java.util.Collection<Node> affectedNodes, java.util.Collection<Way> selectedWays)private static booleanImproveWayAccuracyHelper. ensureCandidateIsNotBehindSegments(java.lang.Iterable<Pair<Node,Node>> wpps, Node n, EastNorth pEN, EastNorth nEN)Check to see if a candidate node is underneath a way segmentprivate static booleanImproveWayAccuracyHelper. ensureCandidateIsNotBehindSegments(java.lang.Iterable<Pair<Node,Node>> wpps, Node n, EastNorth pEN, EastNorth nEN)Check to see if a candidate node is underneath a way segmentprivate static java.lang.StringDrawAction. getTitle(boolean newNode, Node n, java.util.Collection<OsmPrimitive> newSelection, java.util.Map<Way,java.util.List<Node>> reuseWays, boolean extendedWay)private voidDrawAction. insertNodeIntoAllNearbySegments(java.util.List<WaySegment> wss, Node n, java.util.Collection<OsmPrimitive> newSelection, java.util.Collection<Command> cmds, java.util.Map<Way,java.util.List<Node>> reuseWays)private voidExtrudeAction. joinNodesIfCollapsed(java.util.List<Node> changedNodes)voidSelectAction. mergeNodes(OsmDataLayer layer, java.util.Collection<Node> nodes, Node targetLocationNode)Merge nodes usingMergeNodesAction.Constructor parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type Node Constructor Description SplitWayActionConcrete(Way splitWay, java.util.List<Node> splitNodes, java.util.List<OsmPrimitive> selection)Construct an action to split waysplitWayat nodessplitNodes -
Uses of Node in org.openstreetmap.josm.command
Classes in org.openstreetmap.josm.command with type parameters of type Node Modifier and Type Class Description classAbstractNodesCommand<C extends java.util.Collection<Node>>Abstracts superclass ofChangeNodesCommand/RemoveNodesCommand.Fields in org.openstreetmap.josm.command with type parameters of type Node Modifier and Type Field Description private java.util.Collection<Node>MoveCommand. nodesThe objects that should be moved.protected java.util.Collection<Node>TransformNodesCommand. nodesThe nodes to transform.protected java.util.Map<Node,Command.OldNodeState>TransformNodesCommand. oldStatesList of all old states of the nodes.Methods in org.openstreetmap.josm.command that return types with arguments of type Node Modifier and Type Method Description static java.util.List<java.util.List<Node>>SplitWayCommand. buildSplitChunks(Way wayToSplit, java.util.List<Node> splitPoints)Splits the nodes ofwayToSplitinto a list of node sequences which are separated at the nodes insplitPoints.protected static java.util.Collection<Node>DeleteCommand. computeNodesToDelete(java.util.Collection<OsmPrimitive> primitivesToDelete)Replies the collection of nodes referred to by primitives inprimitivesToDeletewhich can be deleted too.java.util.Collection<Node>MoveCommand. getParticipatingPrimitives()java.util.Collection<Node>TransformNodesCommand. getTransformedNodes()Get the nodes with the current transformation applied.Methods in org.openstreetmap.josm.command with parameters of type Node Modifier and Type Method Description voidCommand.CloneVisitor. visit(Node n)Method parameters in org.openstreetmap.josm.command with type arguments of type Node Modifier and Type Method Description static java.util.List<java.util.List<Node>>SplitWayCommand. buildSplitChunks(Way wayToSplit, java.util.List<Node> splitPoints)Splits the nodes ofwayToSplitinto a list of node sequences which are separated at the nodes insplitPoints.static java.util.List<Way>SplitWayCommand. createNewWaysFromChunks(Way way, java.lang.Iterable<java.util.List<Node>> wayChunks)Creates new way objects for the way chunks and transfers the keys from the original way.doubleMoveCommand. getDistance(java.util.function.Predicate<Node> predicate)Computes the move distance for one node matching the specified predicatestatic SplitWayCommandSplitWayCommand. split(Way way, java.util.List<Node> atNodes, java.util.Collection<? extends OsmPrimitive> selection)Splits the waywayat the nodes inatNodesand replies the result of this process in an instance ofSplitWayCommand.static SplitWayCommandSplitWayCommand. splitWay(Way way, java.util.List<java.util.List<Node>> wayChunks, java.util.Collection<? extends OsmPrimitive> selection)Splits the waywayinto chunks ofwayChunksand replies the result of this process in an instance ofSplitWayCommand.static SplitWayCommandSplitWayCommand. splitWay(Way way, java.util.List<java.util.List<Node>> wayChunks, java.util.Collection<? extends OsmPrimitive> selection, SplitWayCommand.Strategy splitStrategy)Splits the waywayinto chunks ofwayChunksand replies the result of this process in an instance ofSplitWayCommand.static java.util.Optional<SplitWayCommand>SplitWayCommand. splitWay(Way way, java.util.List<java.util.List<Node>> wayChunks, java.util.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, java.util.Collection<Way> newWays, Way way, java.util.List<Node> changedWayNodes)Constructors in org.openstreetmap.josm.command with parameters of type Node Constructor Description MoveCommand(Node node, LatLon position)Constructs a newMoveCommandto move a node.OldNodeState(Node node)Constructs a newOldNodeStatefor the given node.Constructor parameters in org.openstreetmap.josm.command with type arguments of type Node Constructor Description ChangeNodesCommand(DataSet ds, Way way, java.util.List<Node> newNodes)Constructs a newChangeNodesCommand.ChangeNodesCommand(Way way, java.util.List<Node> newNodes)Constructs a newChangeNodesCommand.RemoveNodesCommand(DataSet ds, Way way, java.util.Set<Node> rmNodes)Constructs a newRemoveNodesCommand.RemoveNodesCommand(Way way, java.util.Set<Node> rmNodes)Constructs a newRemoveNodesCommand. -
Uses of Node in org.openstreetmap.josm.command.conflict
Fields in org.openstreetmap.josm.command.conflict with type parameters of type Node Modifier and Type Field Description private java.util.List<Node>WayNodesConflictResolverCommand. mergedNodeListthe list of merged nodes.Constructor parameters in org.openstreetmap.josm.command.conflict with type arguments of type Node Constructor Description WayNodesConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict, java.util.List<Node> mergedNodeList)Constructs a newWayNodesConflictResolverCommand. -
Uses of Node in org.openstreetmap.josm.data.algorithms
Fields in org.openstreetmap.josm.data.algorithms with type parameters of type Node Modifier and Type Field Description private java.util.Map<Node,java.util.List<Node>>Tarjan. graphMapUsed to store the graph data as a map.private java.util.Map<Node,java.util.List<Node>>Tarjan. graphMapUsed to store the graph data as a map.private java.util.Collection<java.util.List<Node>>Tarjan. sccUsed to store strongly connected components.private java.util.Deque<Node>Tarjan. stackUsed on algorithm runtime to keep track discovery progress.Methods in org.openstreetmap.josm.data.algorithms that return types with arguments of type Node Modifier and Type Method Description java.util.Map<Node,java.util.List<Node>>Tarjan. getGraphMap()Returns the graph data as a map.java.util.Map<Node,java.util.List<Node>>Tarjan. getGraphMap()Returns the graph data as a map.java.util.Collection<java.util.List<Node>>Tarjan. getSCC()Returns the strongly connected components in the current graph.private java.util.List<Node>Tarjan. getSuccessors(Node node)Returns the next direct successors from the graph of the given node.Methods in org.openstreetmap.josm.data.algorithms with parameters of type Node Modifier and Type Method Description private java.util.List<Node>Tarjan. getSuccessors(Node node)Returns the next direct successors from the graph of the given node.private voidTarjan. strongConnect(Node u0)Calculates strongly connected components available from the given node, in an iterative fashion. -
Uses of Node in org.openstreetmap.josm.data.osm
Fields in org.openstreetmap.josm.data.osm declared as Node Modifier and Type Field Description private NodeNodePair. aprivate NodeNodePair. bprivate static Node[]Way. EMPTY_NODESprivate Node[]Way. nodesAll way nodes in this wayFields in org.openstreetmap.josm.data.osm with type parameters of type Node Modifier and Type Field Description java.util.List<Node>MultipolygonBuilder.JoinedPolygon. nodesthe nodes of the polygon, first node is not duplicated as last node.private java.util.Map<Node,java.util.List<NodePair>>NodeGraph. predecessorsprivate QuadBucketPrimitiveStore<Node,Way,Relation>DataSet. storeprivate java.util.Map<Node,java.util.List<NodePair>>NodeGraph. successorsMethods in org.openstreetmap.josm.data.osm that return Node Modifier and Type Method Description NodeWay. firstNode()NodeWay. firstNode(boolean respectOneway)Replies the first node of this way, respecting or not its oneway state.NodeNodePair. getA()Replies the first node.NodeNodePair. getB()Replies the second nodeNodeRelationMember. getNode()Returns the relation member as a node.NodeWay. getNode(int index)NodeWay. lastNode()NodeWay. lastNode(boolean respectOneway)Replies the last node of this way, respecting or not its oneway state.private static NodeOsmUtils. newNode(LatLon around)Methods in org.openstreetmap.josm.data.osm that return types with arguments of type Node Modifier and Type Method Description protected java.util.List<Node>NodeGraph. buildPathFromNodePairs(java.util.Deque<NodePair> path)java.util.List<Node>NodeGraph. buildSpanningPath()Tries to find a path through the graph which visits each edge (i.e.protected java.util.List<Node>NodeGraph. buildSpanningPath(Node startNode)Tries to find a spanning path starting from nodestartNode.java.util.List<Node>NodeGraph. buildSpanningPathNoRemove()Tries to find a path through the graph which visits each edge (i.e.java.util.List<Node>Way. calculateRemoveNodes(java.util.Set<? extends Node> selection)Calculate the remaining nodes after a removal of the given set ofnodesfrom this way.java.util.Map<Node,java.util.List<Node>>NodeGraph. createMap()Constructs a lookup table from the existing edges in the graph to enable efficient querying.java.util.Map<Node,java.util.List<Node>>NodeGraph. createMap()Constructs a lookup table from the existing edges in the graph to enable efficient querying.java.util.List<Pair<java.lang.Double,Node>>Way. getAngles()Returns angles of vertices.private java.util.Set<Node>NodeGraph. getMostFrequentVisitedNodesFirst()Sort the nodes by number of appearances in the edges.java.util.Set<Node>Way. getNeighbours(Node node)Return nodes adjacent tonodejava.util.List<Pair<Node,Node>>Way. getNodePairs(boolean sort)Replies the orderedListof chunks of this way.java.util.List<Pair<Node,Node>>Way. getNodePairs(boolean sort)Replies the orderedListof chunks of this way.java.util.Collection<Node>DataSet. getNodes()java.util.List<Node>MultipolygonBuilder.JoinedPolygon. getNodes()Builds a list of nodes for this polygon.java.util.Collection<Node>NodeGraph. getNodes()Return the graph's nodes.java.util.List<Node>Way. getNodes()protected java.util.Set<Node>NodeGraph. getTerminalNodes()Return the terminal nodes of the graph.private static java.util.List<Node>Way. removeDouble(java.util.List<Node> nodes)Prevent directly following identical nodes in ways.java.util.List<Node>DataSet. searchNodes(BBox bbox)Methods in org.openstreetmap.josm.data.osm with parameters of type Node Modifier and Type Method Description voidWay. addNode(int offs, Node n)Adds a node at position offs.voidWay. addNode(Node n)Adds a node to the end of the list of nodes.protected java.util.List<Node>NodeGraph. buildSpanningPath(Node startNode)Tries to find a spanning path starting from nodestartNode.intNodePositionComparator. compare(Node n1, Node n2)booleanNodePair. contains(Node n)Determines if this pair contains the given node.booleanDataSet. containsNode(Node n)Determines if the given node can be retrieved in the data set through its bounding box.booleanWay. containsNode(Node node)Replies true if this way contains the nodenode, false otherwise.(package private) voidDataSet. fireNodeMoved(Node node, LatLon newCoor, EastNorth eastNorth)static WaySegmentWaySegment. forNodePair(Way way, Node first, Node second)Determines and returns the way segment for the given way and node pair.private java.util.List<NodePair>NodeGraph. getConnectedPairs(Node node)java.util.Set<Node>Way. getNeighbours(Node node)Return nodes adjacent tonodeprotected java.util.List<NodePair>NodeGraph. getOutboundPairs(Node node)private booleanNode. hasEqualCoordinates(Node other)protected booleanNodeGraph. isTerminalNode(Node n)Replies true ifnis a terminal node of the graph.voidWay. removeNode(Node n)Removes the givenNodefrom this way.java.util.Set<Way>DataSet. unlinkNodeFromWays(Node node)Removes all references from ways in this dataset to a particular node.Method parameters in org.openstreetmap.josm.data.osm with type arguments of type Node Modifier and Type Method Description java.util.List<Node>Way. calculateRemoveNodes(java.util.Set<? extends Node> selection)Calculate the remaining nodes after a removal of the given set ofnodesfrom this way.java.util.Map<OsmPrimitive,OsmPrimitive>DataSet. clonePrimitives(java.lang.Iterable<Node> nodes, java.lang.Iterable<Way> ways, java.lang.Iterable<Relation> relations)Clones the specified primitives into this data set.private static java.util.List<Node>Way. removeDouble(java.util.List<Node> nodes)Prevent directly following identical nodes in ways.voidWay. removeNodes(java.util.Set<? extends Node> selection)Removes the given set ofnodesfrom this way.voidWay. setNodes(java.util.List<Node> nodes)Constructors in org.openstreetmap.josm.data.osm with parameters of type Node Constructor Description Node(Node clone)Constructs an identical clone of the argument (including the id).Node(Node clone, boolean clearMetadata)Constructs an identical clone of the argument.NodePair(Node a, Node b)Constructs a newNodePair.Constructor parameters in org.openstreetmap.josm.data.osm with type arguments of type Node Constructor Description NodePair(Pair<Node,Node> pair)Constructs a newNodePair.NodePair(Pair<Node,Node> pair)Constructs a newNodePair. -
Uses of Node in org.openstreetmap.josm.data.osm.event
Fields in org.openstreetmap.josm.data.osm.event declared as Node Modifier and Type Field Description private NodeNodeMovedEvent. nodeMethods in org.openstreetmap.josm.data.osm.event that return Node Modifier and Type Method Description NodeNodeMovedEvent. getNode()Returns the node affected by the move.Constructors in org.openstreetmap.josm.data.osm.event with parameters of type Node Constructor Description NodeMovedEvent(DataSet dataSet, Node node)Constructs a newNodeMovedEvent. -
Uses of Node in org.openstreetmap.josm.data.osm.history
Constructors in org.openstreetmap.josm.data.osm.history with parameters of type Node Constructor Description HistoryNode(Node n)Constructs a newHistoryNodefrom an existingNode. -
Uses of Node in org.openstreetmap.josm.data.osm.visitor
Fields in org.openstreetmap.josm.data.osm.visitor with type parameters of type Node Modifier and Type Field Description java.util.Collection<Node>AllNodesVisitor. nodesThe resulting nodes collected so far.Methods in org.openstreetmap.josm.data.osm.visitor that return types with arguments of type Node Modifier and Type Method Description static java.util.Collection<Node>AllNodesVisitor. getAllNodes(java.util.Collection<? extends OsmPrimitive> osms)Replies all nodes contained by the given primitivesMethods in org.openstreetmap.josm.data.osm.visitor with parameters of type Node Modifier and Type Method Description protected voidMergeSourceBuildingVisitor. rememberNode(Node n)Remembers a node in the "hull"voidAllNodesVisitor. visit(Node n)Nodes have only itself as nodes.voidBoundingXYVisitor. visit(Node n)voidMergeSourceBuildingVisitor. visit(Node n)voidOsmPrimitiveVisitor. visit(Node n)Visiting call for points. -
Uses of Node in org.openstreetmap.josm.data.osm.visitor.paint.relations
Fields in org.openstreetmap.josm.data.osm.visitor.paint.relations with type parameters of type Node Modifier and Type Field Description protected java.util.List<Node>Multipolygon.JoinedWay. nodesprivate java.util.List<Node>Multipolygon. openEndsMethods in org.openstreetmap.josm.data.osm.visitor.paint.relations that return Node Modifier and Type Method Description NodeMultipolygon.JoinedWay. getFirstNode()Returns the first node.NodeMultipolygon.JoinedWay. getLastNode()Returns the last node.Methods in org.openstreetmap.josm.data.osm.visitor.paint.relations that return types with arguments of type Node Modifier and Type Method Description java.util.List<Node>Multipolygon.JoinedWay. getNodes()Replies the list of nodes.java.util.List<Node>Multipolygon. getOpenEnds()Returns the start and end node of non-closed rings.Constructor parameters in org.openstreetmap.josm.data.osm.visitor.paint.relations with type arguments of type Node Constructor Description JoinedWay(java.util.List<Node> nodes, java.util.Collection<java.lang.Long> wayIds, boolean selected)Constructs a newJoinedWay.PolyData(java.util.List<Node> nodes, boolean selected, java.util.Collection<java.lang.Long> wayIds) -
Uses of Node in org.openstreetmap.josm.data.validation
Methods in org.openstreetmap.josm.data.validation that return types with arguments of type Node Modifier and Type Method Description private static java.util.List<java.util.List<Node>>TestError. getHiliteNodesForArea(java.awt.geom.Area area)Calculate list of node pairs describing the area.Methods in org.openstreetmap.josm.data.validation with parameters of type Node Modifier and Type Method Description voidTest.TagTest. visit(Node n)voidTest. visit(Node n)Method parameters in org.openstreetmap.josm.data.validation with type arguments of type Node Modifier and Type Method Description TestError.BuilderTestError.Builder. highlightNodePairs(java.util.Collection<java.util.List<Node>> highlighted)Sets the node pairs to highlight when selecting this error.voidValidatorVisitor. visit(java.util.List<Node> nodes)Visit a list of nodes that are part of the error -
Uses of Node in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests declared as Node Modifier and Type Field Description private NodeUnconnectedWays.MyWaySegment. n1private NodeUnconnectedWays.MyWaySegment. n2Fields in org.openstreetmap.josm.data.validation.tests with type parameters of type Node Modifier and Type Field Description private java.util.Set<Node>PowerLines. badConnectionsprivate java.util.Set<Node>UnconnectedWays. endnodesprivate java.util.Set<Node>UnconnectedWays. middlenodesprivate java.util.Set<Node>PowerLines. missingTagsprivate MultiMap<Pair<Node,Node>,WaySegment>OverlappingWays. nodePairsBag of all way segmentsprivate MultiMap<Pair<Node,Node>,WaySegment>OverlappingWays. nodePairsBag of all way segmentsprivate java.util.Set<Node>UnconnectedWays. nodesToTestprivate java.util.Set<Node>UnconnectedWays. othernodesprivate QuadBuckets<Node>UnconnectedWays. searchNodesprivate java.util.List<java.util.Set<Node>>PowerLines. segmentRefDiscontinuitiesprivate java.util.Set<Node>MultipolygonTest.PolygonLevelFinder. sharedNodesMethods in org.openstreetmap.josm.data.validation.tests that return Node Modifier and Type Method Description private NodeMultipolygonTest.PolygonLevelFinder. getNonIntersectingNode(Multipolygon.PolyData pd1, Multipolygon.PolyData pd2)Find node of pd2 which is not an intersection node with pd1.Methods in org.openstreetmap.josm.data.validation.tests that return types with arguments of type Node Modifier and Type Method Description protected java.util.Map<Node,UnconnectedWays.MyWaySegment>UnconnectedWays. getHighwayEndNodesNearOtherHighway()protected java.util.Map<Node,UnconnectedWays.MyWaySegment>UnconnectedWays. getWayEndNodesNearOtherWay()protected java.util.Map<Node,UnconnectedWays.MyWaySegment>UnconnectedWays. getWayNodesNearOtherWay()(package private) java.util.Collection<Node>UnconnectedWays.MyWaySegment. nearbyNodes(double dist)We know that any point near the line segment must be at least as close as the other end of the line, plus a little fudge for the distance away (dist)Methods in org.openstreetmap.josm.data.validation.tests with parameters of type Node Modifier and Type Method Description private voidCoastlines. addError(int errCode, Way w, java.util.Collection<Way> otherWays, Node n)Add error if not already doneprivate voidUnconnectedWays. addIfNewOrCloser(java.util.Map<Node,UnconnectedWays.MyWaySegment> map, Node node, UnconnectedWays.MyWaySegment ws)private voidUnconnectedWays. addNode(Node n, java.util.Set<Node> s)private voidWayConnectedToArea. addPossibleError(Way w, Node wayNode, OsmPrimitive p, OsmPrimitive area)private EastNorthUnconnectedWays.MyWaySegment. calcClosest(Node n)private static doublePowerLines. calculateIntersectingLen(Node ref, java.util.Set<ILatLon> crossingNodes)The summarized length (in metres) of a way where a power line hangs over a water area.private voidSharpAngles. checkAngle(Node node1, Node node2, Node node3, int i, Way way, boolean last)private static booleanMultipolygonTest. checkIfNodeIsInsidePolygon(Node n, Multipolygon.PolyData p)Check if a node is inside the polygon according to the insideness rules of Shape.private voidCoastlines. checkIfReversed(Way w, Way other, Node n1)Check if a reversed way would fit, if yes, add fixable "reversed" error, "unordered" elseprivate static booleanHighways. checkLayer(Node connection, java.util.List<Way> ways)Check if there are at least two neighbouring nodes on the given ways.private voidDirectionNodes. checkParents(Node n, java.lang.String tag)(package private) doubleUnconnectedWays.MyWaySegment. getDist(Node n)protected WayUnconnectedWays. getWantedParentWay(Node endnode)An unconnected node might have multiple parent ways, e.g.private voidHighways. handleCarWay(Node n, Way w)private voidHighways. handleCyclistWay(Node n, Way w)private voidHighways. handlePedestrianWay(Node n, Way w)protected booleanUnconnectedWays. ignoreUnconnectedEndNode(Node n)Check if unconnected end node should be ignored.protected booleanUnconnectedWays.UnconnectedHighways. ignoreUnconnectedEndNode(Node n)protected booleanUnconnectedWays.UnconnectedPower. ignoreUnconnectedEndNode(Node n)protected booleanUnconnectedWays.UnconnectedRailways. ignoreUnconnectedEndNode(Node n)(package private) booleanUnconnectedWays.MyWaySegment. isConnectedTo(Node startNode)Check if the given node is connected to this segment using a reasonable short way.private booleanUnconnectedWays.MyWaySegment. isConnectedTo(Node node, java.util.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.protected booleanPowerLines. isInPowerStation(Node n)Checks if the given node is inside a power station.protected static booleanPowerLines. isPowerInfrastructure(Node n)Determines if the specified node denotes a power infrastructure allowed on a power line.protected static booleanPowerLines. isPowerTower(Node n)Determines if the specified node denotes a power support feature.private booleanUnconnectedWays.MyWaySegment. nearby(Node n, double dist)private booleanUnconnectedWays.MyWaySegment. obstacleBetween(Node endnode)private voidSharpAngles. processSharpAngleForErrorCreation(double angle, int i, Way way, boolean last, Node pointNode)private voidHighways. testDifferentLayers(Node connection)See #9304: Find Highways connected to bridges or tunnels at the wrong place.private voidWayConnectedToArea. testForError(Way w, Node wayNode, OsmPrimitive p)private voidHighways. testMissingPedestrianCrossing(Node n)voidAddresses. visit(Node n)voidBarriersEntrances. visit(Node n)voidDirectionNodes. visit(Node n)voidDuplicateNode. visit(Node n)voidHighways. visit(Node n)voidLongSegment. visit(Node n)voidPowerLines. visit(Node n)voidUnconnectedWays. visit(Node n)voidUntaggedNode. visit(Node n)Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type Node Modifier and Type Method Description protected voidUnconnectedWays. addErrors(Severity severity, java.util.Map<Node,UnconnectedWays.MyWaySegment> errorMap, java.lang.String message)private voidUnconnectedWays. addIfNewOrCloser(java.util.Map<Node,UnconnectedWays.MyWaySegment> map, Node node, UnconnectedWays.MyWaySegment ws)private voidUnconnectedWays. addNode(Node n, java.util.Set<Node> s)java.util.List<TestError>DuplicateNode. buildTestErrors(Test parentTest, java.util.List<Node> nodes)Returns the list of "duplicate nodes" errors for the given selection of node and parent testprivate voidMultipolygonTest. checkOrSetRoles(Relation r, java.util.List<Multipolygon.PolyData> allPolygons, java.util.Map<java.lang.Long,RelationMember> wayMap, java.util.Set<Node> sharedNodes)Calculate the nesting levels of the polygon rings and check if calculated role matchesprivate static MultipolygonTest.ExtPolygonIntersectionMultipolygonTest. checkOverlapAtSharedNodes(java.util.Set<Node> shared, Multipolygon.PolyData pd1, Multipolygon.PolyData pd2)private voidMultipolygonTest. checkPolygonsForSharedNodes(Relation r, Multipolygon.PolyData pd1, Multipolygon.PolyData pd2, java.util.Set<Node> allSharedNodes)private static java.util.Collection<WaySegment>CycleDetector. createSegments(java.util.Map<Node,java.util.List<Node>> graphMap, java.util.Collection<Node> nodes)Creates WaySegments from Nodes for the error highlight function.private static java.util.Collection<WaySegment>CycleDetector. createSegments(java.util.Map<Node,java.util.List<Node>> graphMap, java.util.Collection<Node> nodes)Creates WaySegments from Nodes for the error highlight function.private static java.util.Collection<WaySegment>CycleDetector. createSegments(java.util.Map<Node,java.util.List<Node>> graphMap, java.util.Collection<Node> nodes)Creates WaySegments from Nodes for the error highlight function.(package private) static booleanPowerLines. detectDiscontinuity(Way way, java.util.Set<OsmPrimitive> nRefDiscontinuities, java.util.List<java.util.Set<Node>> sRefDiscontinuities)Detects ref=* numbering discontinuities in the given way.private voidUnconnectedWays. fillSearchNodes(java.util.Collection<Node> nodes)private static voidMultipolygonTest. findIntersectionNodes(Relation r, java.util.Set<Node> sharedNodes, java.util.Set<Way> intersectionWays)Detect intersections of multipolygon ways at nodes.private booleanUnconnectedWays.MyWaySegment. isConnectedTo(Node node, java.util.Set<Node> visited, double len, Way parent)Check if the given node is connected to this segment using a reasonable short way.Constructors in org.openstreetmap.josm.data.validation.tests with parameters of type Node Constructor Description MyWaySegment(Way w, Node n1, Node n2, boolean concersArea)Constructor parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type Node Constructor Description PolygonLevelFinder(java.util.Set<Node> sharedNodes) -
Uses of Node in org.openstreetmap.josm.data.validation.util
Methods in org.openstreetmap.josm.data.validation.util with parameters of type Node Modifier and Type Method Description static java.util.List<java.awt.geom.Point2D>ValUtil. getSegmentCells(Node n1, Node n2, double gridDetail)Returns the coordinates of all cells in a grid that a line between 2 nodes intersects with.voidAggregatePrimitivesVisitor. visit(Node n)voidNameVisitor. visit(Node n)If the node has a name-key or id-key, this is displayed. -
Uses of Node in org.openstreetmap.josm.gui
Methods in org.openstreetmap.josm.gui that return Node Modifier and Type Method Description NodeNavigatableComponent. getNearestNode(java.awt.Point p, java.util.function.Predicate<OsmPrimitive> predicate)Convenience method toNavigatableComponent.getNearestNode(Point, Predicate, boolean).NodeNavigatableComponent. getNearestNode(java.awt.Point p, java.util.function.Predicate<OsmPrimitive> predicate, boolean useSelected)The *result* depends on the current map selection state IF use_selected is true.NodeNavigatableComponent. getNearestNode(java.awt.Point p, java.util.function.Predicate<OsmPrimitive> predicate, boolean useSelected, java.util.Collection<OsmPrimitive> preferredRefs)The *result* depends on the current map selection state IF use_selected is trueMethods in org.openstreetmap.josm.gui that return types with arguments of type Node Modifier and Type Method Description java.util.List<Node>NavigatableComponent. getNearestNodes(java.awt.Point p, java.util.Collection<Node> ignore, java.util.function.Predicate<OsmPrimitive> predicate)The *result* does not depend on the current map selection state, neither does the result *order*.java.util.List<Node>NavigatableComponent. getNearestNodes(java.awt.Point p, java.util.function.Predicate<OsmPrimitive> predicate)The *result* does not depend on the current map selection state, neither does the result *order*.private java.util.Map<java.lang.Double,java.util.List<Node>>NavigatableComponent. getNearestNodesImpl(java.awt.Point p, java.util.function.Predicate<OsmPrimitive> predicate)The *result* does not depend on the current map selection state, neither does the result *order*.Methods in org.openstreetmap.josm.gui with parameters of type Node Modifier and Type Method Description java.awt.PointNavigatableComponent. getPoint(Node n)looses precision, may overflow (depends on p and current scale)java.awt.geom.Point2DNavigatableComponent. getPoint2D(Node n)Return the point on the screen where this Node would be.MapViewState.MapViewPointMapViewState. getPointFor(Node node)Gets theMapViewState.MapViewPointfor the given node.private booleanNavigatableComponent. isPrecedenceNode(Node osm, java.awt.Point p, boolean useSelected)This is used as a helper routine toNavigatableComponent.getNearestNodeOrWay(Point, Predicate, boolean)It decides, whether to yield the node to be tested or look for further (way) candidates.Method parameters in org.openstreetmap.josm.gui with type arguments of type Node Modifier and Type Method Description java.util.List<Node>NavigatableComponent. getNearestNodes(java.awt.Point p, java.util.Collection<Node> ignore, java.util.function.Predicate<OsmPrimitive> predicate)The *result* does not depend on the current map selection state, neither does the result *order*. -
Uses of Node in org.openstreetmap.josm.gui.conflict.pair.nodes
Methods in org.openstreetmap.josm.gui.conflict.pair.nodes that return Node Modifier and Type Method Description protected NodeNodeListMergeModel. cloneEntryForMergedList(Node entry)Methods in org.openstreetmap.josm.gui.conflict.pair.nodes with parameters of type Node Modifier and Type Method Description protected NodeNodeListMergeModel. cloneEntryForMergedList(Node entry)booleanNodeListMergeModel. isEqualEntry(Node e1, Node e2)protected voidNodeListTableCellRenderer. renderNode(AbstractListMergeModel.EntriesTableModel model, Node node, int row, boolean isSelected)render a nodeConstructor parameters in org.openstreetmap.josm.gui.conflict.pair.nodes with type arguments of type Node Constructor Description NodeListTable(java.lang.String name, AbstractListMergeModel<Node,WayNodesConflictResolverCommand> model, OsmPrimitivesTableModel dm, javax.swing.ListSelectionModel sm)Constructs a newNodeListTable. -
Uses of Node in org.openstreetmap.josm.gui.dialogs
Methods in org.openstreetmap.josm.gui.dialogs with parameters of type Node Modifier and Type Method Description voidConflictDialog.ConflictPainter. visit(Node n)private voidConflictDialog.ConflictPainter. visit(Node n1, Node n2)Method parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type Node Modifier and Type Method Description private static booleanPropertiesMembershipChoiceDialog. isTagged(java.util.Collection<Node> existingNodes)private static booleanPropertiesMembershipChoiceDialog. isUsedInRelations(java.util.Collection<Node> existingNodes)static PropertiesMembershipChoiceDialogPropertiesMembershipChoiceDialog. showIfNecessary(java.util.Collection<Node> selectedNodes, boolean preselectNew)Creates and shows a newPropertiesMembershipChoiceDialogif necessary.voidValidatorDialog.ValidatorBoundingXYVisitor. visit(java.util.List<Node> nodes) -
Uses of Node in org.openstreetmap.josm.gui.history
Methods in org.openstreetmap.josm.gui.history with parameters of type Node Modifier and Type Method Description voidHistoryBrowserModel.HistoryPrimitiveBuilder. visit(Node n) -
Uses of Node in org.openstreetmap.josm.gui.layer
Methods in org.openstreetmap.josm.gui.layer with parameters of type Node Modifier and Type Method Description static WayPointOsmDataLayer. nodeToWayPoint(Node n, long time)Converts a node to a waypoint with defaultGpxConstants.GPX_PREFIXfor tags.static WayPointOsmDataLayer. nodeToWayPoint(Node n, long time, java.lang.String gpxPrefix)Converts a node to a waypoint with a configurable GPX prefix for tags.voidOsmDataLayer.DataCountVisitor. visit(Node n)Method parameters in org.openstreetmap.josm.gui.layer with type arguments of type Node Modifier and Type Method Description private static voidOsmDataLayer. nodesToGpxData(java.util.Collection<Node> nodes, GpxData gpxData, java.util.Set<Node> doneNodes, java.lang.String gpxPrefix)private static voidOsmDataLayer. nodesToGpxData(java.util.Collection<Node> nodes, GpxData gpxData, java.util.Set<Node> doneNodes, java.lang.String gpxPrefix)private static voidOsmDataLayer. waysToGpxData(java.util.Collection<Way> ways, GpxData gpxData, java.util.Set<Node> doneNodes, java.lang.String gpxPrefix) -
Uses of Node in org.openstreetmap.josm.gui.layer.validation
Methods in org.openstreetmap.josm.gui.layer.validation with parameters of type Node Modifier and Type Method Description protected voidPaintVisitor. drawNode(Node n, java.awt.Color color)Draws a circle around the nodeprotected voidPaintVisitor. drawSegment(Node n1, Node n2, java.awt.Color color)Draws a line around the segmentprotected booleanPaintVisitor. isNodeVisible(Node n)Checks if the given node is in the visible area.protected booleanPaintVisitor. isSegmentVisible(Node n1, Node n2)Checks if the given segment is in the visible area.voidPaintVisitor. visit(Node n)Draw a small rectangle.Method parameters in org.openstreetmap.josm.gui.layer.validation with type arguments of type Node Modifier and Type Method Description voidPaintVisitor. visit(java.util.List<Node> nodes) -
Uses of Node in org.openstreetmap.josm.io
Methods in org.openstreetmap.josm.io that return Node Modifier and Type Method Description private NodeAbstractReader. addNode(NodeData nd, AbstractReader.NodeReader nodeReader)private NodeGeoJSONReader. createNode(LatLon latlon)protected NodeAbstractReader. parseNode(double lat, double lon, AbstractReader.CommonReader commonReader, AbstractReader.NodeReader nodeReader)protected NodeAbstractReader. parseNode(java.lang.String lat, java.lang.String lon, AbstractReader.CommonReader commonReader, AbstractReader.NodeReader nodeReader)protected NodeOsmReader. parseNode()Methods in org.openstreetmap.josm.io that return types with arguments of type Node Modifier and Type Method Description private java.util.Optional<Node>GeoJSONReader. parsePoint(jakarta.json.JsonObject feature, jakarta.json.JsonArray coordinates)Methods in org.openstreetmap.josm.io with parameters of type Node Modifier and Type Method Description MultiFetchServerObjectReaderMultiFetchServerObjectReader. appendNode(Node node)appends aNodeid to the list of ids which will be fetched from the server.voidGeoJSONWriter.GeometryPrimitiveVisitor. visit(Node n)Method parameters in org.openstreetmap.josm.io with type arguments of type Node Modifier and Type Method Description private jakarta.json.JsonArrayBuilderGeoJSONWriter.GeometryPrimitiveVisitor. getCoorsArray(java.lang.Iterable<Node> nodes)voidOsmWriter. writeNodes(java.util.Collection<Node> nodes)Writes the given nodes sorted by id -
Uses of Node in org.openstreetmap.josm.io.remotecontrol.handler
Fields in org.openstreetmap.josm.io.remotecontrol.handler with type parameters of type Node Modifier and Type Field Description private java.util.Map<LatLon,Node>AddWayHandler. addedNodesThe place to remember already added nodes (they are reused if needed @since 5845Methods in org.openstreetmap.josm.io.remotecontrol.handler that return Node Modifier and Type Method Description (package private) NodeAddWayHandler. findOrCreateNode(LatLon ll, java.util.List<Command> commands)Find the node with almost the same coords in dataset or in already added nodes -
Uses of Node in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools that return types with arguments of type Node Modifier and Type Method Description static java.util.Set<Node>Geometry. addIntersections(java.util.List<Way> ways, boolean test, java.util.List<Command> cmds)Will find all intersection and add nodes there for list of given ways.Methods in org.openstreetmap.josm.tools with parameters of type Node Modifier and Type Method Description static doubleGeometry. getDistanceSegmentSegment(Node ws1Node1, Node ws1Node2, Node ws2Node1, Node ws2Node2)Get the distance between differentWaySegmentsstatic doubleGeometry. getDistanceWayNode(Way way, Node node)Get the distance between a way and a nodestatic java.lang.DoubleRotationAngle.WayDirectionRotationAngle. getRotationAngleForNodeOnWay(Node n, Way w)Calculates the rotation angle of a node in a way based on the preceding way segment.
-