Package org.evoludo.graphics
Interface AbstractGraph.Controller
- All Known Subinterfaces:
GenericPopGraph.PopGraphController
- All Known Implementing Classes:
AbstractView
,Console
,Distribution
,GenericPop
,Histogram
,Mean
,Phase2D
,Pop2D
,Pop3D
,S3
- Enclosing class:
AbstractGraph<B>
public static interface AbstractGraph.Controller
The base interface for communicating with the controller of all graphs.
-
Method Summary
Modifier and TypeMethodDescriptionGet the logger for returning progress, problems and messages to user.getModel()
Get the type of the model supplying the data visualized on the graph.getType()
Get the type of data visualized on the graph.boolean
Checks if the controller is busy running calculations.void
Notifies the controller of the completion of the layouting process.default void
Opportunity for the controller to add functionality to the context menu (optional implementation).default boolean
setInitialState
(double[] init) Notifies the controller that the user requested setting a new initial configurationinit
(optional implementation).
-
Method Details
-
getType
Data getType()Get the type of data visualized on the graph.- Returns:
- the data type
-
getModel
Model getModel()Get the type of the model supplying the data visualized on the graph.- Returns:
- the model type
-
getLogger
Logger getLogger()Get the logger for returning progress, problems and messages to user.- Returns:
- the logger for messages
-
layoutComplete
void layoutComplete()Notifies the controller of the completion of the layouting process. -
isRunning
boolean isRunning()Checks if the controller is busy running calculations.- Returns:
true
if calculations are running
-
populateContextMenu
Opportunity for the controller to add functionality to the context menu (optional implementation).- Parameters:
menu
- the context menu
-
setInitialState
default boolean setInitialState(double[] init) Notifies the controller that the user requested setting a new initial configurationinit
(optional implementation).- Parameters:
init
- the new initial configuration- Returns:
true
if the request was honoured
-