java.lang.Object
org.wicketstuff.jqplot.lib.elements.Legend
- All Implemented Interfaces:
Serializable,Element
Legend object.
Legend properties can be set or overriden by the options passed in from the user.
- Author:
- inaiat
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the background.Gets the border.Gets the escape html.Gets the font family.String[]Gets the lables.Gets the location.Gets the margin bottom.Gets the margin left.Gets the margin right.Gets the margin top.Gets the options.Gets the placement.Gets the pre draw.Gets the renderer.Gets theRendererOptionsgetShow()Gets the show.Gets the show lables.Gets the show swatches.Gets the xoffset.Gets the yoffset.voidsetBackground(String background) Sets the background.voidSets the border.voidsetEscapeHtml(Boolean escapeHtml) Sets the escape html.voidsetFontFamily(String fontFamily) Sets the font family.voidSets the lables.voidsetLocation(Location location) Sets the location.voidsetMarginBottom(String marginBottom) Sets the margin bottom.voidsetMarginLeft(String marginLeft) Sets the margin left.voidsetMarginRight(String marginRight) Sets the margin right.voidsetMarginTop(String marginTop) Sets the margin top.voidsetOptions(String options) Sets the options.voidsetPlacement(String placement) Sets the placement.voidsetPreDraw(Boolean preDraw) Sets the pre draw.voidsetRenderer(JqPlotResources renderer) Sets the renderer.voidsetRendererOptions(LegendRenderer rendererOptions) Sets theRendererOptionsvoidSets the show.voidsetShowLables(Boolean showLables) Sets the show lables.voidsetShowSwatches(Boolean showSwatches) Sets the show swatches.voidsetXoffset(Double xoffset) Sets the xoffset.voidsetYoffset(Double yoffset) Sets the yoffset.
-
Constructor Details
-
Legend
public Legend()Instantiates a new legend. -
Legend
Instantiates a new legend.- Parameters:
show- the showlocation- the location
-
Legend
Instantiates a new legend.- Parameters:
options- the options
-
-
Method Details
-
getBackground
Gets the background.- Returns:
- the background
-
setBackground
Sets the background.- Parameters:
background- the new background
-
getBorder
Gets the border.- Returns:
- the border
-
setBorder
Sets the border.- Parameters:
border- the new border
-
getEscapeHtml
Gets the escape html.- Returns:
- the escape html
-
setEscapeHtml
Sets the escape html.- Parameters:
escapeHtml- the new escape html
-
getFontFamily
Gets the font family.- Returns:
- the font family
-
setFontFamily
Sets the font family.- Parameters:
fontFamily- the new font family
-
getLables
Gets the lables.- Returns:
- the lables
-
setLables
Sets the lables.- Parameters:
lables- the new lables
-
getLocation
Gets the location.- Returns:
- the location
-
setLocation
Sets the location.- Parameters:
location- the new location
-
getMarginBottom
Gets the margin bottom.- Returns:
- the margin bottom
-
setMarginBottom
Sets the margin bottom.- Parameters:
marginBottom- the new margin bottom
-
getMarginLeft
Gets the margin left.- Returns:
- the margin left
-
setMarginLeft
Sets the margin left.- Parameters:
marginLeft- the new margin left
-
getMarginRight
Gets the margin right.- Returns:
- the margin right
-
setMarginRight
Sets the margin right.- Parameters:
marginRight- the new margin right
-
getMarginTop
Gets the margin top.- Returns:
- the margin top
-
setMarginTop
Sets the margin top.- Parameters:
marginTop- the new margin top
-
getPlacement
Gets the placement.- Returns:
- the placement
-
setPlacement
Sets the placement.- Parameters:
placement- the new placement
-
getPreDraw
Gets the pre draw.- Returns:
- the pre draw
-
setPreDraw
Sets the pre draw.- Parameters:
preDraw- the new pre draw
-
getRenderer
Gets the renderer.- Returns:
- the renderer
-
setRenderer
Sets the renderer.- Parameters:
renderer- the new renderer
-
getShow
Gets the show.- Returns:
- the show
-
setShow
Sets the show.- Parameters:
show- the new show
-
getShowLables
Gets the show lables.- Returns:
- the show lables
-
setShowLables
Sets the show lables.- Parameters:
showLables- the new show lables
-
getShowSwatches
Gets the show swatches.- Returns:
- the show swatches
-
setShowSwatches
Sets the show swatches.- Parameters:
showSwatches- the new show swatches
-
getXoffset
Gets the xoffset.- Returns:
- the xoffset
-
setXoffset
Sets the xoffset.- Parameters:
xoffset- the new xoffset
-
getYoffset
Gets the yoffset.- Returns:
- the yoffset
-
setYoffset
Sets the yoffset.- Parameters:
yoffset- the new yoffset
-
getOptions
Gets the options.- Returns:
- the options
-
setOptions
Sets the options.- Parameters:
options- the new options
-
getRendererOptions
Gets theRendererOptions- Returns:
- LegendRenderer
-
setRendererOptions
Sets theRendererOptions- Parameters:
rendererOptions- set the LegendRenderer
-