Package org.zkoss.chart.plotOptions
Class XRangePartialFill
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.XRangePartialFill
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class XRangePartialFill extends Optionable
A partial fill for each point, typically used to visualize how much of a task is performed. The partial fill object can be set either on series or point level.- Since:
- 7.2.1.0
- Author:
- rudyhuang
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description XRangePartialFill()
XRangePartialFill(Number amount)
Constructs with an amount.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getAmount()
Returns the amount of the X-range point to be filled.Color
getFill()
Returns the fill color to be used for partial fills.void
setAmount(Number amount)
Sets the amount of the X-range point to be filled.void
setFill(String fill)
Sets the fill color to be used for partial fills.void
setFill(Color fill)
Sets the fill color to be used for partial fills.void
setFill(LinearGradient fill)
Sets the fill color to be used for partial fills.void
setFill(RadialGradient fill)
Sets the fill color to be used for partial fills.-
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
-
-
-
-
Constructor Detail
-
XRangePartialFill
public XRangePartialFill()
-
XRangePartialFill
public XRangePartialFill(Number amount)
Constructs with an amount.
-
-
Method Detail
-
getAmount
public Number getAmount()
Returns the amount of the X-range point to be filled. Values can be 0-1 and are converted to percentages in the default data label formatter.Default: null
-
setAmount
public void setAmount(Number amount)
Sets the amount of the X-range point to be filled. Values can be 0-1 and are converted to percentages in the default data label formatter.
-
getFill
public Color getFill()
Returns the fill color to be used for partial fills.Default: a darker shade of the point color
-
setFill
public void setFill(Color fill)
Sets the fill color to be used for partial fills.
-
setFill
public void setFill(String fill)
Sets the fill color to be used for partial fills.
-
setFill
public void setFill(LinearGradient fill)
Sets the fill color to be used for partial fills.
-
setFill
public void setFill(RadialGradient fill)
Sets the fill color to be used for partial fills.
-
-