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) JTSTestBuilderFrame
frame
private javax.swing.Timer
funcTimer
(package private) TestBuilderModel
model
private long
runMillis
private static java.text.NumberFormat
timeFmt
private static int
TIMER_DELAY_IN_MILLIS
private SwingWorker
worker
-
Constructor Summary
Constructors Constructor Description ResultController(JTSTestBuilderFrame frame)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
clearFunctionWorker()
private void
clearResult()
private void
resetUI()
If result is null, clears result info.private void
runFunctionWorker(GeometryFunctionInvocation functionInvoc, boolean createNew)
void
scalarFunctionPanel_functionExecuted(SpatialFunctionPanelEvent e)
void
spatialFunctionPanel_functionExecuted(SpatialFunctionPanelEvent e)
private void
startFunctionMonitor()
private void
stopFunctionMonitor()
private void
updateResult(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)
-
-