Package org.zkoss.chart.plotOptions
Class TreeGraphLink
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.TreeGraphLink
-
- All Implemented Interfaces:
Serializable
,OptionDataListener
,org.zkoss.json.JSONAware
public class TreeGraphLink extends Optionable
Link style options.- Since:
- 10.3.3.0
- Author:
- jumperchen
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.zkoss.chart.Optionable
NOT_NULL_VALUE, options
-
-
Constructor Summary
Constructors Constructor Description TreeGraphLink()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColor()
Returns the color of the link between two nodes.String
getCursor()
Returns the mouse cursor.Number
getLineWidth()
Returns pixel width of the graph line.Number
getRadius()
Returns radius for the rounded corners of the links between nodes.String
getType()
Returns the type of the link shapevoid
setColor(String color)
Sets the color of the link between two nodes.void
setCursor(String cursor)
Sets the mouse cursor.void
setLineWidth(Number lineWidth)
Sets pixel width of the graph line.void
setRadius(Number radius)
Sets radius for the rounded corners of the links between nodes.void
setType(String type)
Sets the type of the link shape in "default", "curved", and "straight".-
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 String getColor()
Returns the color of the link between two nodes.Default: #666666
-
setColor
public void setColor(String color)
Sets the color of the link between two nodes.
-
getCursor
public String getCursor()
Returns the mouse cursor.Default: "default"
-
setCursor
public void setCursor(String cursor)
Sets the mouse cursor.Default: "default"
-
getLineWidth
public Number getLineWidth()
Returns pixel width of the graph line.Default: 1.
-
setLineWidth
public void setLineWidth(Number lineWidth)
Sets pixel width of the graph line.
-
getRadius
public Number getRadius()
Returns radius for the rounded corners of the links between nodes. Works for "default" link type.Default: 10
-
setRadius
public void setRadius(Number radius)
Sets radius for the rounded corners of the links between nodes. Works for "default" link type.Default: 10
-
getType
public String getType()
Returns the type of the link shapeDefault: "curved"
-
setType
public void setType(String type)
Sets the type of the link shape in "default", "curved", and "straight".Default: "curved"
-
-