public abstract class ChartSeries
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static interface |
ChartSeries.ChartType |
| Constructor and Description |
|---|
ChartSeries() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
abstract void |
encodeRendererOptions(JSONBuilder cfg) |
java.lang.String |
getColor()
Get the CSS color definition of this series
|
JSONBuilder |
getConfigJSON(javax.faces.component.UIComponent component) |
java.util.List<java.lang.Object> |
getData()
Return the list of plain Java objects backing the chart.
|
JSONBuilder |
getDataJSON(javax.faces.component.UIComponent chart) |
abstract ChartSeries.ChartType |
getDefaultType() |
java.lang.Boolean |
getFill()
Get whether or not this series fills the bars, sectors or region it covers with
the its given color.
|
java.lang.Integer |
getFillAlpha()
Get the transparency of the filled region under the line.
|
java.lang.Boolean |
getFillToZero()
Return fillToZero behaviour truth value
|
java.lang.String |
getLabel()
Return the label of the chart.
|
LineCap |
getLineCap()
Get the style of termination used for lines of this series.
|
LineJoin |
getLineJoin()
Get the style of join used to connect line segments of this series.
|
java.lang.Integer |
getLineWidth()
Get the width of the line in pixels.
|
java.lang.String[] |
getSeriesColors()
Get the array of CSS color definitions used to color this series.
|
java.lang.Boolean |
getShadow()
Set if this line casts a shadow.
|
java.lang.Integer |
getShadowAlpha()
Get the transparency of the shadow rendered.
|
java.lang.Integer |
getShadowAngle()
Get the angle at which this line casts a shadow.
|
java.lang.Integer |
getShadowDepth()
Get the number of stroke passes rendered by this shadow.
|
java.lang.Integer |
getShadowOffset()
Get the offset of the shadow from the line.
|
java.lang.Boolean |
getShow()
Return the truth value of this series visibility.
|
java.lang.Boolean |
getShowMarker()
Return the truth value of the point marker visibility
|
ChartSeries.ChartType |
getType()
Enum value determining the type of renderer that will be used client side to plot the
data of this series.
|
java.lang.Boolean |
getUseNegativeColors()
Get whether or not this series fills using an alternate color when rendering in a negative quadrant.
|
java.lang.Integer |
getXAxis()
Get a integer defining which axis this Series is plotted against.
|
java.lang.Integer |
getYAxis()
Get a integer defining which axis this Series is plotted against.
|
void |
setColor(java.lang.String color)
Set the CSS color definition of this series.
|
void |
setData(java.util.List<java.lang.Object> data)
Set the list of plain Java objects backing the chart.
|
void |
setFill(java.lang.Boolean fill)
Set whether or not this series fills the bars, sectors or region it covers with
the its given color.
|
void |
setFillAlpha(java.lang.Integer fillAlpha)
Set the transparency of the filled region under the line.
|
void |
setFillToZero(java.lang.Boolean fillToZero)
Enables bar charts to fill to zero but not beyond it.
|
protected void |
setInCfgObject(JSONBuilder cfg,
java.lang.String key,
java.lang.Boolean value)
as each value is written to the seriesDefault object, put it in a list
so that the series object doesn't double up and contain the same thing.
|
protected void |
setInCfgObject(JSONBuilder cfg,
java.lang.String key,
double value) |
protected void |
setInCfgObject(JSONBuilder cfg,
java.lang.String key,
int value) |
protected void |
setInCfgObject(JSONBuilder cfg,
java.lang.String key,
java.lang.String value)
as each value is written to the seriesDefault object, put it in a list
so that the series object doesn't double up and contain the same thing.
|
void |
setLabel(java.lang.String label)
Set the label of the chart used in the Legend etc.
|
void |
setLineCap(LineCap lineCap)
Set the style of how lines of this series will be terminated
|
void |
setLineJoin(LineJoin lineJoin)
Set the the style of join used connect line segments of this series.
|
void |
setLineWidth(java.lang.Integer lineWidth)
Set the width of the line in pixels.
|
void |
setSeriesColors(java.lang.String[] seriesColors)
Set the array of the CSS color definitions.
|
void |
setShadow(java.lang.Boolean shadow)
Set if this line casts a shadow.
|
void |
setShadowAlpha(java.lang.Integer shadowAlpha)
Set the transparency of the shadow rendered.
|
void |
setShadowAngle(java.lang.Integer shadowAngle)
Set the angle at which this line casts a shadow
|
void |
setShadowDepth(java.lang.Integer shadowDepth)
Set the number of stroke passes rendered by this shadow.
|
void |
setShadowOffset(java.lang.Integer shadowOffset)
Set the offset of the shadow from the line.
|
void |
setShow(java.lang.Boolean show)
Set the visibility of this series.
|
void |
setShowMarker(java.lang.Boolean showMarker)
Set the visibility of the point markers of this series
|
void |
setType(ChartSeries.ChartType type)
Set an enum value determining the type of renderer that will be used client side to plot the
data of this series.
|
void |
setUseNegativeColors(java.lang.Boolean useNegativeColors)
Enable this series using an alternate color when rendering fills in a negative quadrant.
|
void |
setXAxis(java.lang.Integer xAxis)
Set a integer defining which axis this Series is plotted against.
|
void |
setYAxis(java.lang.Integer yAxis)
Set a integer defining which axis this Series is plotted against.
|
public java.lang.Boolean getShow()
public void setShow(java.lang.Boolean show)
show - series visibility truth valuepublic java.lang.Boolean getShowMarker()
public void setShowMarker(java.lang.Boolean showMarker)
showMarker - point marker visibility truth valuepublic java.lang.Integer getXAxis()
public void setXAxis(java.lang.Integer xAxis)
xAxis - the index of the x axispublic java.lang.Integer getYAxis()
public void setYAxis(java.lang.Integer yAxis)
yAxis - the index of the y axispublic java.lang.Boolean getFillToZero()
public void setFillToZero(java.lang.Boolean fillToZero)
fillToZero - public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - String valuepublic java.util.List<java.lang.Object> getData()
public void setData(java.util.List<java.lang.Object> data)
data - List valuepublic ChartSeries.ChartType getType()
public void setType(ChartSeries.ChartType type)
type - an enum defined in this subclass of ChartSeries defining the series rendering typepublic java.lang.Boolean getUseNegativeColors()
public void setUseNegativeColors(java.lang.Boolean useNegativeColors)
useNegativeColors - negative colors enabledpublic java.lang.Boolean getFill()
public void setFill(java.lang.Boolean fill)
fill - fill enabledpublic java.lang.Integer getLineWidth()
public void setLineWidth(java.lang.Integer lineWidth)
lineWidth - pixel widthpublic LineJoin getLineJoin()
public void setLineJoin(LineJoin lineJoin)
lineJoin - line join style enumpublic LineCap getLineCap()
public void setLineCap(LineCap lineCap)
lineCap - line cap style enumpublic java.lang.Boolean getShadow()
public void setShadow(java.lang.Boolean shadow)
shadow - whether this line casts a shadowpublic java.lang.Integer getShadowAngle()
public void setShadowAngle(java.lang.Integer shadowAngle)
shadowAngle - angle in degreespublic java.lang.Integer getShadowOffset()
public void setShadowOffset(java.lang.Integer shadowOffset)
shadowOffset - offset from the line in pixelspublic java.lang.Integer getShadowDepth()
public void setShadowDepth(java.lang.Integer shadowDepth)
shadowDepth - number of shadow line stokespublic java.lang.Integer getShadowAlpha()
public void setShadowAlpha(java.lang.Integer shadowAlpha)
shadowAlpha - alpha value 0 to 100public java.lang.Integer getFillAlpha()
public void setFillAlpha(java.lang.Integer fillAlpha)
fillAlpha - integer value 0-100public java.lang.String[] getSeriesColors()
public void setSeriesColors(java.lang.String[] seriesColors)
seriesColors - array of CSS color definition Stringspublic java.lang.String getColor()
public void setColor(java.lang.String color)
color - CSS color Stringpublic JSONBuilder getDataJSON(javax.faces.component.UIComponent chart)
public JSONBuilder getConfigJSON(javax.faces.component.UIComponent component)
protected void setInCfgObject(JSONBuilder cfg, java.lang.String key, java.lang.Boolean value)
cfg - key - value - protected void setInCfgObject(JSONBuilder cfg, java.lang.String key, java.lang.String value)
cfg - key - value - protected void setInCfgObject(JSONBuilder cfg, java.lang.String key, int value)
protected void setInCfgObject(JSONBuilder cfg, java.lang.String key, double value)
public abstract ChartSeries.ChartType getDefaultType()
public abstract void encodeRendererOptions(JSONBuilder cfg)
public void clear()
Copyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.