Class AWTLegend

All Implemented Interfaces:
IDrawableListener, ILegend, IImageViewport
Direct Known Subclasses:
AWTColorbarLegend, AWTSerieLegend, AWTSeriesLegend

public abstract class AWTLegend extends AWTImageViewport implements IDrawableListener, ILegend
A AWTLegend represent information concerning a Drawable that may be displayed as a metadata in the ChartView. ChartView renders legend on the right side of the chart, hence avoiding superposition of legend and chart. The constructor of a AWTLegend registers itself as listener of its parent Drawable, and unregister itself when it is disposed. When defining a concrete AWTLegend, one should: Last, a AWTLegend optimizes rendering by :
  • storing current image dimension,
  • computing a new image only if the required AWTLegend dimensions changed.
Author:
Martin Pernollet