|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.DrawableLegendItem
Represents a single item within a legend.
| Constructor Summary | |
DrawableLegendItem(LegendItem item)
Create a legend item. |
|
| Method Summary | |
void |
draw(java.awt.Graphics2D g2,
double xOffset,
double yOffset)
Draw the item. |
double |
getHeight()
Get the height of this item. |
LegendItem |
getItem()
Returns the legend item. |
java.awt.geom.Point2D |
getLabelPosition()
Returns the label position. |
java.awt.geom.Line2D |
getLine()
Returns the list. |
java.awt.Stroke |
getLineStroke()
Returns the stroke used to render the line for this series. |
java.awt.Shape |
getMarker()
Get the marker. |
double |
getMaxX()
Returns the largest X coordinate of the framing rectangle of this legend item. |
double |
getMaxY()
Returns the largest Y coordinate of the framing rectangle of this legend item. |
double |
getWidth()
Get the width of this item. |
double |
getX()
Get the x-coordinate for the item's location. |
double |
getY()
Get the y-coordinate for the item's location. |
boolean |
isMarkerFilled()
Returns a flag that controls whether or not the marker is filled. |
void |
setBounds(double x,
double y,
double width,
double height)
Set the bounds of this item. |
void |
setLabelPosition(java.awt.geom.Point2D position)
Sets the label position. |
void |
setLine(java.awt.geom.Line2D l)
Sets the line used to label this series. |
void |
setLineStroke(java.awt.Stroke s)
Sets the line stroke used to render the line for this series. |
void |
setMarker(java.awt.Shape marker)
Set the marker. |
void |
setMarkerFilled(boolean filled)
Sets a flag that controls whether or not the marker is filled. |
void |
setX(double x)
Set the x-coordinate for the item's location. |
void |
setY(double y)
Set the y-coordinate for the item's location. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DrawableLegendItem(LegendItem item)
item - the legend item for display.| Method Detail |
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 boolean isMarkerFilled()
public void setMarkerFilled(boolean filled)
filled - the flag.public java.awt.Stroke getLineStroke()
public void setLineStroke(java.awt.Stroke s)
s - the new stroke to use.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.
public void draw(java.awt.Graphics2D g2,
double xOffset,
double yOffset)
g2 - the graphics device.xOffset - offset for the x-coordinate.yOffset - offset for the y-coordinate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||