Package org.zkoss.chart.plotOptions
Class NetworkGraphDataLabels
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.DataLabels
-
- org.zkoss.chart.plotOptions.NetworkGraphDataLabels
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
public class NetworkGraphDataLabels extends DataLabels
An option of data labels used for networkgraph plot.All the options in this class support
DynamicalAttribute.- 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 NetworkGraphDataLabels()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetLinkFormat()Returns the format string specifying what to show for links in the networkgraph.org.zkoss.json.JavaScriptValuegetLinkFormatter()Returns the callback to format data labels for links in the sankey diagram.DataLabelsTextPathgetLinkTextPath()Returns the options for a link label text which should follow link connection, if any.voidsetLinkFormat(String linkFormat)Sets the format string specifying what to show for links in the networkgraph.voidsetLinkFormatter(org.zkoss.json.JavaScriptValue linkFormatter)Sets the callback to format data labels for links in the sankey diagram.voidsetLinkTextPath(DataLabelsTextPath linkTextPath)Sets the options for a link label text which should follow link connection.-
Methods inherited from class org.zkoss.chart.plotOptions.DataLabels
getAlign, getAllowOverlap, getBackgroundColor, getBorderColor, getBorderRadius, getBorderWidth, getColor, getConnectorColor, getConnectorShape, getConnectorWidth, getDefer, getDistance, getFilter, getFormat, getFormatter, getHeaders, getNodeFormat, getNodeFormatter, getNullFormat, getNullFormatter, getOverflow, getPadding, getPointFormat, getRotation, getRotationMode, getShadow, getShape, getStyle, getTextPath, getVerticalAlign, getX, getY, getZIndex, isAlternate, isCrop, isEnabled, isInside, isShadow, isSoftConnector, isUseHTML, setAlign, setAllowOverlap, setAlternate, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setBorderColor, setBorderColor, setBorderRadius, setBorderRadius, setBorderWidth, setColor, setColor, setColor, setColor, setConnectorColor, setConnectorShape, setConnectorWidth, setCrop, setDefer, setDistance, setDistance, setEnabled, setFilter, setFormat, setFormatter, setHeaders, setInside, setNodeFormat, setNodeFormatter, setNullFormat, setNullFormatter, setOverflow, setPadding, setPointFormat, setRotation, setRotation, setRotationMode, setShadow, setShadow, setShape, setSoftConnector, setStyle, setStyle, setTextPath, setUseHTML, setVerticalAlign, setX, setY, setZIndex
-
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
-
getLinkFormat
public String getLinkFormat()
Returns the format string specifying what to show for links in the networkgraph.Default: null
- Overrides:
getLinkFormatin classDataLabels
-
setLinkFormat
public void setLinkFormat(String linkFormat)
Sets the format string specifying what to show for links in the networkgraph.- Overrides:
setLinkFormatin classDataLabels
-
getLinkFormatter
public org.zkoss.json.JavaScriptValue getLinkFormatter()
Returns the callback to format data labels for links in the sankey diagram. The linkFormat option takes precedence over the linkFormatter.
-
setLinkFormatter
public void setLinkFormatter(org.zkoss.json.JavaScriptValue linkFormatter)
Sets the callback to format data labels for links in the sankey diagram. The linkFormat option takes precedence over the linkFormatter.
-
getLinkTextPath
public DataLabelsTextPath getLinkTextPath()
Returns the options for a link label text which should follow link connection, if any. Otherwise, create a new one. Note: Only SVG-based renderer supports this option.- Overrides:
getLinkTextPathin classDataLabels
-
setLinkTextPath
public void setLinkTextPath(DataLabelsTextPath linkTextPath)
Sets the options for a link label text which should follow link connection. Note: Only SVG-based renderer supports this option.- Overrides:
setLinkTextPathin classDataLabels
-
-