Package org.zkoss.chart.plotOptions
Class DataLabelsTextPath
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.DataLabelsTextPath
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class DataLabelsTextPath extends Optionable
Options for a label text which should follow marker's shape. Note: Only SVG-based renderer supports this option.- 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 DataLabelsTextPath()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> Map<String,V>
getAttributes()
Returns the presentation attributes for the text path, if any.boolean
isEnabled()
Returns enable or disable textPath option for link's or marker's data labels.void
setAttributes(String style)
Sets the presentation attributes for the text path.<V> void
setAttributes(Map<String,V> attributes)
Sets the presentation attributes for the text path.void
setEnabled(boolean enabled)
Sets enable or disable textPath option for link's or marker's data labels.-
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
-
getAttributes
public <V> Map<String,V> getAttributes()
Returns the presentation attributes for the text path, if any. Otherwise, create a new one.- Type Parameters:
V
- Value type
-
setAttributes
public <V> void setAttributes(Map<String,V> attributes)
Sets the presentation attributes for the text path.- Type Parameters:
V
- Value type
-
setAttributes
public void setAttributes(String style)
Sets the presentation attributes for the text path. This method allows simple settings liketextPath.setAttributes("dy: 12; startOffset: '45%'; textLength: 80");
In the format of key:value, and ";" separating multiple key:value pairs, if you have more a complex attributes, we recommend using
setAttributes(Map)
- Parameters:
style
- one or many key:value pairs in a single line string format
-
isEnabled
public boolean isEnabled()
Returns enable or disable textPath option for link's or marker's data labels.Default: false
-
setEnabled
public void setEnabled(boolean enabled)
Sets enable or disable textPath option for link's or marker's data labels.
-
-