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.NormalizeableChart
isNormalized, setNormalized
 
Methods inherited from interface org.askalon.graph.chart.OrderedChart
decrementOrder, getOrder, incrementOrder, setOrder
 
Methods inherited from interface org.askalon.graph.chart.SectionChart
getSectionColor, getSectionCount, getSectionName, isVisible, setSectionColor, setSectionName, setVisible
 
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
 
Methods inherited from interface org.askalon.graph.chart.base.Cleanable
cleanUp
 

Method Detail

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 set
desc - 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 section
section - the section whose value should be updated
value - 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


Part of:
Askalon_Logo
ASKALON Visualisation Diagrams