com.jrefinery.chart
Class LegendItem

java.lang.Object
  extended by com.jrefinery.chart.LegendItem

public class LegendItem
extends java.lang.Object

Represents a single item within a legend. INCOMPLETE.


Field Summary
protected  double height
          The height of the item.
protected  java.lang.String label
          The label (usually a series name).
protected  java.awt.geom.Point2D labelPosition
          The label position within the item.
protected  java.awt.Shape marker
          A shape used to indicate color on the legend.
protected  double width
          The width of the item.
protected  double x
          The x-coordinate for the item's location.
protected  double y
          The y-coordinate for the item's location.
 
Constructor Summary
LegendItem(java.lang.String label)
          Create a legend item.
 
Method Summary
 void draw(java.awt.Graphics2D g2, double xOffset, double yOffset)
           
 double getHeight()
           
 java.awt.Shape getMarker()
           
 double getWidth()
           
 double getX()
           
 double getY()
           
 void setBounds(double x, double y, double width, double height)
           
 void setMarker(java.awt.Shape marker)
           
 void setX(double x)
           
 void setY(double y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

label

protected java.lang.String label
The label (usually a series name).


x

protected double x
The x-coordinate for the item's location.


y

protected double y
The y-coordinate for the item's location.


width

protected double width
The width of the item.


height

protected double height
The height of the item.


marker

protected java.awt.Shape marker
A shape used to indicate color on the legend.


labelPosition

protected java.awt.geom.Point2D labelPosition
The label position within the item.

Constructor Detail

LegendItem

public LegendItem(java.lang.String label)
Create a legend item.

Method Detail

getX

public double getX()

setX

public void setX(double x)

getY

public double getY()

setY

public void setY(double y)

getWidth

public double getWidth()

getHeight

public double getHeight()

getMarker

public java.awt.Shape getMarker()

setMarker

public void setMarker(java.awt.Shape marker)

setBounds

public void setBounds(double x,
                      double y,
                      double width,
                      double height)

draw

public void draw(java.awt.Graphics2D g2,
                 double xOffset,
                 double yOffset)


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.