public class CartesianSeries extends ChartSeries
| Modifier and Type | Class and Description |
|---|---|
static class |
CartesianSeries.CartesianType |
ChartSeries.ChartType| Constructor and Description |
|---|
CartesianSeries() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.Object y)
Add an point as a y-value with a x-value relative to the position in this series and the value at an accompanying index in a
separately determined list of x-axis ticks.
|
void |
add(java.lang.Object x,
java.lang.Object y)
Add an point as an explicit x and y value pair.
|
void |
encodeRendererOptions(JSONBuilder cfg)
must take into account default series which may determine barType
|
int |
getBarMargin() |
int |
getBarPadding() |
int |
getBarWidth() |
JSONBuilder |
getConfigJSON(javax.faces.component.UIComponent component)
Used by the ChartRenderer to produce a JSON representation of the data of this series.
|
JSONBuilder |
getDataJSON(javax.faces.component.UIComponent component)
Used by the ChartRenderer to produce a JSON representation of the configuration of this series.
|
ChartSeries.ChartType |
getDefaultType() |
java.lang.Boolean |
getDragable()
Get if the points of this series are draggable.
|
DragConstraintAxis |
getDragConstraintAxis()
Get the configured axis that dragging of points is confined to.
|
java.lang.String[] |
getHighlightColors() |
java.lang.Boolean |
getHorizontalBar()
Determine if this series is bar type, is it horizontal?
|
LinePattern |
getLinePattern()
Get the pattern of stroke applied to the lines of this series.
|
java.lang.String[] |
getPointLabelList()
Get the list of labels for the points of this series.
|
java.lang.Boolean |
getPointLabelStacked()
Get if the point labels are to be rendered in a stacked plot.
|
java.lang.Integer |
getPointLabelTolerance()
Set the distances that point labels must be from a boundary
if they are to be rendered.
|
java.lang.Boolean |
getSmooth()
Get if the lines of this series have curves rendered between points rather than straight line segments.
|
java.lang.Boolean |
getVaryBarColor() |
java.lang.Boolean |
isPointLabels()
Get if this series has labels rendered near each point
|
void |
setBarMargin(int barMargin)
Number of pixels between groups of bars at adjacent axis values
|
void |
setBarPadding(int barPadding)
Number of pixels between adjacent bars at the same axis value
|
void |
setBarWidth(int barWidth)
Width of the bar in pixels (auto by default).
|
void |
setDragable(java.lang.Boolean dragable)
Enable dragging for the points of this series.
|
void |
setDragConstraintAxis(DragConstraintAxis dragConstraintAxis)
Set the configured axis that dragging of points is confined to.
|
void |
setHighlightColors(java.lang.String[] highlightColors) |
void |
setHorizontalBar(java.lang.Boolean horizontalBar)
Set if this bar series is a horizontal type.
|
void |
setLinePattern(LinePattern linePattern)
Set the pattern of stroke applied to the lines of this series.
|
void |
setPointLabelList(java.lang.String[] pointLabelList)
Set the list of labels for the points of this series.
|
void |
setPointLabels(java.lang.Boolean pointLabels)
Set if this series has labels rendered near each point.
|
void |
setPointLabelStacked(java.lang.Boolean pointLabelStacked)
Set if the point labels are to be rendered in a stacked plot.
|
void |
setPointLabelTolerance(java.lang.Integer pointLabelTolerance)
Get the distance that point labels must be from a boundary
if they are to be rendered,
|
void |
setSmooth(java.lang.Boolean smooth)
Set if the lines of this series have curves rendered between points rather than straight line segments.
|
void |
setVaryBarColor(java.lang.Boolean varyBarColor)
Ture to color each bar of a series separately rather than have every bar of a given series the same color.
|
clear, getColor, getData, getFill, getFillAlpha, getFillToZero, getLabel, getLineCap, getLineJoin, getLineWidth, getSeriesColors, getShadow, getShadowAlpha, getShadowAngle, getShadowDepth, getShadowOffset, getShow, getShowMarker, getType, getUseNegativeColors, getXAxis, getYAxis, setColor, setData, setFill, setFillAlpha, setFillToZero, setInCfgObject, setInCfgObject, setInCfgObject, setInCfgObject, setLabel, setLineCap, setLineJoin, setLineWidth, setSeriesColors, setShadow, setShadowAlpha, setShadowAngle, setShadowDepth, setShadowOffset, setShow, setShowMarker, setType, setUseNegativeColors, setXAxis, setYAxispublic ChartSeries.ChartType getDefaultType()
getDefaultType in class ChartSeriespublic void add(java.lang.Object y)
y - the value of the pointpublic void add(java.lang.Object x,
java.lang.Object y)
x - the x coordinate of the pointy - the y coordinate of the pointpublic JSONBuilder getDataJSON(javax.faces.component.UIComponent component)
getDataJSON in class ChartSeriespublic void encodeRendererOptions(JSONBuilder cfg)
encodeRendererOptions in class ChartSeriescfg - public JSONBuilder getConfigJSON(javax.faces.component.UIComponent component)
getConfigJSON in class ChartSeriescomponent - public java.lang.Boolean getHorizontalBar()
public void setHorizontalBar(java.lang.Boolean horizontalBar)
horizontalBar - bar series horizontalpublic java.lang.Boolean isPointLabels()
public void setPointLabels(java.lang.Boolean pointLabels)
pointLabels - series point labellingpublic java.lang.Integer getPointLabelTolerance()
public void setPointLabelTolerance(java.lang.Integer pointLabelTolerance)
pointLabelTolerance - distance in pixelspublic java.lang.Boolean getPointLabelStacked()
public void setPointLabelStacked(java.lang.Boolean pointLabelStacked)
pointLabelStacked - if the labels are intended for a stacked plotpublic java.lang.String[] getPointLabelList()
public void setPointLabelList(java.lang.String[] pointLabelList)
pointLabelList - list of labels to be applied to points of associated indexpublic java.lang.Boolean getDragable()
public void setDragable(java.lang.Boolean dragable)
dragable - if the points of this series are dragale.public DragConstraintAxis getDragConstraintAxis()
public void setDragConstraintAxis(DragConstraintAxis dragConstraintAxis)
dragConstraintAxis - enum representation of the X, Y, or no axis.public LinePattern getLinePattern()
public void setLinePattern(LinePattern linePattern)
linePattern - enum representation of the stroke typepublic java.lang.Boolean getSmooth()
public void setSmooth(java.lang.Boolean smooth)
smooth - if the lines of this series are smoothedpublic java.lang.Boolean getVaryBarColor()
public void setVaryBarColor(java.lang.Boolean varyBarColor)
varyBarColor - public int getBarWidth()
public void setBarWidth(int barWidth)
barWidth - public java.lang.String[] getHighlightColors()
public void setHighlightColors(java.lang.String[] highlightColors)
public int getBarMargin()
public void setBarMargin(int barMargin)
barMargin - public int getBarPadding()
public void setBarPadding(int barPadding)
barPadding - Copyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.