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.
-
LegendPanel()
-
-
add(IDataSeries)
- Add a dataseries to this panel and display its legend.
-
addPlot(IDataSeries)
- Add a dataseries to this panel and display its legend.
LegendPanel
public LegendPanel()
addPlot
public LegendPanel addPlot(IDataSeries ds)
- Add a dataseries to this panel and display its legend.
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