Class TestBuilderModel
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.model.TestBuilderModel
-
public class TestBuilderModel extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestBuilderModel.CaseList
Encapsulates test case cursor logic.
-
Constructor Summary
Constructors Constructor Description TestBuilderModel()
-
Method Summary
-
-
-
Method Detail
-
getGeometryEditModel
public GeometryEditModel getGeometryEditModel()
-
getPrecisionModel
public PrecisionModel getPrecisionModel()
-
setPrecisionModel
public void setPrecisionModel(PrecisionModel precisionModel)
-
getGeometryFactory
public GeometryFactory getGeometryFactory()
-
getLayers
public LayerList getLayers()
-
getLayersAll
public LayerList getLayersAll()
-
getLayersTop
public LayerList getLayersTop()
-
getLayersBase
public LayerList getLayersBase()
-
getLayerIndicators
public Layer getLayerIndicators()
-
addIndicator
public void addIndicator(Geometry geom)
-
hasLayer
public boolean hasLayer(String name)
-
readGeometryFromClipboard
public Geometry readGeometryFromClipboard() throws Exception
- Throws:
Exception
-
loadMultipleGeometriesFromFile
public void loadMultipleGeometriesFromFile(int geomIndex, String filename) throws Exception
- Throws:
Exception
-
loadGeometryText
public void loadGeometryText(String wktA, String wktB) throws ParseException, IOException
- Throws:
ParseException
IOException
-
cases
public TestBuilderModel.CaseList cases()
-
getCurrentCase
public TestCaseEdit getCurrentCase()
-
getCurrentCaseIndex
public int getCurrentCaseIndex()
-
getCasesSize
public int getCasesSize()
-
getCases
public List getCases()
-
getTestCaseList
public TestCaseList getTestCaseList()
-
addCase
public void addCase(Geometry[] geoms)
-
openXmlFilesAndDirectories
public void openXmlFilesAndDirectories(File[] files) throws Exception
- Throws:
Exception
-
loadEditList
public void loadEditList(TestCaseList tcl) throws ParseException
- Throws:
ParseException
-
getParsingProblems
public List getParsingProblems()
- Returns:
- empy list if no errors
-
hasParseErrors
public boolean hasParseErrors()
-
setResult
public void setResult(Object result)
-
getResult
public Object getResult()
-
setOpName
public void setOpName(String opName)
-
getOpName
public String getOpName()
-
copyResult
public void copyResult(boolean isFormatted)
-
changePrecisionModel
public void changePrecisionModel(PrecisionModel precisionModel) throws ParseException
- Throws:
ParseException
-
layerDelete
public void layerDelete(Layer lyr)
-
layerUp
public void layerUp(Layer lyr)
-
layerDown
public void layerDown(Layer lyr)
-
isLayerFixed
public boolean isLayerFixed(Layer lyr)
-
-