Constructor and Description |
---|
OSMRoadInfo(OSMNode from,
OSMNode to)
Create an OSMRoadInfo between two nodes.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Area |
getArea()
Get the area covered by this shape.
|
OSMNode |
getFrom()
Get the "from" node.
|
Point2D |
getFromLeft()
Get the point that is at the left side of this road at the "from" end.
|
Point2D |
getFromRight()
Get the point that is at the right side of this road at the "from" end.
|
OSMNode |
getTo()
Get the "to" node.
|
Point2D |
getToLeft()
Get the point that is at the left side of this road at the "to" end.
|
Point2D |
getToRight()
Get the point that is at the right side of this road at the "to" end.
|
java.util.List<Point2D> |
getVertices()
Get the vertices of this shape in clockwise order.
|
void |
setFromLeft(Point2D p)
Set the point that is at the left side of this road at the "from" end.
|
void |
setFromRight(Point2D p)
Set the point that is at the right side of this road at the "from" end.
|
void |
setToLeft(Point2D p)
Set the point that is at the left side of this road at the "to" end.
|
void |
setToRight(Point2D p)
Set the point that is at the right side of this road at the "to" end.
|
java.lang.String |
toString() |
public OSMNode getFrom()
public OSMNode getTo()
public void setFromLeft(Point2D p)
p
- The from-left corner point.public void setFromRight(Point2D p)
p
- The from-right corner point.public void setToLeft(Point2D p)
p
- The to-left corner point.public void setToRight(Point2D p)
p
- The to-right corner point.public Point2D getFromLeft()
public Point2D getFromRight()
public Point2D getToLeft()
public Point2D getToRight()
public java.awt.geom.Area getArea()
OSMShape
public java.util.List<Point2D> getVertices()
OSMShape
getVertices
in interface OSMShape
public java.lang.String toString()
toString
in class java.lang.Object