public class Coastlines extends Test
Test.TagTest| Modifier and Type | Field and Description |
|---|---|
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 |
checkBeforeUpload, checkEnabled, description, enabled, errors, isBeforeUpload, name, partialSelection, progressMonitor, startTime, testBeforeUpload| Constructor and Description |
|---|
Coastlines()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addGui, deletePrimitivesIfNeeded, equals, getErrors, getName, hashCode, initialize, isBuilding, isCanceled, isPrimitiveUsable, ok, setBeforeUpload, setPartialSelection, testBeforeUpload, visit, visit, visitvisitprotected 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
public Coastlines()
public void startTest(ProgressMonitor monitor)
Testpublic void endTest()
Test
If you override this method, don't forget to cleanup progressMonitor
(most overrides call super.endTest() to do this).
public void visit(Way way)
Visitorprivate static boolean isCoastline(OsmPrimitive osm)
public Command fixError(TestError testError)
Test