Class 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
    • Constructor Detail

      • DataLabelsTextPath

        public DataLabelsTextPath()
    • 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 like
        
         textPath.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.