Package org.jCharts.properties
Class LegendProperties
java.lang.Object
org.jCharts.properties.Properties
org.jCharts.properties.AreaProperties
org.jCharts.properties.LegendAreaProperties
org.jCharts.properties.LegendProperties
- All Implemented Interfaces:
Serializable
,HTMLTestable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Font
static final Paint
static final Paint
static final Stroke
private Font
private Paint
private Paint
private Stroke
private Dimension
Fields inherited from class org.jCharts.properties.LegendAreaProperties
BOTTOM, COLUMNS_AS_MANY_AS_NEEDED, COLUMNS_FIT_TO_IMAGE, LEFT, RIGHT, TOP
Fields inherited from class org.jCharts.properties.Properties
DEFAULT_BACKGROUND_PAINT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFont()
Returns the Font used by the Legend.Returns the Font Paint used by the Legend.Returns the Icon border Color used by the Legend.Returns the icon border StrokegetSize()
Getter for property size.void
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
Setter for property size.void
toHTML
(HTMLGenerator htmlGenerator) Enables the testing routines to display the contents of this Object.Methods inherited from class org.jCharts.properties.LegendAreaProperties
getChartPadding, getColumnPadding, getIconPadding, getNumColumns, getPlacement, getRowPadding, setChartPadding, setColumnPadding, setIconPadding, setNumColumns, setPlacement, setRowPadding
Methods inherited from class org.jCharts.properties.AreaProperties
getBorderStroke, getEdgePadding, setBorderStroke, setEdgePadding
Methods inherited from class org.jCharts.properties.Properties
getBackgroundPaint, setBackgroundPaint
-
Field Details
-
DEFAULT_FONT
-
DEFAULT_FONT_PAINT
-
DEFAULT_ICON_BORDER_STROKE
-
DEFAULT_ICON_BORDER_PAINT
-
font
-
fontPaint
-
iconBorderPaint
-
iconBorderStroke
-
size
-
-
Constructor Details
-
LegendProperties
public LegendProperties()
-
-
Method Details
-
setFont
Sets the Font used by the Legend.- Parameters:
legendFont
-
-
getFont
Returns the Font used by the Legend.- Returns:
- Font
-
setIconBorderPaint
Sets the Icon border color used by the Legend. If NULL is passed, there will be no border.- Parameters:
iconBorderPaint
-
-
getIconBorderPaint
Returns the Icon border Color used by the Legend.- Returns:
- Paint
-
setIconBorderStroke
Sets the icon border Stroke. If NULL is passed, there will be no border.- Parameters:
stroke
-
-
getIconBorderStroke
Returns the icon border Stroke- Returns:
- Stroke
-
setFontPaint
Sets the Font color used by the Legend.- Parameters:
fontPaint
-
-
getFontPaint
Returns the Font Paint used by the Legend.- Returns:
- Paint
-
toHTML
Enables the testing routines to display the contents of this Object.- Specified by:
toHTML
in interfaceHTMLTestable
- Overrides:
toHTML
in classLegendAreaProperties
- Parameters:
htmlGenerator
-
-
getSize
Getter for property size.- Returns:
- Value of property size.
-
setSize
Setter for property size.- Parameters:
size
- New value of property size.
-