org.jfree.chart

Class DrawableLegendItem

public class DrawableLegendItem extends Object

Deprecated: This class is not used by JFreeChart.

This class contains a single legend item along with position details for drawing the item on a particular chart.
Constructor Summary
DrawableLegendItem(LegendItem item)
Create a legend item.
Method Summary
doublegetHeight()
Get the height of this item.
LegendItemgetItem()
Returns the legend item.
Point2DgetLabelPosition()
Returns the label position.
Line2DgetLine()
Returns the list.
ShapegetMarker()
Get the marker.
doublegetMaxX()
Returns the largest X coordinate of the framing rectangle of this legend item.
doublegetMaxY()
Returns the largest Y coordinate of the framing rectangle of this legend item.
doublegetWidth()
Get the width of this item.
doublegetX()
Get the x-coordinate for the item's location.
doublegetY()
Get the y-coordinate for the item's location.
voidsetBounds(double x, double y, double width, double height)
Set the bounds of this item.
voidsetLabelPosition(Point2D position)
Sets the label position.
voidsetLine(Line2D l)
Sets the line used to label this series.
voidsetMarker(Shape marker)
Set the marker.
voidsetX(double x)
Set the x-coordinate for the item's location.
voidsetY(double y)
Set the y-coordinate for the item's location.

Constructor Detail

DrawableLegendItem

public DrawableLegendItem(LegendItem item)
Create a legend item.

Parameters: item the legend item for display.

Method Detail

getHeight

public double getHeight()
Get the height of this item.

Returns: The height.

getItem

public LegendItem getItem()
Returns the legend item.

Returns: The legend item.

getLabelPosition

public Point2D getLabelPosition()
Returns the label position.

Returns: The label position.

getLine

public Line2D getLine()
Returns the list.

Returns: The line.

getMarker

public Shape getMarker()
Get the marker.

Returns: The shape used to indicate color on the legend for this item.

getMaxX

public double getMaxX()
Returns the largest X coordinate of the framing rectangle of this legend item.

Returns: The largest x coordinate of the framing rectangle of this legend item.

getMaxY

public double getMaxY()
Returns the largest Y coordinate of the framing rectangle of this legend item.

Returns: The largest Y coordinate of the framing rectangle of this legend item.

getWidth

public double getWidth()
Get the width of this item.

Returns: The width.

getX

public double getX()
Get the x-coordinate for the item's location.

Returns: The x-coordinate for the item's location.

getY

public double getY()
Get the y-coordinate for the item's location.

Returns: The y-coordinate for the item's location.

setBounds

public void setBounds(double x, double y, double width, double height)
Set the bounds of this item.

Parameters: x x-coordinate for the item's location. y y-coordinate for the item's location. width the width of this item. height the height of this item.

setLabelPosition

public void setLabelPosition(Point2D position)
Sets the label position.

Parameters: position the label position.

setLine

public void setLine(Line2D l)
Sets the line used to label this series.

Parameters: l the new line to use.

setMarker

public void setMarker(Shape marker)
Set the marker.

Parameters: marker a shape used to indicate color on the legend for this item.

setX

public void setX(double x)
Set the x-coordinate for the item's location.

Parameters: x the x-coordinate.

setY

public void setY(double y)
Set the y-coordinate for the item's location.

Parameters: y the y-coordinate.