Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
org.openstreetmap.josm.actions.mapmode |
Provides the classes for JOSM
map modes . |
org.openstreetmap.josm.command |
Provides the classes for JOSM commands allowing to modify an OSM data set.
|
org.openstreetmap.josm.data.osm |
Provides the classes for OSM data:
Primitives :
Node ,
Way ,
Relation
Users
Tags
Changesets
Utilities classes
|
org.openstreetmap.josm.data.osm.visitor.paint |
Provides the classes for painting (rendering) OSM primitives on the map.
|
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.gui |
Provides the classes for JOSM graphical user interface.
|
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 else
|
org.openstreetmap.josm.gui.layer.validation |
Provides classes for handling validation layer.
|
org.openstreetmap.josm.tools |
Provides the classes for various utilities and tools called from all other packages.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SplitWayAction.SegmentToKeepSelectionDialog.setHighlightedWaySegments(java.util.Collection<WaySegment> segments) |
Modifier and Type | Field and Description |
---|---|
private WaySegment |
ImproveWayAccuracyAction.candidateSegment |
private WaySegment |
DeleteAction.DeleteParameters.nearestSegment |
private WaySegment |
DeleteAction.oldHighlightedWaySegment
elements that have been highlighted in the previous iteration.
|
private WaySegment |
ParallelWayAction.referenceSegment |
private WaySegment |
ExtrudeAction.selectedSegment |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<WaySegment> |
SelectAction.VirtualManager.virtualWays |
Modifier and Type | Method and Description |
---|---|
static WaySegment |
ImproveWayAccuracyHelper.findCandidateSegment(MapView mv,
Way w,
java.awt.Point p)
Returns the nearest way segment to cursor.
|
Modifier and Type | Method and Description |
---|---|
private void |
DeleteAction.repaintIfRequired(java.util.Set<OsmPrimitive> newHighlights,
WaySegment newHighlightedWaySegment) |
(package private) void |
DrawSnapHelper.setBaseSegment(WaySegment seg) |
Modifier and Type | Method and Description |
---|---|
private void |
DrawAction.insertNodeIntoAllNearbySegments(java.util.List<WaySegment> wss,
Node n,
java.util.Collection<OsmPrimitive> newSelection,
java.util.Collection<Command> cmds,
java.util.List<Way> replacedWays,
java.util.List<Way> reuseWays) |
private void |
DrawAction.tryToMoveNodeOnIntersection(java.util.List<WaySegment> wss,
Node n) |
Modifier and Type | Method and Description |
---|---|
static Command |
DeleteCommand.deleteWaySegment(WaySegment ws)
Create a command that deletes a single way segment.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<WaySegment> |
DataSet.highlightedVirtualNodes |
private java.util.Collection<WaySegment> |
DataSet.highlightedWaySegments |
Modifier and Type | Method and Description |
---|---|
static WaySegment |
WaySegment.forNodePair(Way way,
Node first,
Node second)
Determines and returns the way segment for the given way and node pair.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<WaySegment> |
OsmData.getHighlightedVirtualNodes()
Returns an unmodifiable collection of *WaySegments* whose virtual
nodes should be highlighted.
|
java.util.Collection<WaySegment> |
DataSet.getHighlightedVirtualNodes() |
java.util.Collection<WaySegment> |
OsmData.getHighlightedWaySegments()
Returns an unmodifiable collection of WaySegments that should be highlighted.
|
java.util.Collection<WaySegment> |
DataSet.getHighlightedWaySegments() |
Modifier and Type | Method and Description |
---|---|
int |
WaySegment.compareTo(WaySegment o) |
boolean |
WaySegment.intersects(WaySegment s2)
Checks whether this segment crosses other segment
|
boolean |
WaySegment.isSimilar(WaySegment s2)
Checks whether this segment and another way segment share the same points
|
Modifier and Type | Method and Description |
---|---|
void |
OsmData.setHighlightedVirtualNodes(java.util.Collection<WaySegment> waySegments)
set what virtual nodes should be highlighted.
|
void |
DataSet.setHighlightedVirtualNodes(java.util.Collection<WaySegment> waySegments) |
void |
OsmData.setHighlightedWaySegments(java.util.Collection<WaySegment> waySegments)
set what virtual ways should be highlighted.
|
void |
DataSet.setHighlightedWaySegments(java.util.Collection<WaySegment> waySegments) |
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<WaySegment> |
StyledMapRenderer.highlightWaySegments |
Modifier and Type | Method and Description |
---|---|
void |
ValidatorVisitor.visit(WaySegment waySegment)
Visit a way segment that was part of the error
|
Modifier and Type | Method and Description |
---|---|
TestError.Builder |
TestError.Builder.highlightWaySegments(java.util.Collection<WaySegment> highlighted)
Sets the way segments to highlight when selecting this error.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> |
CrossingWays.cellSegments
All way segments, grouped by cells
|
private MultiMap<Pair<Node,Node>,WaySegment> |
OverlappingWays.nodePairs
Bag of all way segments
|
protected java.util.Set<WaySegment> |
LongSegment.reported
set of way segments that have been reported
|
private java.util.Map<java.util.List<Way>,java.util.List<WaySegment>> |
CrossingWays.seenWays
The already detected ways in error
|
Modifier and Type | Method and Description |
---|---|
protected static java.util.Set<WaySegment> |
OverlappingWays.checkDuplicateWaySegment(Way w) |
private static java.util.Map<java.util.List<Way>,java.util.List<WaySegment>> |
MultipolygonTest.findIntersectingWays(Relation r,
boolean findSharedWaySegments)
See
CrossingWays |
static java.util.List<java.util.List<WaySegment>> |
CrossingWays.getSegments(java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> cellSegments,
EastNorth n1,
EastNorth n2)
Returns all the cells this segment crosses.
|
Modifier and Type | Method and Description |
---|---|
private void |
LongSegment.addErrorForSegment(WaySegment waySegment,
java.lang.Double length) |
Modifier and Type | Method and Description |
---|---|
private static void |
MultipolygonTest.findIntersectingWay(Way w,
java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> cellSegments,
java.util.Map<java.util.List<Way>,java.util.List<WaySegment>> crossingWays,
boolean findSharedWaySegments)
Find ways which are crossing without sharing a node.
|
private static void |
MultipolygonTest.findIntersectingWay(Way w,
java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> cellSegments,
java.util.Map<java.util.List<Way>,java.util.List<WaySegment>> crossingWays,
boolean findSharedWaySegments)
Find ways which are crossing without sharing a node.
|
static java.util.List<java.util.List<WaySegment>> |
CrossingWays.getSegments(java.util.Map<java.awt.geom.Point2D,java.util.List<WaySegment>> cellSegments,
EastNorth n1,
EastNorth n2)
Returns all the cells this segment crosses.
|
Modifier and Type | Method and Description |
---|---|
WaySegment |
NavigatableComponent.getNearestWaySegment(java.awt.Point p,
java.util.function.Predicate<OsmPrimitive> predicate)
Convenience method to
NavigatableComponent.getNearestWaySegment(Point, Predicate, boolean) . |
WaySegment |
NavigatableComponent.getNearestWaySegment(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.
|
WaySegment |
NavigatableComponent.getNearestWaySegment(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 true.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<WaySegment> |
NavigatableComponent.getNearestWaySegments(java.awt.Point p,
java.util.Collection<WaySegment> ignore,
java.util.function.Predicate<OsmPrimitive> predicate)
The result *order* depends on the current map selection state.
|
java.util.List<WaySegment> |
NavigatableComponent.getNearestWaySegments(java.awt.Point p,
java.util.function.Predicate<OsmPrimitive> predicate)
The result *order* depends on the current map selection state.
|
private java.util.Map<java.lang.Double,java.util.List<WaySegment>> |
NavigatableComponent.getNearestWaySegmentsImpl(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*.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<WaySegment> |
NavigatableComponent.getNearestWaySegments(java.awt.Point p,
java.util.Collection<WaySegment> ignore,
java.util.function.Predicate<OsmPrimitive> predicate)
The result *order* depends on the current map selection state.
|
Modifier and Type | Method and Description |
---|---|
void |
ValidatorDialog.ValidatorBoundingXYVisitor.visit(WaySegment ws) |
Modifier and Type | Method and Description |
---|---|
void |
PaintVisitor.visit(WaySegment ws) |
Modifier and Type | Method and Description |
---|---|
static WaySegment |
Geometry.getClosestWaySegment(Way way,
OsmPrimitive primitive)
Get the closest
WaySegment from a way to a primitive. |
Modifier and Type | Method and Description |
---|---|
static double |
Geometry.getDistanceSegmentSegment(WaySegment ws1,
WaySegment ws2)
Get the distance between different
WaySegment s |