Class TestBuilderModel
- java.lang.Object
-
- com.vividsolutions.jtstest.testbuilder.model.TestBuilderModel
-
public class TestBuilderModel extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static booleanisMagnifyingTopologystatic intMAX_DISPLAY_POINTSprotected static booleanshowingCoordinatesprotected static booleanshowingGridprotected static booleanshowingLabelprotected static booleanshowingOrientationprotected static booleanshowingStructureprotected static booleanshowingVerticesprotected static doubletopologyStretchSize
-
Constructor Summary
Constructors Constructor Description TestBuilderModel()
-
Method Summary
-
-
-
Field Detail
-
MAX_DISPLAY_POINTS
public static int MAX_DISPLAY_POINTS
-
showingGrid
protected static boolean showingGrid
-
showingStructure
protected static boolean showingStructure
-
showingOrientation
protected static boolean showingOrientation
-
showingVertices
protected static boolean showingVertices
-
showingLabel
protected static boolean showingLabel
-
showingCoordinates
protected static boolean showingCoordinates
-
isMagnifyingTopology
protected static boolean isMagnifyingTopology
-
topologyStretchSize
protected static double topologyStretchSize
-
-
Method Detail
-
isShowingStructure
public static boolean isShowingStructure()
-
setShowingStructure
public static void setShowingStructure(boolean show)
-
isShowingOrientation
public static boolean isShowingOrientation()
-
setShowingOrientation
public static void setShowingOrientation(boolean show)
-
isShowingGrid
public static boolean isShowingGrid()
-
setShowingGrid
public static void setShowingGrid(boolean show)
-
isShowingVertices
public static boolean isShowingVertices()
-
setShowingVertices
public static void setShowingVertices(boolean show)
-
setShowingLabel
public static void setShowingLabel(boolean show)
-
isShowingLabel
public static boolean isShowingLabel()
-
isMagnifyingTopology
public boolean isMagnifyingTopology()
-
setMagnifyingTopology
public void setMagnifyingTopology(boolean show)
-
setTopologyStretchSize
public void setTopologyStretchSize(double pixels)
-
getTopologyStretchSize
public double getTopologyStretchSize()
-
getGeometryEditModel
public GeometryEditModel getGeometryEditModel()
-
getPrecisionModel
public PrecisionModel getPrecisionModel()
-
setPrecisionModel
public void setPrecisionModel(PrecisionModel precisionModel)
-
getGeometryFactory
public GeometryFactory getGeometryFactory()
-
getResultDisplayString
public java.lang.String getResultDisplayString(Geometry g)
-
getLayers
public LayerList getLayers()
-
pasteGeometry
public void pasteGeometry(int geomIndex) throws ParseException, java.io.IOException- Throws:
ParseExceptionjava.io.IOException
-
readGeometryText
public Geometry readGeometryText(java.lang.String geomStr) throws ParseException, java.io.IOException
- Throws:
ParseExceptionjava.io.IOException
-
loadMultipleGeometriesFromFile
public void loadMultipleGeometriesFromFile(int geomIndex, java.lang.String filename) throws java.lang.Exception- Throws:
java.lang.Exception
-
loadGeometryText
public void loadGeometryText(java.lang.String wktA, java.lang.String wktB) throws ParseException, java.io.IOException- Throws:
ParseExceptionjava.io.IOException
-
initTestCaseList
public void initTestCaseList()
-
initList
public void initList(TestCaseList tcl)
-
createNew
public void createNew()
-
getTestCases
public java.util.List getTestCases()
-
getTestCaseList
public TestCaseList getTestCaseList()
-
setCurrentTestCase
public void setCurrentTestCase(TestCaseEdit testCase)
-
getCurrentTestCaseEdit
public TestCaseEdit getCurrentTestCaseEdit()
-
getCurrentTestable
public Testable getCurrentTestable()
-
getCurrentTestIndex
public int getCurrentTestIndex()
-
getTestList
public TestCaseList getTestList()
-
getTestListSize
public int getTestListSize()
-
openXmlFilesAndDirectories
public void openXmlFilesAndDirectories(java.io.File[] files) throws java.lang.Exception- Throws:
java.lang.Exception
-
loadEditList
public void loadEditList(TestCaseList tcl) throws ParseException
- Throws:
ParseException
-
getParsingProblems
public java.util.List getParsingProblems()
- Returns:
- empy list if no errors
-
hasParseErrors
public boolean hasParseErrors()
-
prevCase
public void prevCase()
-
nextCase
public void nextCase()
-
copyCase
public void copyCase()
-
addCase
public void addCase(Geometry[] geoms)
-
addCase
public void addCase(Geometry[] geoms, java.lang.String name)
-
deleteCase
public void deleteCase()
-
setResult
public void setResult(java.lang.Object result)
-
getResult
public java.lang.Object getResult()
-
setOpName
public void setOpName(java.lang.String opName)
-
getOpName
public java.lang.String getOpName()
-
copyResult
public void copyResult(boolean isFormatted)
-
changePrecisionModel
public void changePrecisionModel(PrecisionModel precisionModel) throws ParseException
- Throws:
ParseException
-
-