org.askalon.graph.chart
Interface PieChart

All Superinterfaces:
Chart, Cleanable, OrderedChart, SectionChart

public interface PieChart
extends OrderedChart

Interface for the pie chart, which is a is a circular chart divided into sections that display relative magnitudes or percents.

Author:
Georg Schild and Franz Endstrasser

Method Summary
 boolean getShowPercentInLegend()
           
 float getTransparency()
           
 double getValue(int section)
          Gets the value for the given section
 void removeEntity(int idx)
          Removes the section specified by the index.
 void setShowPercentInLegend(boolean b)
          Shows or hides percentage values in the legend
 void setTransparency(float f)
          Sets transparency for all pie pieces
 void setValue(int idx, double value)
          Sets the value of the section with the id idx to the specified value.
 
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

setValue

void setValue(int idx,
              double value)
Sets the value of the section with the id idx to the specified value. Values are normalized automatically.

Parameters:
idx - the index of the section
value - the new value for this section

getValue

double getValue(int section)
Gets the value for the given section

Parameters:
section -
Returns:
value of the given section or -1 if the section doesn't exist

removeEntity

void removeEntity(int idx)
Removes the section specified by the index.

Parameters:
idx - the index of the section to remove

setShowPercentInLegend

void setShowPercentInLegend(boolean b)
Shows or hides percentage values in the legend

Parameters:
b -

getShowPercentInLegend

boolean getShowPercentInLegend()
Returns:
true if percentage is shown in the legend, false otherwise

setTransparency

void setTransparency(float f)
Sets transparency for all pie pieces

Parameters:
f - in the range 0.0f-1.0f

getTransparency

float getTransparency()
Returns:
current transparency value


Part of:
Askalon_Logo
ASKALON Visualisation Diagrams