Class ComputationCell
- java.lang.Object
-
- org.processmining.filterbook.cells.Cell
-
- org.processmining.filterbook.cells.ComputationCell
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.util.EventListener,javax.swing.event.ListSelectionListener
public class ComputationCell extends Cell implements javax.swing.event.ListSelectionListener, java.awt.event.ActionListener
-
-
Constructor Summary
Constructors Constructor Description ComputationCell(org.processmining.contexts.uitopia.UIPluginContext context, org.processmining.framework.plugin.ProMCanceller canceller, Notebook notebook, java.lang.String name, LogType notebookInputLog, java.util.List<LogType> cellOutputLogs)Construct a new computation cell with given context, canceller, notebook, name, notebook input log, and output logs of computation cells preceding this cell.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidadd(Filter selectedFilter)Adds the selected filter to the list of filters.voidexportOutputLog()Exports output log into the workspace.java.util.List<Filter>getFilters()Gets the list of filters.LogTypegetInputLog()Gets the input log.LogTypegetOutputLog()Gets the output log.FiltergetSelectedFilter()Gets the selected filter.LogTypegetSelectedLog()Gets the selected log.org.deckfour.uitopia.api.model.ViewTypegetSelectedView()Gets the selected view.CellTemplategetTemplate()Gets a template for the cell.java.util.List<org.deckfour.uitopia.api.model.ViewType>getViews()Gets a list of possible views.javax.swing.JComponentgetVisualization(org.deckfour.uitopia.api.model.ViewType type)Gets a widget for the given view.javax.swing.JComponentgetWidget(boolean doReset)Gets a widget for this cell.voidsetInputLog(LogType inputLog)Sets the input log.voidsetInputLogs(java.util.List<LogType> cellOutputLogs)Updates the list of input logs.voidsetLastView(org.deckfour.uitopia.api.model.ViewType view)Sets the view.voidsetMainWidget(javax.swing.JComponent component)Shows the given component in the main widget.voidsetSelectedFilter(Filter selectedFilter)Sets the selected filter to the given filter.voidsetSelectedLog(LogType selectedLog)Sets the selected log to the given log.voidsetSelectedView(org.deckfour.uitopia.api.model.ViewType selectedView)Sets the selected view to the given view.voidupdate()Updates the cell.voidupdated()To be called when something in this cell has changed.voidupdateOutputLog()Update the output log in the background.voidupdateOutputLog(boolean doInBackground)Update the output log.voidvalueChanged(javax.swing.event.ListSelectionEvent e)Handles changes.-
Methods inherited from class org.processmining.filterbook.cells.Cell
getContext, getName, getNotebook, setName
-
-
-
-
Constructor Detail
-
ComputationCell
public ComputationCell(org.processmining.contexts.uitopia.UIPluginContext context, org.processmining.framework.plugin.ProMCanceller canceller, Notebook notebook, java.lang.String name, LogType notebookInputLog, java.util.List<LogType> cellOutputLogs)Construct a new computation cell with given context, canceller, notebook, name, notebook input log, and output logs of computation cells preceding this cell.- Parameters:
context- The given contextcanceller- The given cancellernotebook- The given notebookname- The give namenotebookInputLog- The input log of the notebookcellOutputLogs- The list of output logs of preceding computation cells.
-
-
Method Detail
-
getFilters
public java.util.List<Filter> getFilters()
Gets the list of filters.- Returns:
- The list of filters.
-
setInputLogs
public void setInputLogs(java.util.List<LogType> cellOutputLogs)
Updates the list of input logs.- Parameters:
cellOutputLogs- The new list of preceding output logs
-
updateOutputLog
public void updateOutputLog()
Update the output log in the background.
-
setInputLog
public void setInputLog(LogType inputLog)
Sets the input log. Needed when creating from template.- Parameters:
inputLog- The input log
-
setLastView
public void setLastView(org.deckfour.uitopia.api.model.ViewType view)
Sets the view. Needed when creating from template.- Parameters:
view- The view
-
updateOutputLog
public void updateOutputLog(boolean doInBackground)
Update the output log.- Parameters:
doInBackground- Whether to do the update in the background.
-
getWidget
public javax.swing.JComponent getWidget(boolean doReset)
Gets a widget for this cell.
-
setMainWidget
public void setMainWidget(javax.swing.JComponent component)
Shows the given component in the main widget.- Parameters:
component-
-
valueChanged
public void valueChanged(javax.swing.event.ListSelectionEvent e)
Handles changes.- Specified by:
valueChangedin interfacejavax.swing.event.ListSelectionListener
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
updated
public void updated()
To be called when something in this cell has changed.
-
add
public void add(Filter selectedFilter)
Adds the selected filter to the list of filters.- Parameters:
selectedFilter- The selected filter
-
getOutputLog
public LogType getOutputLog()
Gets the output log.- Returns:
- The output log.
-
getInputLog
public LogType getInputLog()
Gets the input log.- Returns:
- The input log.
-
getViews
public java.util.List<org.deckfour.uitopia.api.model.ViewType> getViews()
Gets a list of possible views.- Returns:
- A list of possible views.
-
getVisualization
public javax.swing.JComponent getVisualization(org.deckfour.uitopia.api.model.ViewType type)
Gets a widget for the given view.- Parameters:
type- The given view- Returns:
- TA widget for the given view.
-
exportOutputLog
public void exportOutputLog()
Exports output log into the workspace.
-
getSelectedFilter
public Filter getSelectedFilter()
Gets the selected filter.- Returns:
- The selected filter.
-
setSelectedFilter
public void setSelectedFilter(Filter selectedFilter)
Sets the selected filter to the given filter.- Parameters:
selectedFilter- The given filter
-
getSelectedView
public org.deckfour.uitopia.api.model.ViewType getSelectedView()
Gets the selected view.- Returns:
- The selected view
-
setSelectedView
public void setSelectedView(org.deckfour.uitopia.api.model.ViewType selectedView)
Sets the selected view to the given view.- Parameters:
selectedView- the given view
-
getSelectedLog
public LogType getSelectedLog()
Gets the selected log.- Returns:
- The selected log
-
setSelectedLog
public void setSelectedLog(LogType selectedLog)
Sets the selected log to the given log.- Parameters:
selectedLog- The given log.
-
getTemplate
public CellTemplate getTemplate()
Gets a template for the cell.- Specified by:
getTemplatein classCell- Returns:
- A cell template for this cell
-
-