Class SurveyScaleLegendItem
- java.lang.Object
-
- org.jfree.report.modules.misc.survey.SurveyScaleLegendItem
-
public class SurveyScaleLegendItem extends java.lang.ObjectA Drawable object that represents a legend item for aSurveyScale.
-
-
Constructor Summary
Constructors Constructor Description SurveyScaleLegendItem()SurveyScaleLegendItem(java.awt.Shape shape, java.lang.String label, boolean draw, boolean fill)Creates a new legend item.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)Draws the legend item.java.awt.FontgetFont()java.lang.StringgetLabel()java.awt.ShapegetShape()booleanisDraw()booleanisFill()voidsetDraw(boolean draw)voidsetFill(boolean fill)voidsetFont(java.awt.Font font)voidsetLabel(java.lang.String label)voidsetShape(java.awt.Shape shape)
-
-
-
Constructor Detail
-
SurveyScaleLegendItem
public SurveyScaleLegendItem()
-
SurveyScaleLegendItem
public SurveyScaleLegendItem(java.awt.Shape shape, java.lang.String label, boolean draw, boolean fill)Creates a new legend item.- Parameters:
shape- the shape.label- the label.draw- draw the shape?fill- fill the shape?
-
-
Method Detail
-
draw
public void draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area)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
public java.awt.Font getFont()
-
setFont
public void setFont(java.awt.Font font)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getShape
public java.awt.Shape getShape()
-
setShape
public void setShape(java.awt.Shape shape)
-
-