public class TimeChartPanel extends java.lang.Object implements org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel, AnimationListener
Constructor and Description |
---|
TimeChartPanel(java.lang.String panelName,
org.jfree.data.time.TimeSeriesCollection dataset,
AnimationTimer timer,
java.awt.Color[] seriesColors,
boolean legend,
java.lang.Boolean showNumbers) |
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getComponent()
Returns the component that is shown if this panel is activated by the
user.
|
double |
getHeightInView()
Returns the preferred height of this component when shown to the user.
|
java.lang.String |
getPanelName()
Returns the name of the panel.
|
double |
getWidthInView()
Returns the preferred width of this component when shown to the user.
|
void |
setLabelPosChart(boolean showNumbers) |
void |
setParent(org.processmining.framework.util.ui.scalableview.ScalableViewPanel viewPanel)
This method is called by the ProM scalable view as soon as the panel is
added to this view.
|
void |
setScalableComponent(org.processmining.framework.util.ui.scalableview.ScalableComponent scalable)
This method is called by the ProM scalable view as soon as the panel is
added to this view.
|
void |
started() |
void |
stopped() |
void |
updated()
This method should be called if the component is updated (layout,
content, etc.)
|
void |
updateModelTime(long modelTime) |
void |
willChangeVisibility(boolean visible)
This method is called by the ProMScalableView panel just before the
component of this interaction panel will be shown to the user or hidden
from the user.
|
public TimeChartPanel(java.lang.String panelName, org.jfree.data.time.TimeSeriesCollection dataset, AnimationTimer timer, java.awt.Color[] seriesColors, boolean legend, java.lang.Boolean showNumbers)
public void updateModelTime(long modelTime)
updateModelTime
in interface AnimationListener
public void setLabelPosChart(boolean showNumbers)
public javax.swing.JComponent getComponent()
org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
this
in this method.getComponent
in interface org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
public double getHeightInView()
org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
getHeightInView
in interface org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
public java.lang.String getPanelName()
org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
getPanelName
in interface org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
public double getWidthInView()
org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
getWidthInView
in interface org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
public void willChangeVisibility(boolean visible)
org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
willChangeVisibility
in interface org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
visible
- TODOpublic void setParent(org.processmining.framework.util.ui.scalableview.ScalableViewPanel viewPanel)
org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
setParent
in interface org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
public void setScalableComponent(org.processmining.framework.util.ui.scalableview.ScalableComponent scalable)
org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
setScalableComponent
in interface org.processmining.framework.util.ui.scalableview.interaction.ViewInteractionPanel
public void updated()
org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener
updated
in interface org.processmining.framework.util.ui.scalableview.ScalableComponent.UpdateListener
public void started()
started
in interface AnimationListener
public void stopped()
stopped
in interface AnimationListener