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)
InteractivityManagerupdateInteractiveViews in interface InteractivityManagerlogChanged - 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()
InteractivityManagergetVisible in interface InteractivityManagerpublic void setVisible(java.util.Map<java.lang.String,java.util.SortedSet<EID>> visibleElements)
InteractivityManagersetVisible in interface InteractivityManagervisibleElements - The collection of instances that are currently visible
in the visualization.public java.util.Set<java.lang.String> getTags()
InteractivityManagergetTags in interface InteractivityManagerpublic java.util.Set<java.lang.String> getInstances(java.lang.String tagName)
InteractivityManagergetInstances in interface InteractivityManagertagName - Name of the tag.public java.util.Map<java.lang.String,java.util.SortedSet<EID>> getTag(java.lang.String name)
InteractivityManagergetTag in interface InteractivityManagername - 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)
InteractivityManagersetTag in interface InteractivityManagername - Name of the tag.collection - Collection of instances to be tagged.public void removeTag(java.lang.String name)
InteractivityManagerremoveTag in interface InteractivityManagername - Name of the tag.public void setTagEnabled(java.lang.String tagName,
boolean enable)
InteractivityManagersetTagEnabled in interface InteractivityManagertagName - Name of the tag.enable - Enable (true) or disable (false).public void setTagInstanceEnabled(java.lang.String tagName,
java.lang.String instanceName,
boolean enable)
InteractivityManagersetTagInstanceEnabled in interface InteractivityManagertagName - 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)
InteractivityManagerisTagEnabled in interface InteractivityManagertagName - Name of the tag.instanceName - Name of the instance.public java.util.SortedSet<EID> getAllTaggedEvents()
InteractivityManagergetAllTaggedEvents in interface InteractivityManagerpublic org.deckfour.xes.info.XLogInfo getLogInfo()
InteractivityManagergetLogInfo in interface InteractivityManagerpublic javax.swing.JComponent getComponent()
org.processmining.framework.util.ui.scalableview.ScalableComponentthis in this method.getComponent in interface org.processmining.framework.util.ui.scalableview.ScalableComponentpublic double getScale()
org.processmining.framework.util.ui.scalableview.ScalableComponentgetScale in interface org.processmining.framework.util.ui.scalableview.ScalableComponentpublic void setScale(double newScale)
org.processmining.framework.util.ui.scalableview.ScalableComponentsetScale in interface org.processmining.framework.util.ui.scalableview.ScalableComponentpublic void addUpdateListener(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
org.processmining.framework.util.ui.scalableview.ScalableComponentaddUpdateListener in interface org.processmining.framework.util.ui.scalableview.ScalableComponentpublic void removeUpdateListener(org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener listener)
org.processmining.framework.util.ui.scalableview.ScalableComponentremoveUpdateListener in interface org.processmining.framework.util.ui.scalableview.ScalableComponentpublic void updated()
org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListenerupdated in interface org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener