Class JTSTestBuilder
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.JTSTestBuilder
-
public class JTSTestBuilder extends java.lang.ObjectA 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 JTSTestBuilderappprivate static CommandLinecommandLineprivate static GeometryFunctionRegistryfuncRegistryprivate static java.lang.StringOPT_GEOMFUNC(package private) booleanpackFrameprivate static java.lang.StringPROP_SWING_DEFAULTLAFprivate TestBuilderModeltbModel
-
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 CommandLinecreateCmdLine()static GeometryFunctionRegistrygetFunctionRegistry()static GeometryFactorygetGeometryFactory()static PrecisionModelgetPrecisionModel()private voidinitFrame()static JTSTestBuilderinstance()static voidmain(java.lang.String[] args)Main methodstatic TestBuilderModelmodel()private static voidreadArgs(java.lang.String[] args)private static voidsetLookAndFeel()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.InvocationTargetExceptionSets 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.InterruptedExceptionjava.lang.reflect.InvocationTargetException
-
readArgs
private static void readArgs(java.lang.String[] args) throws ParseException, java.lang.ClassNotFoundException- Throws:
ParseExceptionjava.lang.ClassNotFoundException
-
-