org.jfree.report.modules.misc.survey
Class SurveyScaleLegendItem
java.lang.Object
org.jfree.report.modules.misc.survey.SurveyScaleLegendItem
- Drawable
extends java.lang.Object
implements Drawable
A
Drawable
object that represents a legend item for a
SurveyScale
.
SurveyScaleLegendItem
public SurveyScaleLegendItem(Shape shape,
String label,
boolean draw,
boolean fill)
Creates a new legend item.
shape
- the shape.label
- the label.draw
- draw the shape?fill
- fill the shape?
draw
public void draw(Graphics2D g2,
Rectangle2D area)
Draws the legend item.
g2
- the graphic device.area
- the area.
setDraw
public void setDraw(boolean draw)
setFill
public void setFill(boolean fill)
setFont
public void setFont(Font font)
setLabel
public void setLabel(String label)
setShape
public void setShape(Shape shape)