Package org.zkoss.chart.plotOptions
Class DragDrop.DragHandle
- java.lang.Object
-
- org.zkoss.chart.Optionable
-
- org.zkoss.chart.plotOptions.DragDrop.DragHandle
-
- All Implemented Interfaces:
Serializable,OptionDataListener,org.zkoss.json.JSONAware
- Enclosing class:
- DragDrop
public static class DragDrop.DragHandle extends Optionable
Options for the drag handles.- 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 DragHandle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()Returns the class name of the drag handles.ColorgetColor()Returns the fill color of the drag handles.StringgetCursor()Returns the mouse cursor to use for the drag handles.ColorgetLineColor()Returns the line color of the drag handles.NumbergetLineWidth()Returns the line width for the drag handles.org.zkoss.json.JavaScriptValuegetPathFormatter()Returns the function to define the SVG path to use for the drag handles.intgetZIndex()Returns the z index for the drag handles.voidsetClassName(String className)Sets the class name of the drag handles.voidsetColor(String color)Sets the fill color of the drag handles.voidsetColor(Color color)Sets the fill color of the drag handles.voidsetCursor(String cursor)Sets the mouse cursor to use for the drag handles.voidsetLineColor(String color)Sets the line color of the drag handles.voidsetLineColor(Color color)Sets the line color of the drag handles.voidsetLineWidth(Number lineWidth)Sets the line width for the drag handles.voidsetPathFormatter(org.zkoss.json.JavaScriptValue pathFormatter)Sets the function to define the SVG path to use for the drag handles.voidsetZIndex(int zIndex)Sets the z index for the drag handles.-
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
-
getClassName
public String getClassName()
Returns the class name of the drag handles.Default: "highcharts-drag-handle"
-
setClassName
public void setClassName(String className)
Sets the class name of the drag handles.
-
getColor
public Color getColor()
Returns the fill color of the drag handles.Default: "#fff"
-
setColor
public void setColor(Color color)
Sets the fill color of the drag handles.
-
setColor
public void setColor(String color)
Sets the fill color of the drag handles.
-
getCursor
public String getCursor()
Returns the mouse cursor to use for the drag handles. By default this is intelligently switching betweenew-resizeandns-resizedepending on the direction the point is being dragged.Default: null
-
setCursor
public void setCursor(String cursor)
Sets the mouse cursor to use for the drag handles. By default this is intelligently switching betweenew-resizeandns-resizedepending on the direction the point is being dragged.
-
getLineColor
public Color getLineColor()
Returns the line color of the drag handles.Default: "rgba(0, 0, 0, 0.6)"
-
setLineColor
public void setLineColor(Color color)
Sets the line color of the drag handles.
-
setLineColor
public void setLineColor(String color)
Sets the line color of the drag handles.
-
getLineWidth
public Number getLineWidth()
Returns the line width for the drag handles.Default: 1.
-
setLineWidth
public void setLineWidth(Number lineWidth)
Sets the line width for the drag handles.
-
getPathFormatter
public org.zkoss.json.JavaScriptValue getPathFormatter()
Returns the function to define the SVG path to use for the drag handles. Takes the point as argument. Should return an SVG path in array format. The SVG path is automatically positioned on the point.Default: null
-
setPathFormatter
public void setPathFormatter(org.zkoss.json.JavaScriptValue pathFormatter)
Sets the function to define the SVG path to use for the drag handles. Takes the point as argument. Should return an SVG path in array format. The SVG path is automatically positioned on the point.
-
getZIndex
public int getZIndex()
Returns the z index for the drag handles.Default: 901
-
setZIndex
public void setZIndex(int zIndex)
Sets the z index for the drag handles.
-
-