dk.klafbang.tincpn.animation.plugin
Class StepChart
java.lang.Object
dk.klafbang.tincpn.gui.sheet.Sheet
dk.klafbang.tincpn.animation.AnimationSheet
dk.klafbang.tincpn.animation.plugin.StepChart
- All Implemented Interfaces:
- dk.klafbang.tincpn.gui.sheet.hook.ScrollWrap
public class StepChart
- extends dk.klafbang.tincpn.animation.AnimationSheet
- implements dk.klafbang.tincpn.gui.sheet.hook.ScrollWrap
A chart where data-values are visualised by a line, also known as a
histogram.
- Since:
- 1.0
- Author:
- Michael Westergaard
- See Also:
AreaChart
,
GanttChart
,
Histogram
,
PieChart
,
PieChart3D
,
XYChart
Constructor Summary |
StepChart(java.lang.String name,
java.lang.String id)
Constructs a StepChart object. |
Method Summary |
void |
addValue(int value,
java.lang.String series,
java.lang.String label)
Add a new value to the specified series with the given label. |
javax.swing.JComponent |
createAnimation()
|
java.awt.Dimension |
getPreferredSize()
|
void |
reset()
Reset this chart. |
Methods inherited from class dk.klafbang.tincpn.animation.AnimationSheet |
canCoexistWith, getComponentImpl |
Methods inherited from class dk.klafbang.tincpn.gui.sheet.Sheet |
addSheetHook, getComponent, getIndexNode, getText, removeComponent, setText |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StepChart
public StepChart(java.lang.String name,
java.lang.String id)
- Constructs a StepChart object.
- Parameters:
name
- the name of the chartid
-
getPreferredSize
public java.awt.Dimension getPreferredSize()
- Specified by:
getPreferredSize
in class dk.klafbang.tincpn.gui.sheet.Sheet
- See Also:
Sheet.getPreferredSize()
addValue
public void addValue(int value,
java.lang.String series,
java.lang.String label)
- Add a new value to the specified series with the given label.
- Parameters:
value
- the valueseries
- the serieslabel
- the label
createAnimation
public javax.swing.JComponent createAnimation()
- Specified by:
createAnimation
in class dk.klafbang.tincpn.animation.AnimationSheet
- See Also:
AnimationSheet.createAnimation()
reset
public void reset()
- Reset this chart.