|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openstreetmap.josm.data.osm.visitor.AbstractVisitor
org.openstreetmap.josm.data.validation.TestError.PaintVisitor
class TestError.PaintVisitor
Visitor that highlights the primitives affected by this error
| Field Summary | |
|---|---|
private java.awt.Graphics |
g
The graphics |
private MapView |
mv
The MapView |
| Constructor Summary | |
|---|---|
TestError.PaintVisitor(java.awt.Graphics g,
MapView mv)
Constructor |
|
| Method Summary | |
|---|---|
void |
drawNode(Node n,
java.awt.Color color)
Draws a circle around the node |
void |
drawSegment(Node n1,
Node n2,
java.awt.Color color)
Draws a line around the segment |
void |
drawSegment(java.awt.Point p1,
java.awt.Point p2,
java.awt.Color color)
|
protected boolean |
isNodeVisible(Node n)
Checks if the given node is in the visible area. |
protected boolean |
isSegmentVisible(Node n1,
Node n2)
Checks if the given segment is in the visible area. |
void |
visit(java.util.List<Node> nodes)
|
void |
visit(Node n)
Draw a small rectangle. |
void |
visit(OsmPrimitive p)
|
void |
visit(Relation r)
Visiting call for relations. |
void |
visit(Way w)
Visiting call for lines. |
void |
visit(WaySegment ws)
|
| Methods inherited from class org.openstreetmap.josm.data.osm.visitor.AbstractVisitor |
|---|
visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.awt.Graphics g
private final MapView mv
| Constructor Detail |
|---|
public TestError.PaintVisitor(java.awt.Graphics g,
MapView mv)
g - The graphicsmv - The Mapview| Method Detail |
|---|
public void visit(OsmPrimitive p)
visit in interface ValidatorVisitor
public void drawNode(Node n,
java.awt.Color color)
n - The nodecolor - The circle color
public void drawSegment(java.awt.Point p1,
java.awt.Point p2,
java.awt.Color color)
public void drawSegment(Node n1,
Node n2,
java.awt.Color color)
s - The segmentcolor - The colorpublic void visit(Node n)
visit in interface Visitorn - The node to draw.public void visit(Way w)
Visitor
visit in interface Visitorw - The way to inspect.public void visit(WaySegment ws)
visit in interface ValidatorVisitorpublic void visit(Relation r)
Visitor
visit in interface Visitorr - The relation to inspect.protected boolean isNodeVisible(Node n)
n - The node to check for visibility
protected boolean isSegmentVisible(Node n1,
Node n2)
ls - The segment to check
public void visit(java.util.List<Node> nodes)
visit in interface ValidatorVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||