org.jCharts.properties
public final class LegendProperties extends LegendAreaProperties implements HTMLTestable
Modifier and Type | Field and Description |
---|---|
static Font |
DEFAULT_FONT |
static Paint |
DEFAULT_FONT_PAINT |
static Paint |
DEFAULT_ICON_BORDER_PAINT |
static Stroke |
DEFAULT_ICON_BORDER_STROKE |
private Font |
font |
private Paint |
fontPaint |
private Paint |
iconBorderPaint |
private Stroke |
iconBorderStroke |
private Dimension |
size |
BOTTOM, COLUMNS_AS_MANY_AS_NEEDED, COLUMNS_FIT_TO_IMAGE, LEFT, RIGHT, TOP
DEFAULT_BACKGROUND_PAINT
Constructor and Description |
---|
LegendProperties() |
Modifier and Type | Method and Description |
---|---|
Font |
getFont()
Returns the Font used by the Legend.
|
Paint |
getFontPaint()
Returns the Font Paint used by the Legend.
|
Paint |
getIconBorderPaint()
Returns the Icon border Color used by the Legend.
|
Stroke |
getIconBorderStroke()
Returns the icon border Stroke
|
Dimension |
getSize()
Getter for property size.
|
void |
setFont(Font legendFont)
Sets the Font used by the Legend.
|
void |
setFontPaint(Paint fontPaint)
Sets the Font color used by the Legend.
|
void |
setIconBorderPaint(Paint iconBorderPaint)
Sets the Icon border color used by the Legend.
|
void |
setIconBorderStroke(Stroke stroke)
Sets the icon border Stroke.
|
void |
setSize(Dimension size)
Setter for property size.
|
void |
toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object.
|
getChartPadding, getColumnPadding, getIconPadding, getNumColumns, getPlacement, getRowPadding, setChartPadding, setColumnPadding, setIconPadding, setNumColumns, setPlacement, setRowPadding
getBorderStroke, getEdgePadding, setBorderStroke, setEdgePadding
getBackgroundPaint, setBackgroundPaint
public static final Font DEFAULT_FONT
public static final Paint DEFAULT_FONT_PAINT
public static final Stroke DEFAULT_ICON_BORDER_STROKE
public static final Paint DEFAULT_ICON_BORDER_PAINT
private Font font
private Paint fontPaint
private Paint iconBorderPaint
private Stroke iconBorderStroke
private Dimension size
public void setFont(Font legendFont)
legendFont
- public Font getFont()
public void setIconBorderPaint(Paint iconBorderPaint)
iconBorderPaint
- public Paint getIconBorderPaint()
public void setIconBorderStroke(Stroke stroke)
stroke
- public Stroke getIconBorderStroke()
public void setFontPaint(Paint fontPaint)
fontPaint
- public Paint getFontPaint()
public void toHTML(HTMLGenerator htmlGenerator)
toHTML
in interface HTMLTestable
toHTML
in class LegendAreaProperties
htmlGenerator
- public Dimension getSize()
public void setSize(Dimension size)
size
- New value of property size.