|
||||||||||
| 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.Test
org.openstreetmap.josm.data.validation.tests.Coastlines
public class Coastlines
Check coastlines for errors
| Field Summary | |
|---|---|
private java.util.List<Way> |
coastlines
|
private java.awt.geom.Area |
downloadedArea
|
protected static int |
REVERSED_COASTLINE
|
protected static int |
UNCONNECTED_COASTLINE
|
protected static int |
UNORDERED_COASTLINE
|
| Fields inherited from class org.openstreetmap.josm.data.validation.Test |
|---|
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, testBeforeUpload |
| Constructor Summary | |
|---|---|
Coastlines()
Constructor |
|
| Method Summary | |
|---|---|
void |
endTest()
Notification of the end of the test. |
Command |
fixError(TestError testError)
Fixes the error with the appropriate command |
private static boolean |
isCoastline(OsmPrimitive osm)
|
boolean |
isFixable(TestError testError)
Returns true if the given error can be fixed automatically |
void |
startTest(ProgressMonitor monitor)
Start the test using a given progress monitor |
void |
visit(Way way)
Visiting call for lines. |
| Methods inherited from class org.openstreetmap.josm.data.validation.Test |
|---|
addGui, deletePrimitivesIfNeeded, getErrors, getName, initialize, isBuilding, isCanceled, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visit |
| 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 |
|---|
protected static final int UNORDERED_COASTLINE
protected static final int REVERSED_COASTLINE
protected static final int UNCONNECTED_COASTLINE
private java.util.List<Way> coastlines
private java.awt.geom.Area downloadedArea
| Constructor Detail |
|---|
public Coastlines()
| Method Detail |
|---|
public void startTest(ProgressMonitor monitor)
Test
startTest in class Testmonitor - the progress monitorpublic void endTest()
Test
If you override this method, don't forget to cleanup Test.progressMonitor
(most overrides call super.endTest() to do this).
endTest in class Testpublic void visit(Way way)
Visitor
visit in interface Visitorvisit in class Testway - The way to inspect.private static boolean isCoastline(OsmPrimitive osm)
public Command fixError(TestError testError)
Test
fixError in class Testpublic boolean isFixable(TestError testError)
Test
isFixable in class TesttestError - The error to check if can be fixed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||