org.jfree.report.modules.misc.survey

Class SurveyScaleLegendItem

public class SurveyScaleLegendItem extends Object

A Drawable object that represents a legend item for a SurveyScale.
Constructor Summary
SurveyScaleLegendItem()
SurveyScaleLegendItem(Shape shape, String label, boolean draw, boolean fill)
Creates a new legend item.
Method Summary
voiddraw(Graphics2D g2, Rectangle2D area)
Draws the legend item.
FontgetFont()
StringgetLabel()
ShapegetShape()
booleanisDraw()
booleanisFill()
voidsetDraw(boolean draw)
voidsetFill(boolean fill)
voidsetFont(Font font)
voidsetLabel(String label)
voidsetShape(Shape shape)

Constructor Detail

SurveyScaleLegendItem

public SurveyScaleLegendItem()

SurveyScaleLegendItem

public SurveyScaleLegendItem(Shape shape, 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(Graphics2D g2, Rectangle2D area)
Draws the legend item.

Parameters: g2 the graphic device. area the area.

getFont

public Font getFont()

getLabel

public String getLabel()

getShape

public Shape getShape()

isDraw

public boolean isDraw()

isFill

public boolean isFill()

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)