Package org.locationtech.jts.util
Class TestBuilderProxy
- java.lang.Object
-
- org.locationtech.jts.util.TestBuilderProxy
-
public class TestBuilderProxy extends Object
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 Constructor Description TestBuilderProxy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isActive()
Tests whether the proxy is active (i.e. the TestBuilder is available).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.
-
-
-
Method Detail
-
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
public static void showIndicator(Geometry geom)
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
public static void showIndicator(Geometry geom, Color lineClr)
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
-
-