Uses of Class
org.openstreetmap.josm.data.osm.WaySegment
Packages that use WaySegment
Package
Description
Provides the classes for JOSM user actions.
Provides the classes for JOSM
map modes.Provides the classes for JOSM commands allowing to modify an OSM data set.
Provides the classes for OSM data:
Primitives:
Node,
Way,
Relation
Users
Tags
Changesets
Utilities classes
Provides the classes for painting (rendering) OSM primitives on the map.
Provides the classes for JOSM data validation.
Provides the classes for JOSM data validation tests.
Provides classes for vector data like Mapbox Vector Tiles.
Provides the classes for JOSM graphical user interface.
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 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 various utilities and tools called from all other packages.
-
Uses of WaySegment in org.openstreetmap.josm.actions
Method parameters in org.openstreetmap.josm.actions with type arguments of type WaySegmentModifier and TypeMethodDescriptionprotected voidSplitWayAction.SegmentToKeepSelectionDialog.setHighlightedWaySegments(Collection<WaySegment> segments) -
Uses of WaySegment in org.openstreetmap.josm.actions.mapmode
Fields in org.openstreetmap.josm.actions.mapmode declared as WaySegmentModifier and TypeFieldDescriptionprivate WaySegmentImproveWayAccuracyAction.candidateSegmentprivate WaySegmentDeleteAction.DeleteParameters.nearestSegmentprivate WaySegmentDeleteAction.oldHighlightedWaySegmentelements that have been highlighted in the previous iteration.private WaySegmentParallelWayAction.referenceSegmentprivate WaySegmentExtrudeAction.selectedSegmentFields in org.openstreetmap.josm.actions.mapmode with type parameters of type WaySegmentModifier and TypeFieldDescriptionprivate Collection<WaySegment>SelectAction.VirtualManager.virtualWaysMethods in org.openstreetmap.josm.actions.mapmode that return WaySegmentModifier and TypeMethodDescriptionstatic WaySegmentImproveWayAccuracyHelper.findCandidateSegment(MapView mv, Way w, Point p) Returns the nearest way segment to cursor.Methods in org.openstreetmap.josm.actions.mapmode with parameters of type WaySegmentModifier and TypeMethodDescriptionprivate voidDeleteAction.repaintIfRequired(Set<OsmPrimitive> newHighlights, WaySegment newHighlightedWaySegment) (package private) voidDrawSnapHelper.setBaseSegment(WaySegment seg) Method parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type WaySegmentModifier and TypeMethodDescriptionprivate voidDrawAction.insertNodeIntoAllNearbySegments(List<WaySegment> wss, Node n, Collection<OsmPrimitive> newSelection, Collection<Command> cmds, Map<Way, List<Node>> reuseWays) private voidDrawAction.tryToMoveNodeOnIntersection(List<WaySegment> wss, Node n) -
Uses of WaySegment in org.openstreetmap.josm.command
Methods in org.openstreetmap.josm.command with parameters of type WaySegmentModifier and TypeMethodDescriptionstatic CommandDeleteCommand.deleteWaySegment(WaySegment ws) Create a command that deletes a single way segment. -
Uses of WaySegment in org.openstreetmap.josm.data.osm
Fields in org.openstreetmap.josm.data.osm with type parameters of type WaySegmentModifier and TypeFieldDescriptionprivate Collection<WaySegment>DataSet.highlightedVirtualNodesprivate Collection<WaySegment>DataSet.highlightedWaySegmentsMethods in org.openstreetmap.josm.data.osm that return WaySegmentModifier and TypeMethodDescriptionstatic WaySegmentWaySegment.forNodePair(Way way, Node first, Node second) Determines and returns the way segment for the given way and node pair.Methods in org.openstreetmap.josm.data.osm that return types with arguments of type WaySegmentModifier and TypeMethodDescriptionDataSet.getHighlightedVirtualNodes()OsmData.getHighlightedVirtualNodes()Returns an unmodifiable collection of *WaySegments* whose virtual nodes should be highlighted.DataSet.getHighlightedWaySegments()OsmData.getHighlightedWaySegments()Returns an unmodifiable collection of WaySegments that should be highlighted.Method parameters in org.openstreetmap.josm.data.osm with type arguments of type WaySegmentModifier and TypeMethodDescriptionvoidDataSet.setHighlightedVirtualNodes(Collection<WaySegment> waySegments) voidOsmData.setHighlightedVirtualNodes(Collection<WaySegment> waySegments) set what virtual nodes should be highlighted.voidDataSet.setHighlightedWaySegments(Collection<WaySegment> waySegments) voidOsmData.setHighlightedWaySegments(Collection<WaySegment> waySegments) set what virtual ways should be highlighted. -
Uses of WaySegment in org.openstreetmap.josm.data.osm.visitor.paint
Fields in org.openstreetmap.josm.data.osm.visitor.paint with type parameters of type WaySegmentModifier and TypeFieldDescriptionprivate Collection<WaySegment>StyledMapRenderer.highlightWaySegments -
Uses of WaySegment in org.openstreetmap.josm.data.validation
Methods in org.openstreetmap.josm.data.validation with parameters of type WaySegmentModifier and TypeMethodDescriptionvoidValidatorVisitor.visit(WaySegment waySegment) Visit a way segment that was part of the errorMethod parameters in org.openstreetmap.josm.data.validation with type arguments of type WaySegmentModifier and TypeMethodDescriptionTestError.Builder.highlightWaySegments(Collection<WaySegment> highlighted) Sets the way segments to highlight when selecting this error. -
Uses of WaySegment in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests with type parameters of type WaySegmentModifier and TypeFieldDescriptionprivate final Map<Point2D,List<WaySegment>> CrossingWays.cellSegmentsAll way segments, grouped by cellsprivate final Map<Point2D,List<WaySegment>> PowerLines.cellSegmentsWaterAll waterway segments, grouped by cellsprivate final Set<WaySegment>PowerLines.missingNodesprivate MultiMap<Pair<Node,Node>, WaySegment> OverlappingWays.nodePairsBag of all way segmentsprotected Set<WaySegment>LongSegment.reportedset of way segments that have been reportedprivate final Map<List<Way>,List<WaySegment>> CrossingWays.seenWaysThe already detected ways in errorMethods in org.openstreetmap.josm.data.validation.tests that return types with arguments of type WaySegmentModifier and TypeMethodDescriptionprotected static Set<WaySegment>OverlappingWays.checkDuplicateWaySegment(Way w) private static Collection<WaySegment>CycleDetector.createSegments(Map<Node, List<Node>> graphMap, Collection<Node> nodes) Creates WaySegments from Nodes for the error highlight function.private static Map<List<Way>,List<WaySegment>> MultipolygonTest.findIntersectingWays(Relation r, boolean findSharedWaySegments) SeeCrossingWaysstatic List<List<WaySegment>>CrossingWays.getSegments(Map<Point2D, List<WaySegment>> cellSegments, EastNorth n1, EastNorth n2) Returns all the cells this segment crosses.static List<List<WaySegment>>CrossingWays.getSegments(Map<Point2D, List<WaySegment>> cellSegments, ILatLon n1, ILatLon n2) Returns all the cells this segment crosses.Methods in org.openstreetmap.josm.data.validation.tests with parameters of type WaySegmentModifier and TypeMethodDescriptionprivate voidLongSegment.addErrorForSegment(WaySegment waySegment, Double length) Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type WaySegmentModifier and TypeMethodDescriptionprivate voidOverlappingWays.analyseOverlaps(Set<WaySegment> duplicated, Map<List<Way>, Set<WaySegment>> seenWays) private voidOverlappingWays.analyseOverlaps(Set<WaySegment> duplicated, Map<List<Way>, Set<WaySegment>> seenWays) 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.static List<List<WaySegment>>CrossingWays.getSegments(Map<Point2D, List<WaySegment>> cellSegments, EastNorth n1, EastNorth n2) Returns all the cells this segment crosses.static List<List<WaySegment>>CrossingWays.getSegments(Map<Point2D, List<WaySegment>> cellSegments, ILatLon n1, ILatLon n2) Returns all the cells this segment crosses. -
Uses of WaySegment in org.openstreetmap.josm.data.vector
Methods in org.openstreetmap.josm.data.vector that return types with arguments of type WaySegmentModifier and TypeMethodDescriptionVectorDataSet.getHighlightedVirtualNodes()VectorDataSet.getHighlightedWaySegments()Method parameters in org.openstreetmap.josm.data.vector with type arguments of type WaySegmentModifier and TypeMethodDescriptionvoidVectorDataSet.setHighlightedVirtualNodes(Collection<WaySegment> waySegments) voidVectorDataSet.setHighlightedWaySegments(Collection<WaySegment> waySegments) -
Uses of WaySegment in org.openstreetmap.josm.gui
Methods in org.openstreetmap.josm.gui that return WaySegmentModifier and TypeMethodDescriptionfinal WaySegmentNavigatableComponent.getNearestWaySegment(Point p, Predicate<OsmPrimitive> predicate) Convenience method toNavigatableComponent.getNearestWaySegment(Point, Predicate, boolean).final WaySegmentNavigatableComponent.getNearestWaySegment(Point p, Predicate<OsmPrimitive> predicate, boolean useSelected) The *result* depends on the current map selection state IF use_selected is true.final WaySegmentNavigatableComponent.getNearestWaySegment(Point p, Predicate<OsmPrimitive> predicate, boolean useSelected, Collection<OsmPrimitive> preferredRefs) The *result* depends on the current map selection state IF use_selected is true.Methods in org.openstreetmap.josm.gui that return types with arguments of type WaySegmentModifier and TypeMethodDescriptionfinal List<WaySegment>NavigatableComponent.getNearestWaySegments(Point p, Collection<WaySegment> ignore, Predicate<OsmPrimitive> predicate) The result *order* depends on the current map selection state.final List<WaySegment>NavigatableComponent.getNearestWaySegments(Point p, Predicate<OsmPrimitive> predicate) The result *order* depends on the current map selection state.private Map<Double,List<WaySegment>> NavigatableComponent.getNearestWaySegmentsImpl(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 WaySegmentModifier and TypeMethodDescriptionfinal List<WaySegment>NavigatableComponent.getNearestWaySegments(Point p, Collection<WaySegment> ignore, Predicate<OsmPrimitive> predicate) The result *order* depends on the current map selection state. -
Uses of WaySegment in org.openstreetmap.josm.gui.dialogs
Methods in org.openstreetmap.josm.gui.dialogs with parameters of type WaySegmentModifier and TypeMethodDescriptionvoidValidatorDialog.ValidatorBoundingXYVisitor.visit(WaySegment ws) -
Uses of WaySegment in org.openstreetmap.josm.gui.layer.validation
Methods in org.openstreetmap.josm.gui.layer.validation with parameters of type WaySegment -
Uses of WaySegment in org.openstreetmap.josm.gui.mappaint
Fields in org.openstreetmap.josm.gui.mappaint with type parameters of type WaySegmentModifier and TypeFieldDescriptionMap<IPrimitive,Map<List<Way>, List<WaySegment>>> Environment.crossingWaysMapCrossing ways result from CrossingFinder, filled for incomplete ways/relations -
Uses of WaySegment in org.openstreetmap.josm.gui.mappaint.mapcss
Fields in org.openstreetmap.josm.gui.mappaint.mapcss with type parameters of type WaySegmentModifier and TypeFieldDescription(package private) Map<Point2D,List<WaySegment>> Selector.ChildOrParentSelector.CrossingFinder.cellSegmentsWill contain all way segments, grouped by cellsMethods in org.openstreetmap.josm.gui.mappaint.mapcss that return types with arguments of type WaySegmentModifier and TypeMethodDescriptionprivate Map<List<Way>,List<WaySegment>> Selector.ChildOrParentSelector.CrossingFinder.findCrossings(IPrimitive area, Map<Point2D, List<WaySegment>> cellSegments) Method parameters in org.openstreetmap.josm.gui.mappaint.mapcss with type arguments of type WaySegmentModifier and TypeMethodDescriptionprivate Map<List<Way>,List<WaySegment>> Selector.ChildOrParentSelector.CrossingFinder.findCrossings(IPrimitive area, Map<Point2D, List<WaySegment>> cellSegments) -
Uses of WaySegment in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools that return WaySegmentModifier and TypeMethodDescriptionstatic WaySegmentGeometry.getClosestWaySegment(Way way, OsmPrimitive primitive) Get the closestWaySegmentfrom a way to a primitive.Methods in org.openstreetmap.josm.tools with parameters of type WaySegmentModifier and TypeMethodDescriptionstatic doubleGeometry.getDistanceSegmentSegment(WaySegment ws1, WaySegment ws2) Get the distance between differentWaySegments