com.jrefinery.chart
Class LegendItemCollection

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

public class LegendItemCollection
extends java.lang.Object

A collection of legend items.


Field Summary
protected  java.util.List items
          Storage for the legend items.
 
Constructor Summary
LegendItemCollection()
          Constructs a new legend item collection, initially empty.
 
Method Summary
 void add(LegendItem item)
          Adds a legend item to the collection.
 void draw(java.awt.Graphics2D g2, double x, double y)
          Draws the legend item collection at the specified location.
 java.util.Iterator iterator()
          Returns an iterator that provides access to all the legend items.
 void layoutLegendItems(LegendItemLayout layout)
          Arranges the legend items according to a specific layout.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

items

protected java.util.List items
Storage for the legend items.

Constructor Detail

LegendItemCollection

public LegendItemCollection()
Constructs a new legend item collection, initially empty.

Method Detail

add

public void add(LegendItem item)
Adds a legend item to the collection.


iterator

public java.util.Iterator iterator()
Returns an iterator that provides access to all the legend items.


layoutLegendItems

public void layoutLegendItems(LegendItemLayout layout)
Arranges the legend items according to a specific layout.


draw

public void draw(java.awt.Graphics2D g2,
                 double x,
                 double y)
Draws the legend item collection at the specified location.

Parameters:
g2 - The graphics device.
x - The x location.
y - The y location.


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.