public class ComputationCellController extends CellController
cellLayout, cellModel, cellName, controller, statusBar
Constructor and Description |
---|
ComputationCellController(ComputationCellModel model) |
ComputationCellController(NotebookController controller,
ComputationCellModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addFilter() |
void |
addFilterButtonListeners() |
void |
addInputLogsListeners(java.util.List<YLog> logs) |
void |
changeInputLogsCombo(java.util.List<YLog> logs) |
void |
changeStatus(java.lang.String color) |
void |
computeHandler() |
void |
enableAllFilterButtonsBut(int index) |
void |
generateFilterButtonControllers()
This is to generate a controller for every filter model.
|
ComputationCellModel |
getCellModel()
Gets the cell model of the current cell.
|
ConfigurationModalController |
getConfigurationModal() |
javafx.scene.layout.VBox |
getPanelLayout() |
void |
handleExpandVisualiser()
Handler added to the expansion button responsible for increasing the cell
size to the window size
|
void |
handleFullScreen()
Handler added to the fullScreenButton responsible for making the cell go full
screen
|
void |
hide() |
void |
hideConfigurationModal(boolean removeFilter)
Method called when the configuration modal has to be hidden.
|
void |
initialize()
Gets executed after the constructor.
|
void |
loadFilter(int index,
FilterButtonModel model) |
void |
loadVisualizer()
Load visualizer.
|
void |
removeFilter(FilterButtonModel filter) |
void |
setCellModel(CellModel cellModel)
Sets the cell model of the current cell.
|
void |
setPanelLayout(javafx.scene.layout.VBox panelLayout) |
void |
setXLog() |
void |
show() |
void |
showModalFilterConfiguration(FilterdAbstractConfig filterConfig,
FilterButtonController filterConfigController)
Method called when the filter configuration dialog should be shown in the
configuration modal.
|
void |
showModalFilterList(FilterButtonController filterButtonController,
FilterButtonModel filterButtonModel)
Method called when the list of available filters should be shown in the
configuration modal.
|
addPropertyChangeListener, changeCellName, getCellLayout, getController, getNotebookController, handleCellName, handleStatusBar, prependCellButtonHandler, remove, setCellLayout, setController
public ComputationCellController(ComputationCellModel model)
public ComputationCellController(NotebookController controller, ComputationCellModel model)
public void initialize()
public void addFilter()
public void loadFilter(int index, FilterButtonModel model)
public void generateFilterButtonControllers()
public void addInputLogsListeners(java.util.List<YLog> logs)
public void addFilterButtonListeners()
public void removeFilter(FilterButtonModel filter)
public javafx.scene.layout.VBox getPanelLayout()
public void setPanelLayout(javafx.scene.layout.VBox panelLayout)
public void changeInputLogsCombo(java.util.List<YLog> logs)
public void setCellModel(CellModel cellModel) throws java.lang.IllegalArgumentException
setCellModel
in class CellController
cellModel
- The ComputationCellModel to set.java.lang.IllegalArgumentException
- Thrown if cellModel is not of type ComputationCellModel.public ComputationCellModel getCellModel()
getCellModel
in class CellController
public void handleExpandVisualiser()
public void handleFullScreen()
public void computeHandler()
public void setXLog()
public void loadVisualizer()
public void changeStatus(java.lang.String color)
changeStatus
in class CellController
public void hideConfigurationModal(boolean removeFilter)
removeFilter
- boolean stating whether the last filter button should be removed
(when the user cancels the configuration)public void showModalFilterConfiguration(FilterdAbstractConfig filterConfig, FilterButtonController filterConfigController)
filterConfig
- Filter configuration whose configuration panel should be shownfilterConfigController
- Filter button whose filter is being configuredpublic void showModalFilterList(FilterButtonController filterButtonController, FilterButtonModel filterButtonModel)
filterButtonController
- Filter button for which the user wants to pick the filterfilterButtonModel
- Filter button model which should be populated with the chosen
configurationpublic void enableAllFilterButtonsBut(int index)
public void show()
show
in class CellController
public void hide()
hide
in class CellController
public ConfigurationModalController getConfigurationModal()