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 Color
getColor()
Get the color of the series.String
getDashStyle()
Get name for the dash style to use for the graph.Color
getFillColor()
Get the fill color for the series (in area type series).Number
getValue()
Get value up to where the zone extends, if undefined the zones stretches to the last value in the series.void
setColor(String color)
Set the color of the series.void
setColor(Color color)
Set the color of the series.void
setColor(LinearGradient color)
Set the color of the series.void
setColor(RadialGradient color)
Set the color of the series.void
setDashStyle(String dashStyle)
Set name for the dash style to use for the graph.void
setFillColor(String fillColor)
Set the fill color for the series (in area type series).void
setFillColor(Color fillColor)
Set the fill color for the series (in area type series).void
setFillColor(LinearGradient fillColor)
Set the fill color for the series (in area type series).void
setFillColor(RadialGradient fillColor)
Set the fill color for the series (in area type series).void
setValue(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
-
-