All Packages Class Hierarchy This Package Previous Next Index
Class jsz.Plotter.LegendIcon
java.lang.Object
|
+----jsz.Plotter.LegendIcon
- public class LegendIcon
- extends Object
- implements Icon
This class implements an icon for use with a {@link
jsz.Plotter.LegendLabel}. Usually, the icon is just
a short line drawn with the default color of the dataseries it
is associated with. Anyway, it is possible to specify a
different color as well.
-
color
- Color.
-
ds
- Associated dataseries.
-
height
- Height of the line (ignored at the moment).
-
length
- Length of the line
-
LegendIcon(Color)
- Construct an icon using color c.
-
LegendIcon(IDataSeries)
- Construct an icon with the default color from ds.
-
getIconHeight()
-
-
getIconWidth()
-
-
paintIcon(Component, Graphics, int, int)
-
ds
private IDataSeries ds
- Associated dataseries. Might be null.
length
private int length
- Length of the line
height
private int height
- Height of the line (ignored at the moment).
color
private Color color
- Color. this color overwrites the color of ds!
LegendIcon
public LegendIcon(IDataSeries ds)
- Construct an icon with the default color from ds.
LegendIcon
public LegendIcon(Color color)
- Construct an icon using color c.
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
getIconWidth
public final int getIconWidth()
getIconHeight
public final int getIconHeight()
All Packages Class Hierarchy This Package Previous Next Index