Package org.jfree.chart
Class StandardLegendItemLayout
java.lang.Object
org.jfree.chart.StandardLegendItemLayout
- All Implemented Interfaces:
LegendItemLayout
public class StandardLegendItemLayout extends Object implements LegendItemLayout
A class for arranging legend items.
-
Field Summary
Fields Modifier and Type Field Description static int
HORIZONTAL
Useful constant for horizontal orientation.static int
VERTICAL
Useful constant for vertical orientation. -
Constructor Summary
Constructors Constructor Description StandardLegendItemLayout(int orientation, double dimension)
Constructs a new layout class for legend items. -
Method Summary
Modifier and Type Method Description void
layoutLegendItems(LegendItemCollection collection)
Performs a layout on the items in the collection.
-
Field Details
-
VERTICAL
public static final int VERTICALUseful constant for vertical orientation.- See Also:
- Constant Field Values
-
HORIZONTAL
public static final int HORIZONTALUseful constant for horizontal orientation.- See Also:
- Constant Field Values
-
-
Constructor Details
-
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 Details
-
layoutLegendItems
Performs a layout on the items in the collection.- Specified by:
layoutLegendItems
in interfaceLegendItemLayout
- Parameters:
collection
- the collection to be laid out.
-