Package | Description |
---|---|
org.openstreetmap.josm.data.osm.visitor.paint |
Provides the classes for painting (rendering) OSM primitives on the map.
|
org.openstreetmap.josm.gui |
Provides the classes for JOSM graphical user interface.
|
org.openstreetmap.josm.gui.draw |
Provides GUI classes for 2D drawing in the map.
|
org.openstreetmap.josm.gui.layer.imagery |
Provides classes for handling imagery background layers.
|
Modifier and Type | Field and Description |
---|---|
private MapViewState.MapViewPoint |
StyledMapRenderer.OffsetIterator.prev |
Modifier and Type | Method and Description |
---|---|
private MapViewState.MapViewPoint |
StyledMapRenderer.OffsetIterator.getForIndex(int i) |
MapViewState.MapViewPoint |
StyledMapRenderer.OffsetIterator.next() |
Modifier and Type | Method and Description |
---|---|
private static void |
StyledMapRenderer.appenOnewayPath(boolean onewayReversed,
MapViewState.MapViewPoint p1,
double nx,
double ny,
double dist,
double onewaySize,
java.awt.geom.Path2D onewayPath) |
private static double |
StyledMapRenderer.computeQuality(java.awt.Rectangle bounds,
MapViewState.MapViewPoint p1,
java.awt.geom.Point2D p2) |
protected void |
AbstractMapRenderer.drawOrderNumber(MapViewState.MapViewPoint p1,
MapViewState.MapViewPoint p2,
int orderNumber,
java.awt.Color clr)
Draw an number of the order of the two consecutive nodes within the
parents way
|
protected void |
WireframeMapRenderer.drawSegment(MapPath2D path,
MapViewState.MapViewPoint mv1,
MapViewState.MapViewPoint mv2,
boolean showDirection)
Draw a line with the given color.
|
protected void |
WireframeMapRenderer.drawSegment(MapViewState.MapViewPoint p1,
MapViewState.MapViewPoint p2,
java.awt.Color col,
boolean showDirection)
Draw a line with the given color.
|
static boolean |
AbstractMapRenderer.isLargeSegment(MapViewState.MapViewPoint p1,
MapViewState.MapViewPoint p2,
int space)
Checks if a way segemnt is large enough for additional information display.
|
protected boolean |
AbstractMapRenderer.isSegmentVisible(MapViewState.MapViewPoint p1,
MapViewState.MapViewPoint p2)
Checks if segment is visible in display.
|
void |
ArrowPaintHelper.paintArrowAt(MapPath2D path,
MapViewState.MapViewPoint point,
MapViewState.MapViewPoint fromDirection)
Paint the arrow
|
Modifier and Type | Method and Description |
---|---|
private static double |
StyledMapRenderer.computePath(double minSegmentLength,
java.awt.Rectangle bounds,
java.util.List<MapViewState.MapViewPoint> points,
java.util.List<StyledMapRenderer.HalfSegment> longHalfSegment) |
private static double[] |
StyledMapRenderer.pointAt(double t,
java.util.List<MapViewState.MapViewPoint> poly,
double pathLength) |
Modifier and Type | Class and Description |
---|---|
private class |
MapViewState.MapViewEastNorthPoint |
private class |
MapViewState.MapViewViewPoint |
Modifier and Type | Field and Description |
---|---|
private MapViewState.MapViewPoint |
MapViewState.MapViewRectangle.p1 |
private MapViewState.MapViewPoint |
MapViewState.MapViewRectangle.p2 |
Modifier and Type | Method and Description |
---|---|
MapViewState.MapViewPoint |
MapViewState.MapViewPoint.add(EastNorth en)
Add the given offset to this point
|
MapViewState.MapViewPoint |
MapViewState.getCenter()
Gets the center of the view.
|
MapViewState.MapViewPoint |
MapViewState.getCenterAtPixel()
Gets the center of the view, rounded to a pixel coordinate
|
MapViewState.MapViewPoint |
MapViewState.getForView(double x,
double y)
Gets the MapViewPoint representation for a position in view coordinates.
|
MapViewState.MapViewPoint |
MapViewState.MapViewRectangle.getLineEntry(MapViewState.MapViewPoint start,
MapViewState.MapViewPoint end)
Gets the entry point at which a line between start and end enters the current view.
|
MapViewState.MapViewPoint |
MapViewState.getPointFor(EastNorth eastNorth)
Gets the
MapViewState.MapViewPoint for the given EastNorth coordinate. |
MapViewState.MapViewPoint |
MapViewState.getPointFor(LatLon latlon)
Gets the
MapViewState.MapViewPoint for the given LatLon coordinate. |
MapViewState.MapViewPoint |
MapViewState.getPointFor(Node node)
Gets the
MapViewState.MapViewPoint for the given node. |
MapViewState.MapViewPoint |
MapViewState.MapViewPoint.interpolate(MapViewState.MapViewPoint p1,
double i)
Do a linear interpolation to the other point
|
Modifier and Type | Method and Description |
---|---|
double |
MapViewState.MapViewPoint.distanceToInView(MapViewState.MapViewPoint p2)
Gets the distance between this point and an other point.
|
double |
MapViewState.MapViewPoint.distanceToInViewSq(MapViewState.MapViewPoint p2)
Gets the squared distance between this point and an other point.
|
MapViewState.MapViewPoint |
MapViewState.MapViewRectangle.getLineEntry(MapViewState.MapViewPoint start,
MapViewState.MapViewPoint end)
Gets the entry point at which a line between start and end enters the current view.
|
MapViewState.MapViewPoint |
MapViewState.MapViewPoint.interpolate(MapViewState.MapViewPoint p1,
double i)
Do a linear interpolation to the other point
|
MapViewState |
MapViewState.movedTo(MapViewState.MapViewPoint mapViewPoint,
EastNorth newEastNorthThere) |
double |
MapViewState.MapViewPoint.oneNormInView(MapViewState.MapViewPoint p2)
Gets the sum of the x/y view distances between the points.
|
MapViewState.MapViewRectangle |
MapViewState.MapViewPoint.rectTo(MapViewState.MapViewPoint other)
Create a rectangle from this to the other point.
|
Constructor and Description |
---|
MapViewRectangle(MapViewState.MapViewPoint p1,
MapViewState.MapViewPoint p2)
Create a new MapViewRectangle
|
Modifier and Type | Field and Description |
---|---|
private MapViewState.MapViewPoint |
MapViewPath.ClampingPathVisitor.cursor |
private MapViewState.MapViewPoint |
MapViewPath.ClampingPathVisitor.lastMoveTo |
Modifier and Type | Method and Description |
---|---|
private MapViewState.MapViewPoint |
MapViewPath.ClampingPathVisitor.alignStrokeOffset(MapViewState.MapViewPoint entry,
MapViewState.MapViewPoint originalStart) |
Modifier and Type | Method and Description |
---|---|
void |
MapViewPath.PathSegmentConsumer.addLineBetween(double inLineOffset,
MapViewState.MapViewPoint start,
MapViewState.MapViewPoint end,
boolean startIsOldEnd)
Add a line segment between two points
|
private MapViewState.MapViewPoint |
MapViewPath.ClampingPathVisitor.alignStrokeOffset(MapViewState.MapViewPoint entry,
MapViewState.MapViewPoint originalStart) |
private void |
MapViewPath.ClampingPathVisitor.drawLineTo(MapViewState.MapViewPoint next) |
MapPath2D |
MapPath2D.lineTo(MapViewState.MapViewPoint p)
Draw a line to the view position of given point
|
MapViewPath |
MapViewPath.lineTo(MapViewState.MapViewPoint p) |
MapPath2D |
MapPath2D.moveTo(MapViewState.MapViewPoint p)
Move the path to the view position of given point
|
MapViewPath |
MapViewPath.moveTo(MapViewState.MapViewPoint p) |
MapPath2D |
MapPath2D.shapeAround(MapViewState.MapViewPoint p,
SymbolShape symbol,
double size)
Add the given shape centered around the given point
|
MapViewPath |
MapViewPath.shapeAround(MapViewState.MapViewPoint p,
SymbolShape symbol,
double size) |
Modifier and Type | Method and Description |
---|---|
private MapViewState.MapViewPoint |
TileCoordinateConverter.pos(ICoordinate ll) |