org.askalon.graph.chart
Interface LineBarChart
- All Superinterfaces:
- Chart, Cleanable, NormalizeableChart, OrderedChart, SectionChart
- All Known Subinterfaces:
- LinearChart
public interface LineBarChart
- extends NormalizeableChart, OrderedChart
Provides an interface for the line-bar chart, providing access to
basic functionality like the setting of values, order and visability.
The line-bar Chart allows to display one line of stacked bars
that can be grouped in several levels. Besides components can be exchanged,
hidden and normalized. The number of bars needs not to be known at
start and may change.
- Author:
- Georg Schild and Franz Endstrasser
Method Summary |
String |
getDescription(int index)
Gets the description for the given index |
void |
removeEntity(int index)
Removes the entity specified by index . |
void |
setDescription(int index,
String desc)
Sets the description of the entity specified by the index
to the new value. |
void |
setValue(int idx,
int section,
double value)
Sets the value for the section determined
by the section of the entity
specified by the index idx . |
Methods inherited from interface org.askalon.graph.chart.Chart |
getChartConfiguration, getChartMenu, getChartName, getLegend, getUnit, getXAxisText, getYAxisText, isDisableUpdate, isEdgesVisible, refreshConfiguration, resetConfiguration, setChartConfiguration, setDisableUpdate, setEdgesVisible, setUnit, setXAxisText, setYAxisText |
setDescription
void setDescription(int index,
String desc)
- Sets the description of the entity specified by the index
to the new value. Too long descriptions will be shorten.
- Parameters:
index
- the index of the entity whose description should be setdesc
- the new description for this entity- See Also:
Constants.MAX_DESC_LENGTH
getDescription
String getDescription(int index)
- Gets the description for the given index
- Parameters:
index
-
- Returns:
- description at index or null if there is no description set up yet
setValue
void setValue(int idx,
int section,
double value)
- Sets the value for the section determined
by the
section
of the entity
specified by the index idx
.
- Parameters:
idx
- the index of the entity which contains the sectionsection
- the section whose value should be updatedvalue
- the new value for this section
removeEntity
void removeEntity(int index)
- Removes the entity specified by
index
.
- Parameters:
index
- the index of the entity which should be removed