Class SurveyScaleLegendItem
java.lang.Object
org.jfree.report.modules.misc.survey.SurveyScaleLegendItem
A Drawable object that represents a legend item for a
SurveyScale
.-
Constructor Summary
ConstructorsConstructorDescriptionSurveyScaleLegendItem
(Shape shape, String label, boolean draw, boolean fill) Creates a new legend item. -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(Graphics2D g2, Rectangle2D area) Draws the legend item.getFont()
getLabel()
getShape()
boolean
isDraw()
boolean
isFill()
void
setDraw
(boolean draw) void
setFill
(boolean fill) void
void
void
-
Constructor Details
-
SurveyScaleLegendItem
public SurveyScaleLegendItem() -
SurveyScaleLegendItem
Creates a new legend item.- Parameters:
shape
- the shape.label
- the label.draw
- draw the shape?fill
- fill the shape?
-
-
Method Details
-
draw
Draws the legend item.- Parameters:
g2
- the graphic device.area
- the area.
-
isDraw
public boolean isDraw() -
setDraw
public void setDraw(boolean draw) -
isFill
public boolean isFill() -
setFill
public void setFill(boolean fill) -
getFont
-
setFont
-
getLabel
-
setLabel
-
getShape
-
setShape
-