Package org.zkoss.chart
Class Zone
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.Zone
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class Zone extends Optionable
Defining zones within a series- Author:
- Christopher
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description Zone()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetColor()Get the color of the series.StringgetDashStyle()Get name for the dash style to use for the graph.ColorgetFillColor()Get the fill color for the series (in area type series).NumbergetValue()Get value up to where the zone extends, if undefined the zones stretches to the last value in the series.voidsetColor(String color)Set the color of the series.voidsetColor(Color color)Set the color of the series.voidsetColor(LinearGradient color)Set the color of the series.voidsetColor(RadialGradient color)Set the color of the series.voidsetDashStyle(String dashStyle)Set name for the dash style to use for the graph.voidsetFillColor(String fillColor)Set the fill color for the series (in area type series).voidsetFillColor(Color fillColor)Set the fill color for the series (in area type series).voidsetFillColor(LinearGradient fillColor)Set the fill color for the series (in area type series).voidsetFillColor(RadialGradient fillColor)Set the fill color for the series (in area type series).voidsetValue(Number value)Get value up to where the zone extends, if undefined the zones stretches to the last value in the series.-
Methods inherited from class org.zkoss.chart.Optionable
addExtraAttr, addOptionDataListener, clearOptonDataListener, clone, containsKey, fireEvent, fireEvent, fireEvent, fireEvent, fireEvent, getAttr, getAttr, getClientState, getExtraAttr, merge, onChange, removeExtraAttr, removeKey, removeOptionDataListener, setAttr, setAttr, setAttr, setAttr, toJSONString, toString
-
-
-
-
Method Detail
-
getColor
public Color getColor()
Get the color of the series.Default: null
- Since:
- 2.1.0
-
setColor
public void setColor(Color color)
Set the color of the series.- Since:
- 2.1.0
-
setColor
public void setColor(String color)
Set the color of the series.- Since:
- 2.1.0
-
setColor
public void setColor(LinearGradient color)
Set the color of the series.- Since:
- 2.1.0
- See Also:
LinearGradient
-
setColor
public void setColor(RadialGradient color)
Set the color of the series.- Since:
- 2.1.0
- See Also:
RadialGradient
-
getDashStyle
public String getDashStyle()
Get name for the dash style to use for the graph.Default: null
- Since:
- 2.1.0
-
setDashStyle
public void setDashStyle(String dashStyle)
Set name for the dash style to use for the graph. Possible values are:- "Solid"
- "ShortDash"
- "ShortDot"
- "ShortDashDot"
- "ShortDashDotDot"
- "Dot"
- "Dash"
- "LongDash"
- "DashDot"
- "LongDashDot"
- "LongDashDotDot"
- Since:
- 2.1.0
-
getFillColor
public Color getFillColor()
Get the fill color for the series (in area type series).Default: null
- Since:
- 2.1.0
-
setFillColor
public void setFillColor(Color fillColor)
Set the fill color for the series (in area type series).- Since:
- 2.1.0
-
setFillColor
public void setFillColor(String fillColor)
Set the fill color for the series (in area type series).- Since:
- 2.1.0
-
setFillColor
public void setFillColor(LinearGradient fillColor)
Set the fill color for the series (in area type series).- Since:
- 2.1.0
- See Also:
LinearGradient
-
setFillColor
public void setFillColor(RadialGradient fillColor)
Set the fill color for the series (in area type series).- Since:
- 2.1.0
- See Also:
RadialGradient
-
getValue
public Number getValue()
Get value up to where the zone extends, if undefined the zones stretches to the last value in the series.Default: null
- Since:
- 2.1.0
-
setValue
public void setValue(Number value)
Get value up to where the zone extends, if undefined the zones stretches to the last value in the series.- Since:
- 2.1.0
-
-