public class SurveyScaleLegendItem
extends java.lang.Object
SurveyScale
.Constructor and Description |
---|
SurveyScaleLegendItem() |
SurveyScaleLegendItem(java.awt.Shape shape,
java.lang.String label,
boolean draw,
boolean fill)
Creates a new legend item.
|
Modifier and Type | Method and Description |
---|---|
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
Draws the legend item.
|
java.awt.Font |
getFont() |
java.lang.String |
getLabel() |
java.awt.Shape |
getShape() |
boolean |
isDraw() |
boolean |
isFill() |
void |
setDraw(boolean draw) |
void |
setFill(boolean fill) |
void |
setFont(java.awt.Font font) |
void |
setLabel(java.lang.String label) |
void |
setShape(java.awt.Shape shape) |
public SurveyScaleLegendItem()
public SurveyScaleLegendItem(java.awt.Shape shape, java.lang.String label, boolean draw, boolean fill)
shape
- the shape.label
- the label.draw
- draw the shape?fill
- fill the shape?public void draw(java.awt.Graphics2D g2, java.awt.geom.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 java.awt.Font getFont()
public void setFont(java.awt.Font font)
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
public java.awt.Shape getShape()
public void setShape(java.awt.Shape shape)