Package org.locationtech.jts.util
Class TestBuilderProxy
java.lang.Object
org.locationtech.jts.util.TestBuilderProxy
A proxy to call TestBuilder functions.
If the code is not being run in the context of the
TestBuilder, functions act as a no-op.
It is recommended that functions only be inserted into code temporarily (i.e. in a development environment).
This class is experimental, and is not recommended for production use.
- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isActive()
Tests whether the proxy is active (i.e.static void
showIndicator
(Geometry geom) Shows a geometry as an indicator in the TestBuilder Edit panel.static void
showIndicator
(Geometry geom, Color lineClr) Shows a geometry as an indicator in the TestBuilder Edit panel.
-
Constructor Details
-
TestBuilderProxy
public TestBuilderProxy()
-
-
Method Details
-
isActive
public static boolean isActive()Tests whether the proxy is active (i.e. the TestBuilder is available). This allows avoiding expensive geometry creation if not needed.- Returns:
- true if the proxy is active
-
showIndicator
Shows a geometry as an indicator in the TestBuilder Edit panel. The geometry is only displayed until the next screen refresh. The TestBuilder also provides a menu option to capture indicators on a layer.- Parameters:
geom
- the geometry to display
-
showIndicator
Shows a geometry as an indicator in the TestBuilder Edit panel. The geometry is only displayed until the next screen refresh. The TestBuilder also provides a menu option to capture indicators on a layer.- Parameters:
geom
- the geometry to display
-