Class ResultController
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.controller.ResultController
-
public class ResultController extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) JTSTestBuilderFrameframeprivate javax.swing.TimerfuncTimer(package private) TestBuilderModelmodelprivate longrunMillisprivate static java.text.NumberFormattimeFmtprivate static intTIMER_DELAY_IN_MILLISprivate SwingWorkerworker
-
Constructor Summary
Constructors Constructor Description ResultController(JTSTestBuilderFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidclearFunctionWorker()private voidclearResult()private voidresetUI()If result is null, clears result info.private voidrunFunctionWorker(GeometryFunctionInvocation functionInvoc, boolean createNew)voidscalarFunctionPanel_functionExecuted(SpatialFunctionPanelEvent e)voidspatialFunctionPanel_functionExecuted(SpatialFunctionPanelEvent e)private voidstartFunctionMonitor()private voidstopFunctionMonitor()private voidupdateResult(GeometryFunctionInvocation functionDesc, java.lang.Object result, Stopwatch timer)
-
-
-
Field Detail
-
timeFmt
private static java.text.NumberFormat timeFmt
-
frame
JTSTestBuilderFrame frame
-
model
TestBuilderModel model
-
worker
private SwingWorker worker
-
funcTimer
private javax.swing.Timer funcTimer
-
runMillis
private long runMillis
-
TIMER_DELAY_IN_MILLIS
private static final int TIMER_DELAY_IN_MILLIS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ResultController
public ResultController(JTSTestBuilderFrame frame)
-
-
Method Detail
-
spatialFunctionPanel_functionExecuted
public void spatialFunctionPanel_functionExecuted(SpatialFunctionPanelEvent e)
-
clearResult
private void clearResult()
-
resetUI
private void resetUI()
If result is null, clears result info.- Parameters:
result-object-object-timer-
-
updateResult
private void updateResult(GeometryFunctionInvocation functionDesc, java.lang.Object result, Stopwatch timer)
-
runFunctionWorker
private void runFunctionWorker(GeometryFunctionInvocation functionInvoc, boolean createNew)
-
clearFunctionWorker
private void clearFunctionWorker()
-
startFunctionMonitor
private void startFunctionMonitor()
-
stopFunctionMonitor
private void stopFunctionMonitor()
-
scalarFunctionPanel_functionExecuted
public void scalarFunctionPanel_functionExecuted(SpatialFunctionPanelEvent e)
-
-