public class DrawableLegendItem
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private double |
height
Deprecated.
The height of the item.
|
private LegendItem |
item
Deprecated.
The legend item (encapsulates information about the label, color and
shape).
|
private java.awt.geom.Point2D |
labelPosition
Deprecated.
The label position within the item.
|
private java.awt.geom.Line2D |
line
Deprecated.
A line used to indicate the series stroke on the legend
|
private java.awt.Shape |
marker
Deprecated.
A shape used to indicate color on the legend.
|
private double |
width
Deprecated.
The width of the item.
|
private double |
x
Deprecated.
The x-coordinate for the item's location.
|
private double |
y
Deprecated.
The y-coordinate for the item's location.
|
| Constructor and Description |
|---|
DrawableLegendItem(LegendItem item)
Deprecated.
Create a legend item.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getHeight()
Deprecated.
Get the height of this item.
|
LegendItem |
getItem()
Deprecated.
Returns the legend item.
|
java.awt.geom.Point2D |
getLabelPosition()
Deprecated.
Returns the label position.
|
java.awt.geom.Line2D |
getLine()
Deprecated.
Returns the list.
|
java.awt.Shape |
getMarker()
Deprecated.
Get the marker.
|
double |
getMaxX()
Deprecated.
Returns the largest X coordinate of the framing rectangle of this legend
item.
|
double |
getMaxY()
Deprecated.
Returns the largest Y coordinate of the framing rectangle of this legend
item.
|
double |
getWidth()
Deprecated.
Get the width of this item.
|
double |
getX()
Deprecated.
Get the x-coordinate for the item's location.
|
double |
getY()
Deprecated.
Get the y-coordinate for the item's location.
|
void |
setBounds(double x,
double y,
double width,
double height)
Deprecated.
Set the bounds of this item.
|
void |
setLabelPosition(java.awt.geom.Point2D position)
Deprecated.
Sets the label position.
|
void |
setLine(java.awt.geom.Line2D l)
Deprecated.
Sets the line used to label this series.
|
void |
setMarker(java.awt.Shape marker)
Deprecated.
Set the marker.
|
void |
setX(double x)
Deprecated.
Set the x-coordinate for the item's location.
|
void |
setY(double y)
Deprecated.
Set the y-coordinate for the item's location.
|
private LegendItem item
private double x
private double y
private double width
private double height
private java.awt.Shape marker
private java.awt.geom.Line2D line
private java.awt.geom.Point2D labelPosition
public DrawableLegendItem(LegendItem item)
item - the legend item for display.public LegendItem getItem()
public double getX()
public void setX(double x)
x - the x-coordinate.public double getY()
public void setY(double y)
y - the y-coordinate.public double getWidth()
public double getHeight()
public double getMaxX()
public double getMaxY()
public java.awt.Shape getMarker()
public void setMarker(java.awt.Shape marker)
marker - a shape used to indicate color on the legend for this
item.public void setLine(java.awt.geom.Line2D l)
l - the new line to use.public java.awt.geom.Line2D getLine()
public java.awt.geom.Point2D getLabelPosition()
public void setLabelPosition(java.awt.geom.Point2D position)
position - the label position.public void setBounds(double x,
double y,
double width,
double height)
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.