dk.klafbang.tincpn.animation.plugin
Class AreaChart
java.lang.Object
dk.klafbang.tincpn.gui.sheet.Sheet
dk.klafbang.tincpn.animation.AnimationSheet
dk.klafbang.tincpn.animation.plugin.AreaChart
- All Implemented Interfaces:
- dk.klafbang.tincpn.gui.sheet.hook.ScrollWrap
public class AreaChart
- extends dk.klafbang.tincpn.animation.AnimationSheet
- implements dk.klafbang.tincpn.gui.sheet.hook.ScrollWrap
Allows you to create a graph where the data values are visualised by filling
the area below them.
- Since:
- 1.0
- Author:
- Michael Westergaard
- See Also:
GanttChart
,
Histogram
,
PieChart
,
PieChart3D
,
StepChart
,
XYChart
Constructor Summary |
AreaChart(java.lang.String name,
java.lang.String id)
Constructs an AreaChart object. |
Method Summary |
void |
addValue(int value,
java.lang.String series,
java.lang.String label)
Add a new value to a given series with a 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 |
AreaChart
public AreaChart(java.lang.String name,
java.lang.String id)
- Constructs an AreaChart 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 a given series with a 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.