com.jrefinery.chart
Class StandardLegendItemLayout

java.lang.Object
  extended by com.jrefinery.chart.StandardLegendItemLayout
All Implemented Interfaces:
LegendItemLayout

public class StandardLegendItemLayout
extends java.lang.Object
implements LegendItemLayout

A class for arranging legend items.


Field Summary
protected  double dimension
          A constraint on one of the dimesions in the layout.
static int HORIZONTAL
          Useful constant for horizontal orientation.
protected  int orientation
          The orientation of the layout (HORIZONTAL or VERTICAL).
static int VERTICAL
          Useful constant for vertical orientation.
 
Constructor Summary
StandardLegendItemLayout(int orientation, double dimension)
          Constructs a new layout class for legend items.
 
Method Summary
 void layoutLegendItems(LegendItemCollection collection)
          Performs a layout on the items in the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERTICAL

public static final int VERTICAL
Useful constant for vertical orientation.

See Also:
Constant Field Values

HORIZONTAL

public static final int HORIZONTAL
Useful constant for horizontal orientation.

See Also:
Constant Field Values

orientation

protected int orientation
The orientation of the layout (HORIZONTAL or VERTICAL).


dimension

protected double dimension
A constraint on one of the dimesions in the layout.

Constructor Detail

StandardLegendItemLayout

public StandardLegendItemLayout(int orientation,
                                double dimension)
Constructs a new layout class for legend items.

Parameters:
orientation - The orientation of the layout (HORIZONTAL or VERTICAL).
dimension - The constrained dimension.
Method Detail

layoutLegendItems

public void layoutLegendItems(LegendItemCollection collection)
Performs a layout on the items in the collection.

Specified by:
layoutLegendItems in interface LegendItemLayout
Parameters:
collection - The collection to be laid out.


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.