org.askalon.graph.chart
Interface SectionChart

All Superinterfaces:
Chart, Cleanable
All Known Subinterfaces:
HierarchyChart, LinearChart, LineBarChart, MultipleSurfaceChart, OrderedChart, PieChart, RibbonChart, XMLEventChart, XYChart, XYXMLChart

public interface SectionChart
extends Chart

The super-interface of all charts that support multiple sections with different colors.

Author:
Georg Schild and Franz Endstrasser

Method Summary
 Color getSectionColor(int index)
          Gets the color of a section if section is in range.
 int getSectionCount()
          Returns the number of sections of this chart
 String getSectionName(int index)
          Gets the name of the section specified by index.
 boolean isVisible(int section)
          Gets the visibility of a section.
 void setSectionColor(int section, Color c)
          Sets the color of a section if section is in range.
 void setSectionName(int index, String name)
          Sets the entitys name at the specified index.
 void setVisible(int section, boolean v)
          Enables or disables the visibility for a section.
 
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

getSectionColor

Color getSectionColor(int index)
Gets the color of a section if section is in range.

Parameters:
index - the index of the section whose color should be changed
Returns:
the new color of the specified section
See Also:
setSectionColor(int, Color), Color

setSectionColor

void setSectionColor(int section,
                     Color c)
Sets the color of a section if section is in range.

Parameters:
section - the index of the section whose color should be changed
c - the new color of the section
See Also:
Color, getSectionColor(int)

getSectionCount

int getSectionCount()
Returns the number of sections of this chart

Returns:
this chart's number of sections

getSectionName

String getSectionName(int index)
Gets the name of the section specified by index.

Parameters:
index - the index of the section whose name should be returned
Returns:
the name of the section as string

setSectionName

void setSectionName(int index,
                    String name)
Sets the entitys name at the specified index.

Parameters:
index - the index of the datapoint
name - the new name for this datapoint

setVisible

void setVisible(int section,
                boolean v)
Enables or disables the visibility for a section.

Parameters:
section - the index of the section whose visibility should be changed
v - true do display the section, false to hide it

isVisible

boolean isVisible(int section)
Gets the visibility of a section.

Parameters:
section - the index of the section whose visibility should be returned
Returns:
true if the section is visible, false otherwise


Part of:
Askalon_Logo
ASKALON Visualisation Diagrams