All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jsz.Plotter.LegendPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JPanel
                                   |
                                   +----jsz.Plotter.LegendPanel

public class LegendPanel
extends JPanel
This class is a convinience class for displaying the legends of dataseries. Since these legeds are implemented as {@link jsz.Plotter.LegendLabel}, a subclass of JLabel, you could instantiate those labels and add them to a JPanel of your choice. Using a LegendPanel instance, you don't have to create such LegendLabels yourself. Instead, you simply add the dataseries' with the addPlot() method.


Constructor Index

 o LegendPanel()

Method Index

 o add(IDataSeries)
Add a dataseries to this panel and display its legend.
 o addPlot(IDataSeries)
Add a dataseries to this panel and display its legend.

Constructors

 o LegendPanel
 public LegendPanel()

Methods

 o addPlot
 public LegendPanel addPlot(IDataSeries ds)
Add a dataseries to this panel and display its legend.

 o add
 public LegendPanel add(IDataSeries ds)
Add a dataseries to this panel and display its legend.


All Packages  Class Hierarchy  This Package  Previous  Next  Index