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:
java.io.Serializable,HTMLTestable
public final class LegendProperties extends LegendAreaProperties implements HTMLTestable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.awt.FontDEFAULT_FONTstatic java.awt.PaintDEFAULT_FONT_PAINTstatic java.awt.PaintDEFAULT_ICON_BORDER_PAINTstatic java.awt.StrokeDEFAULT_ICON_BORDER_STROKEprivate java.awt.Fontfontprivate java.awt.PaintfontPaintprivate java.awt.PainticonBorderPaintprivate java.awt.StrokeiconBorderStrokeprivate java.awt.Dimensionsize-
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 Constructor Description LegendProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.FontgetFont()Returns the Font used by the Legend.java.awt.PaintgetFontPaint()Returns the Font Paint used by the Legend.java.awt.PaintgetIconBorderPaint()Returns the Icon border Color used by the Legend.java.awt.StrokegetIconBorderStroke()Returns the icon border Strokejava.awt.DimensiongetSize()Getter for property size.voidsetFont(java.awt.Font legendFont)Sets the Font used by the Legend.voidsetFontPaint(java.awt.Paint fontPaint)Sets the Font color used by the Legend.voidsetIconBorderPaint(java.awt.Paint iconBorderPaint)Sets the Icon border color used by the Legend.voidsetIconBorderStroke(java.awt.Stroke stroke)Sets the icon border Stroke.voidsetSize(java.awt.Dimension size)Setter for property size.voidtoHTML(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 Detail
-
DEFAULT_FONT
public static final java.awt.Font DEFAULT_FONT
-
DEFAULT_FONT_PAINT
public static final java.awt.Paint DEFAULT_FONT_PAINT
-
DEFAULT_ICON_BORDER_STROKE
public static final java.awt.Stroke DEFAULT_ICON_BORDER_STROKE
-
DEFAULT_ICON_BORDER_PAINT
public static final java.awt.Paint DEFAULT_ICON_BORDER_PAINT
-
font
private java.awt.Font font
-
fontPaint
private java.awt.Paint fontPaint
-
iconBorderPaint
private java.awt.Paint iconBorderPaint
-
iconBorderStroke
private java.awt.Stroke iconBorderStroke
-
size
private java.awt.Dimension size
-
-
Method Detail
-
setFont
public void setFont(java.awt.Font legendFont)
Sets the Font used by the Legend.- Parameters:
legendFont-
-
getFont
public java.awt.Font getFont()
Returns the Font used by the Legend.- Returns:
- Font
-
setIconBorderPaint
public void setIconBorderPaint(java.awt.Paint iconBorderPaint)
Sets the Icon border color used by the Legend. If NULL is passed, there will be no border.- Parameters:
iconBorderPaint-
-
getIconBorderPaint
public java.awt.Paint getIconBorderPaint()
Returns the Icon border Color used by the Legend.- Returns:
- Paint
-
setIconBorderStroke
public void setIconBorderStroke(java.awt.Stroke stroke)
Sets the icon border Stroke. If NULL is passed, there will be no border.- Parameters:
stroke-
-
getIconBorderStroke
public java.awt.Stroke getIconBorderStroke()
Returns the icon border Stroke- Returns:
- Stroke
-
setFontPaint
public void setFontPaint(java.awt.Paint fontPaint)
Sets the Font color used by the Legend.- Parameters:
fontPaint-
-
getFontPaint
public java.awt.Paint getFontPaint()
Returns the Font Paint used by the Legend.- Returns:
- Paint
-
toHTML
public void toHTML(HTMLGenerator htmlGenerator)
Enables the testing routines to display the contents of this Object.- Specified by:
toHTMLin interfaceHTMLTestable- Overrides:
toHTMLin classLegendAreaProperties- Parameters:
htmlGenerator-
-
getSize
public java.awt.Dimension getSize()
Getter for property size.- Returns:
- Value of property size.
-
setSize
public void setSize(java.awt.Dimension size)
Setter for property size.- Parameters:
size- New value of property size.
-
-