Package org.wicketstuff.jqplot.lib
Class ChartConfiguration<T extends Serializable>
- java.lang.Object
-
- org.wicketstuff.jqplot.lib.ChartConfiguration<T>
-
- Type Parameters:
T- Type ofAxis
- All Implemented Interfaces:
Serializable
public class ChartConfiguration<T extends Serializable> extends Object implements Serializable
Base configuration of JqPlot Chart. See jqplot documention http://www.jqplot.com/docs/files/usage-txt.html- Author:
- inaiat
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChartConfiguration()
-
Method Summary
-
-
-
Field Detail
-
series
protected Collection<Serie> series
The series.
-
axes
protected Axes<T extends Serializable> axes
The axes.
-
title
protected Title title
The title.
-
axesDefaults
protected Axis<T extends Serializable> axesDefaults
The axes defaults.
-
-
Method Detail
-
isCaptureRightClick
public Boolean isCaptureRightClick()
Checks if is capture right click.- Returns:
- the boolean
-
setCaptureRightClick
public ChartConfiguration<T> setCaptureRightClick(Boolean captureRightClick)
Sets the capture right click.- Parameters:
captureRightClick- the new capture right click- Returns:
- ChartConfiguration
-
getLegend
public Legend getLegend()
Gets the legend.- Returns:
- the legend
-
setLegend
public ChartConfiguration<T> setLegend(Legend legend)
Sets the legend.- Parameters:
legend- the new legend- Returns:
- ChartConfiguration
-
setSimpleTitle
public ChartConfiguration<T> setSimpleTitle(String title)
Sets the simple title.- Parameters:
title- the new simple title- Returns:
- ChartConfiguration
-
cursorInstance
public Cursor cursorInstance()
Instantiates the cursor.- Returns:
- the cursor
-
axesDefaultsInstance
public Axis<T> axesDefaultsInstance()
Instantiates the axes defaults.- Returns:
- the axis
-
seriesInstance
public Collection<Serie> seriesInstance()
-
seriesDefaultsInstance
public SeriesDefaults seriesDefaultsInstance()
-
seriesColorsInstance
public Collection<String> seriesColorsInstance()
-
highlighterInstance
public Highlighter highlighterInstance()
-
setLabelX
public ChartConfiguration<T> setLabelX(String label)
Sets the label x.- Parameters:
label- the new label x- Returns:
- ChartConfiguration
-
setLabelY
public ChartConfiguration<T> setLabelY(String label)
Sets the label y.- Parameters:
label- the new label y- Returns:
- ChartConfiguration
-
getSeries
public Collection<Serie> getSeries()
Gets the series.- Returns:
- the series
-
setSeries
public ChartConfiguration<T> setSeries(Collection<Serie> series)
Sets the series.- Parameters:
series- the series to set- Returns:
- ChartConfiguration
-
addSeries
public ChartConfiguration<T> addSeries(Serie serie)
Adds the series.- Parameters:
serie- the serie- Returns:
- ChartConfiguration
-
getTitle
public Title getTitle()
Gets the title.- Returns:
- the title
-
setTitle
public ChartConfiguration<T> setTitle(Title title)
Sets the title.- Parameters:
title- the title to set- Returns:
- ChartConfiguration
-
setAxesDefaults
public ChartConfiguration<T> setAxesDefaults(Axis<T> axesDefaults)
Sets the axes defaults.- Parameters:
axesDefaults- the axesDefaults to set- Returns:
- ChartConfiguration
-
setAxes
public ChartConfiguration<T> setAxes(Axes<T> axes)
Sets the axes.- Parameters:
axes- the axes to set- Returns:
- ChartConfiguration
-
getSeriesDefaults
public SeriesDefaults getSeriesDefaults()
Gets the series defaults.- Returns:
- the seriesDefaults
-
setSeriesDefaults
public ChartConfiguration<T> setSeriesDefaults(SeriesDefaults seriesDefaults)
Sets the series defaults.- Parameters:
seriesDefaults- the seriesDefaults to set- Returns:
- ChartConfiguration
-
getStackSeries
public Boolean getStackSeries()
Gets the stack series.- Returns:
- the stackSeries
-
setStackSeries
public ChartConfiguration<T> setStackSeries(Boolean stackSeries)
Sets the stack series.- Parameters:
stackSeries- the stackSeries to set- Returns:
- ChartConfiguration
-
getShowMarker
public Boolean getShowMarker()
Gets the show marker.- Returns:
- the showMarker
-
setShowMarker
public ChartConfiguration<T> setShowMarker(Boolean showMarker)
Sets the show marker.- Parameters:
showMarker- the showMarker to set- Returns:
- ChartConfiguration
-
getSeriesColors
public Collection<String> getSeriesColors()
Gets the series colors.- Returns:
- the series colors
-
setSeriesColors
public ChartConfiguration<T> setSeriesColors(Collection<String> seriesColor)
Sets the series colors.- Parameters:
seriesColor- the new series colors- Returns:
- ChartConfiguration
-
getAnimate
public Boolean getAnimate()
Gets the animate.- Returns:
- animate property
-
setAnimate
public ChartConfiguration<T> setAnimate(Boolean animate)
Turns on animation for all series in this plot.- Parameters:
animate- true, false- Returns:
- ChartConfiguration
-
getHighlighter
public Highlighter getHighlighter()
Gets the highlighter.- Returns:
- hightLighter
-
setHighlighter
public ChartConfiguration<T> setHighlighter(Highlighter highlighter)
set the highlighter.- Parameters:
highlighter- property- Returns:
- ChartConfiguration
-
setGrid
public ChartConfiguration<T> setGrid(Grid<T> grid)
Sets the grid.- Parameters:
grid- the new grid- Returns:
- ChartConfiguration
-
getCursor
public Cursor getCursor()
Gets the cursor.- Returns:
- the cursor
-
setCursor
public ChartConfiguration<T> setCursor(Cursor cursor)
Sets the cursor.- Parameters:
cursor- the new cursor- Returns:
- ChartConfiguration
-
getGridPadding
public GridPadding getGridPadding()
Gets gridPadding- Returns:
- GridPadding
-
setGridPadding
public ChartConfiguration<T> setGridPadding(GridPadding gridPadding)
Sets the gridPadding- Parameters:
gridPadding- the new gridPadding- Returns:
- ChartConfiguration
-
gridPaddingInstance
public GridPadding gridPaddingInstance()
Get instance of GridPadding- Returns:
- GridPadding
-
canvasOverlayInstance
public CanvasOverlay canvasOverlayInstance()
Instantiates the canvas overlay.- Returns:
- the canvas overlay
-
getCanvasOverlay
public CanvasOverlay getCanvasOverlay()
Gets the canvas overlay.- Returns:
- the canvas overlay
-
setCanvasOverlay
public ChartConfiguration<T> setCanvasOverlay(CanvasOverlay canvasOverlay)
Sets the canvas overlay.- Parameters:
canvasOverlay- the canvasOverlay to set- Returns:
- ChartConfiguration
-
-