org.askalon.graph.chart.viewer
Interface ChartValueListener

All Known Implementing Classes:
InfoFrame

public interface ChartValueListener

Listener for a ChartValueSupplier (usually an element of a chart, like a MultiCube etc.)

Author:
Georg Schild and Franz Endstrasser
See Also:
ChartValueSupplier

Method Summary
 void detach()
          Detach (remove) the listener
 void elementSelected(boolean selected)
          Notify of a selection
 void setDescription(String text, int index)
          Notify of a new description
 void setIcon(Icon icon)
          Notify of a new icon
 void setIcon(Icon i, int index)
          Manually set a icon for a section.
 void setTitle(String title)
          Notify of a new title
 void setValue(double value)
          Notify of a new value
 void setValue(double value, int index)
          Notify of a new value at index
 void setValueCount(int count)
          Sets the count of values used by the ChartValueSupplier
 

Method Detail

setValue

void setValue(double value,
              int index)
Notify of a new value at index

Parameters:
value -
index -

setIcon

void setIcon(Icon i,
             int index)
Manually set a icon for a section. Once this method is called a call to pack() won't set the colors back to sectioncolors. Calling this method with an index <0 will enable the "section" behaviour again

Parameters:
i -
index -

setValue

void setValue(double value)
Notify of a new value

Parameters:
value -

setIcon

void setIcon(Icon icon)
Notify of a new icon

Parameters:
icon -

setDescription

void setDescription(String text,
                    int index)
Notify of a new description

Parameters:
text -
index -

setTitle

void setTitle(String title)
Notify of a new title

Parameters:
title -

elementSelected

void elementSelected(boolean selected)
Notify of a selection

Parameters:
selected -

detach

void detach()
Detach (remove) the listener


setValueCount

void setValueCount(int count)
Sets the count of values used by the ChartValueSupplier

Parameters:
count -


Part of:
Askalon_Logo
ASKALON Visualisation Diagrams