public class ComputationCell extends Cell implements javax.swing.event.ListSelectionListener, java.awt.event.ActionListener
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
add(Filter selectedFilter)
Adds the selected filter to the list of filters.
|
void |
exportOutputLog()
Exports output log into the workspace.
|
java.util.List<Filter> |
getFilters()
Gets the list of filters.
|
LogType |
getInputLog()
Gets the input log.
|
LogType |
getOutputLog()
Gets the output log.
|
Filter |
getSelectedFilter()
Gets the selected filter.
|
LogType |
getSelectedLog()
Gets the selected log.
|
org.deckfour.uitopia.api.model.ViewType |
getSelectedView()
Gets the selected view.
|
CellTemplate |
getTemplate()
Gets a template for the cell.
|
java.util.List<org.deckfour.uitopia.api.model.ViewType> |
getViews()
Gets a list of possible views.
|
javax.swing.JComponent |
getVisualization(org.deckfour.uitopia.api.model.ViewType type)
Gets a widget for the given view.
|
javax.swing.JComponent |
getWidget(boolean doReset)
Gets a widget for this cell.
|
void |
setInputLog(LogType inputLog)
Sets the input log.
|
void |
setInputLogs(java.util.List<LogType> cellOutputLogs)
Updates the list of input logs.
|
void |
setLastView(org.deckfour.uitopia.api.model.ViewType view)
Sets the view.
|
void |
setMainWidget(javax.swing.JComponent component)
Shows the given component in the main widget.
|
void |
setSelectedFilter(Filter selectedFilter)
Sets the selected filter to the given filter.
|
void |
setSelectedLog(LogType selectedLog)
Sets the selected log to the given log.
|
void |
setSelectedView(org.deckfour.uitopia.api.model.ViewType selectedView)
Sets the selected view to the given view.
|
void |
update()
Updates the cell.
|
void |
updated()
To be called when something in this cell has changed.
|
void |
updateOutputLog()
Update the output log in the background.
|
void |
updateOutputLog(boolean doInBackground)
Update the output log.
|
void |
valueChanged(javax.swing.event.ListSelectionEvent e)
Handles changes.
|
getContext, getName, getNotebook
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)
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.public java.util.List<Filter> getFilters()
public void setInputLogs(java.util.List<LogType> cellOutputLogs)
cellOutputLogs
- The new list of preceding output logspublic void updateOutputLog()
public void setInputLog(LogType inputLog)
inputLog
- The input logpublic void setLastView(org.deckfour.uitopia.api.model.ViewType view)
view
- The viewpublic void updateOutputLog(boolean doInBackground)
doInBackground
- Whether to do the update in the background.public javax.swing.JComponent getWidget(boolean doReset)
public void setMainWidget(javax.swing.JComponent component)
component
- public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void updated()
public void add(Filter selectedFilter)
selectedFilter
- The selected filterpublic LogType getOutputLog()
public LogType getInputLog()
public java.util.List<org.deckfour.uitopia.api.model.ViewType> getViews()
public javax.swing.JComponent getVisualization(org.deckfour.uitopia.api.model.ViewType type)
type
- The given viewpublic void exportOutputLog()
public Filter getSelectedFilter()
public void setSelectedFilter(Filter selectedFilter)
selectedFilter
- The given filterpublic org.deckfour.uitopia.api.model.ViewType getSelectedView()
public void setSelectedView(org.deckfour.uitopia.api.model.ViewType selectedView)
selectedView
- the given viewpublic LogType getSelectedLog()
public void setSelectedLog(LogType selectedLog)
selectedLog
- The given log.public CellTemplate getTemplate()
getTemplate
in class Cell