public abstract class AbstractCtrl extends Object
Initializable
and refreshable by both external
control flow and other controllers backed by the same fit processor.Modifier and Type | Field and Description |
---|---|
protected FitProcessor |
fp |
static String |
FXML_DIR |
protected AbstractCtrl |
parentCtrl |
Constructor and Description |
---|
AbstractCtrl() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Release the reources occupied by fields in the controller (e.g.
|
protected DatasetIOService |
getDss()
Gets the dataset service in context.
|
static FXMLLoader |
getFXMLLoader(String name) |
protected FitParams<FloatType> |
getIRFInfo()
Retrieves the current IRF information parameter.
|
protected LogService |
getLogs()
Gets the log service in context.
|
protected ObjectService |
getObs()
Gets the object service in context.
|
protected OpService |
getOps()
Gets the Op service in context.
|
protected FitParams<FloatType> |
getParams()
Retrieves the current fitting parameter.
|
protected FitResults |
getResults()
Retrieves the current fitted results.
|
protected UIService |
getUIs()
Gets the UI service in context.
|
void |
initialize() |
protected void |
refresh(FitParams<FloatType> params,
FitResults results)
The callback called when the controller is supposed to refresh itself based on the parameters
and the results provided by the arguments.
|
void |
requestRefresh()
Called by external control flow to notify the controller to refresh itself.
|
protected void |
requestUpdate()
Called by the controller to notify the fit processor to perform a fit and other controllers
to update themselves based on the fit results.
|
void |
setFitProcessor(FitProcessor fp)
Sets the fit processor behind the controller.
|
void |
setParentCtrl(AbstractCtrl parentCtrl)
Sets the parent controller of this controller.
|
public static final String FXML_DIR
protected FitProcessor fp
protected AbstractCtrl parentCtrl
public static FXMLLoader getFXMLLoader(String name) throws IOException
IOException
public void initialize()
public void setFitProcessor(FitProcessor fp)
fp
- the fit processorpublic void setParentCtrl(AbstractCtrl parentCtrl)
parentCtrl
- the parent controller of this controllerpublic void requestRefresh()
public void destroy()
fp
).protected FitParams<FloatType> getParams()
protected FitParams<FloatType> getIRFInfo()
protected FitResults getResults()
protected OpService getOps()
protected UIService getUIs()
protected ObjectService getObs()
protected DatasetIOService getDss()
protected LogService getLogs()
protected void requestUpdate()
protected void refresh(FitParams<FloatType> params, FitResults results)
params
- the active fitting parameterresults
- the active fitted resultsCopyright © 2015–2022 FLIMLib. All rights reserved.