Class JTSTestBuilder
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.JTSTestBuilder
-
public class JTSTestBuilder extends java.lang.Object
A Swing application which supports creating geometries and running JTS operations.Command Line Options
-geomfunc { <classname> } Specifies classes whose public static methods will be loaded as geometry functions - Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description static JTSTestBuilder
app
private static CommandLine
commandLine
private static GeometryFunctionRegistry
funcRegistry
private static java.lang.String
OPT_GEOMFUNC
(package private) boolean
packFrame
private static java.lang.String
PROP_SWING_DEFAULTLAF
private TestBuilderModel
tbModel
-
Constructor Summary
Constructors Constructor Description JTSTestBuilder()
Construct the application
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static CommandLine
createCmdLine()
static GeometryFunctionRegistry
getFunctionRegistry()
static GeometryFactory
getGeometryFactory()
static PrecisionModel
getPrecisionModel()
private void
initFrame()
static JTSTestBuilder
instance()
static void
main(java.lang.String[] args)
Main methodstatic TestBuilderModel
model()
private static void
readArgs(java.lang.String[] args)
private static void
setLookAndFeel()
Sets the look and feel, using user-defined LAF if provided as a system property.
-
-
-
Field Detail
-
PROP_SWING_DEFAULTLAF
private static final java.lang.String PROP_SWING_DEFAULTLAF
- See Also:
- Constant Field Values
-
OPT_GEOMFUNC
private static final java.lang.String OPT_GEOMFUNC
- See Also:
- Constant Field Values
-
funcRegistry
private static GeometryFunctionRegistry funcRegistry
-
commandLine
private static CommandLine commandLine
-
app
public static JTSTestBuilder app
-
tbModel
private TestBuilderModel tbModel
-
packFrame
boolean packFrame
-
-
Method Detail
-
instance
public static JTSTestBuilder instance()
-
model
public static TestBuilderModel model()
-
createCmdLine
private static CommandLine createCmdLine()
-
getFunctionRegistry
public static GeometryFunctionRegistry getFunctionRegistry()
-
getPrecisionModel
public static PrecisionModel getPrecisionModel()
-
getGeometryFactory
public static GeometryFactory getGeometryFactory()
-
initFrame
private void initFrame()
-
main
public static void main(java.lang.String[] args)
Main method
-
setLookAndFeel
private static void setLookAndFeel() throws java.lang.InterruptedException, java.lang.reflect.InvocationTargetException
Sets the look and feel, using user-defined LAF if provided as a system property. e.g. Metal: -Dswing.defaultlaf=javax.swing.plaf.metal.MetalLookAndFeel- Throws:
java.lang.InterruptedException
java.lang.reflect.InvocationTargetException
-
readArgs
private static void readArgs(java.lang.String[] args) throws ParseException, java.lang.ClassNotFoundException
- Throws:
ParseException
java.lang.ClassNotFoundException
-
-