public class SurveyScaleLegendItem extends Object
SurveyScale
.Constructor and Description |
---|
SurveyScaleLegendItem() |
SurveyScaleLegendItem(Shape shape,
String label,
boolean draw,
boolean fill)
Creates a new legend item.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(Graphics2D g2,
Rectangle2D area)
Draws the legend item.
|
Font |
getFont() |
String |
getLabel() |
Shape |
getShape() |
boolean |
isDraw() |
boolean |
isFill() |
void |
setDraw(boolean draw) |
void |
setFill(boolean fill) |
void |
setFont(Font font) |
void |
setLabel(String label) |
void |
setShape(Shape shape) |
public void draw(Graphics2D g2, Rectangle2D area)
g2
- the graphic device.area
- the area.public boolean isDraw()
public void setDraw(boolean draw)
public boolean isFill()
public void setFill(boolean fill)
public Font getFont()
public void setFont(Font font)
public String getLabel()
public void setLabel(String label)
public Shape getShape()
public void setShape(Shape shape)