public class LogOverviewVisualizer extends java.lang.Object implements org.processmining.framework.util.ui.scalableview.ScalableComponent, InteractivityManager, org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener
Constructor and Description |
---|
LogOverviewVisualizer() |
Modifier and Type | Method and Description |
---|---|
void |
addUpdateListener(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
Adds an updatelistener to this scalable component.
|
void |
exportToFramework(org.deckfour.xes.model.XLog log,
java.lang.String name)
Export the provided event log instance to the ProM Framework under the specified name.
|
java.util.List<Filter> |
findAvailableFilters()
Find all (annotated) filters that implement the Filter interface.
|
java.util.List<OverviewVisualizationInitializer> |
findAvailableInteractiveVisualizations()
Find all (annotated) initializers that are provided to initialize the
corresponding interactive visualization.
|
java.util.SortedSet<EID> |
getAllTaggedEvents()
Get a set of all tagged events.
|
javax.swing.JComponent |
getComponent()
Returns the component that will be scaled using getScale and setScale
methods
Most implementations will actually override JComponent and return
this in this method. |
InteractiveVisualization |
getCurrentView()
Get the currently active interactive visualization.
|
java.util.Set<java.lang.String> |
getInstances(java.lang.String tagName)
Get a set of instance names available for the specified tag.
|
org.deckfour.xes.info.XLogInfo |
getLogInfo()
Get the XLogInfo instance corresponding to the log.
|
double |
getScale()
Returns the current scale.
|
java.util.Map<java.lang.String,java.util.SortedSet<EID>> |
getTag(java.lang.String name)
Get a tag.
|
java.util.Map<java.lang.String,java.util.SortedSet<EID>> |
getTagOriginals(java.lang.String name)
Additional method used to retrieve the original Event IDs.
|
java.util.Set<java.lang.String> |
getTags()
Get a set of available tags.
|
java.util.Map<java.lang.String,java.util.SortedSet<EID>> |
getVisible()
Retrieve the stored visible elements.
|
boolean |
isTagEnabled(java.lang.String tagName,
java.lang.String instanceName)
Check if a tag is currently enabled.
|
void |
removeTag(java.lang.String name)
Delete an existing tag.
|
void |
removeUpdateListener(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
Removes an updatelistener from this scalable component.
|
void |
selectView(InteractiveVisualization view)
Change the active interactive visualization to the
one specified.
|
void |
setScale(double newScale)
Sets the current scale.
|
void |
setTag(java.lang.String name,
java.util.Map<java.lang.String,java.util.SortedSet<EID>> collection)
Set a new tag or overwrite an existing tag.
|
void |
setTagEnabled(java.lang.String tagName,
boolean enable)
Enable or disable a complete tag (i.e.
|
void |
setTagInstanceEnabled(java.lang.String tagName,
java.lang.String instanceName,
boolean enable)
Enable or disable an instance of a tag.
|
void |
setVisible(java.util.Map<java.lang.String,java.util.SortedSet<EID>> visibleElements)
Stores a collection that defines which elements are currently visible in
the active visualization to a tag 'Visible'.
|
javax.swing.JComponent |
showLogOverview(org.processmining.contexts.uitopia.UIPluginContext context,
org.deckfour.xes.model.XLog source) |
void |
updated()
This method should be called if the component is updated (layout,
content, etc.)
|
void |
updateInteractiveViews(boolean logChanged,
boolean tagsChanged)
Trigger an update of all interactive views.
|
public javax.swing.JComponent showLogOverview(org.processmining.contexts.uitopia.UIPluginContext context, org.deckfour.xes.model.XLog source)
public java.util.List<OverviewVisualizationInitializer> findAvailableInteractiveVisualizations()
public java.util.List<Filter> findAvailableFilters()
public InteractiveVisualization getCurrentView()
public void selectView(InteractiveVisualization view)
view
- Interactive visualization to be active.public void exportToFramework(org.deckfour.xes.model.XLog log, java.lang.String name)
log
- The event log to export.name
- The name for the newly created object.public void updateInteractiveViews(boolean logChanged, boolean tagsChanged)
InteractivityManager
updateInteractiveViews
in interface InteractivityManager
logChanged
- Indicate whether or not the log has been changed.
(e.g. by filtering)tagsChanged
- Indicate whether or not tags have been changed.public java.util.Map<java.lang.String,java.util.SortedSet<EID>> getVisible()
InteractivityManager
getVisible
in interface InteractivityManager
public void setVisible(java.util.Map<java.lang.String,java.util.SortedSet<EID>> visibleElements)
InteractivityManager
setVisible
in interface InteractivityManager
visibleElements
- The collection of instances that are currently visible
in the visualization.public java.util.Set<java.lang.String> getTags()
InteractivityManager
getTags
in interface InteractivityManager
public java.util.Set<java.lang.String> getInstances(java.lang.String tagName)
InteractivityManager
getInstances
in interface InteractivityManager
tagName
- Name of the tag.public java.util.Map<java.lang.String,java.util.SortedSet<EID>> getTag(java.lang.String name)
InteractivityManager
getTag
in interface InteractivityManager
name
- Name of the tag.public java.util.Map<java.lang.String,java.util.SortedSet<EID>> getTagOriginals(java.lang.String name)
name
- Name of the tag.public void setTag(java.lang.String name, java.util.Map<java.lang.String,java.util.SortedSet<EID>> collection)
InteractivityManager
setTag
in interface InteractivityManager
name
- Name of the tag.collection
- Collection of instances to be tagged.public void removeTag(java.lang.String name)
InteractivityManager
removeTag
in interface InteractivityManager
name
- Name of the tag.public void setTagEnabled(java.lang.String tagName, boolean enable)
InteractivityManager
setTagEnabled
in interface InteractivityManager
tagName
- Name of the tag.enable
- Enable (true) or disable (false).public void setTagInstanceEnabled(java.lang.String tagName, java.lang.String instanceName, boolean enable)
InteractivityManager
setTagInstanceEnabled
in interface InteractivityManager
tagName
- Name of the tag.instanceName
- Name of the instance.enable
- Enable (true) or disable (false).public boolean isTagEnabled(java.lang.String tagName, java.lang.String instanceName)
InteractivityManager
isTagEnabled
in interface InteractivityManager
tagName
- Name of the tag.instanceName
- Name of the instance.public java.util.SortedSet<EID> getAllTaggedEvents()
InteractivityManager
getAllTaggedEvents
in interface InteractivityManager
public org.deckfour.xes.info.XLogInfo getLogInfo()
InteractivityManager
getLogInfo
in interface InteractivityManager
public javax.swing.JComponent getComponent()
org.processmining.framework.util.ui.scalableview.ScalableComponent
this
in this method.getComponent
in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
public double getScale()
org.processmining.framework.util.ui.scalableview.ScalableComponent
getScale
in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
public void setScale(double newScale)
org.processmining.framework.util.ui.scalableview.ScalableComponent
setScale
in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
public void addUpdateListener(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
org.processmining.framework.util.ui.scalableview.ScalableComponent
addUpdateListener
in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
public void removeUpdateListener(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
org.processmining.framework.util.ui.scalableview.ScalableComponent
removeUpdateListener
in interface org.processmining.framework.util.ui.scalableview.ScalableComponent
public void updated()
org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener
updated
in interface org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener