-
public class StockInteractivity extends Interactivity
Interactivity class for stocks.
-
-
Constructor Summary
Constructors Constructor Description StockInteractivity(String jsChart)
-
Method Summary
Modifier and Type Method Description static StockInteractivityinstantiate()StringgetJsBase()voidmultiSelectOnClick()Getter for the multi-select on click. StockInteractivitymultiSelectOnClick(Boolean enabled)Setter for the multi-select on click. voidremoveAllListeners(String type)Removes all listeners from an object. voidscrollOnMouseWheel()Getter for the scrolling. StockInteractivityscrollOnMouseWheel(Boolean enabled)Setter for the scrolling. voidsetOnClickListener(ListenersInterface.OnClickListener listener)voidsetOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)voidunlistenByKey(String key)Removes an event listener which was added with listen() by the key returned by listen() or listenOnce(). voidunselectOnClickOutOfPoint()Getter for the unselectOnClickOutOfPoint. StockInteractivityunselectOnClickOutOfPoint(Boolean enabled)Setter for the unselectOnClickOutOfPoint. voidzoomOnMouseWheel()Getter for the zoom. StockInteractivityzoomOnMouseWheel(Boolean enabled)Setter for the zoom. StockInteractivityallowMultiSeriesSelection(Boolean value)voidhoverMode()Getter for the hover mode. StockInteractivityhoverMode(HoverMode mode)Setter for the hover mode. StockInteractivityhoverMode(String mode)Setter for the hover mode. voidselectionMode()Getter for the selection mode. StockInteractivityselectionMode(SelectionMode mode)Setter for the selection mode. StockInteractivityselectionMode(String mode)Setter for the selection mode. voidspotRadius()Getter for the spot radius. StockInteractivityspotRadius(Number radius)Setter for the spot radius. -
Methods inherited from class com.anychart.core.utils.Interactivity
allowMultiSeriesSelection, hoverMode, hoverMode, instantiate, multiSelectOnClick, selectionMode, selectionMode, spotRadius, unselectOnClickOutOfPoint -
Methods inherited from class com.anychart.core.Base
instantiate -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
StockInteractivity
StockInteractivity(String jsChart)
-
-
Method Detail
-
instantiate
static StockInteractivity instantiate()
-
multiSelectOnClick
void multiSelectOnClick()
Getter for the multi-select on click.
-
multiSelectOnClick
StockInteractivity multiSelectOnClick(Boolean enabled)
Setter for the multi-select on click.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
scrollOnMouseWheel
void scrollOnMouseWheel()
Getter for the scrolling.
-
scrollOnMouseWheel
StockInteractivity scrollOnMouseWheel(Boolean enabled)
Setter for the scrolling. Allows use mouse wheel for scrolling. Press "ctrl" or "shift" and scroll mouse wheel.
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener)
-
setOnClickListener
void setOnClickListener(ListenersInterface.OnClickListener listener, String type, String ePath)
-
unlistenByKey
void unlistenByKey(String key)
Removes an event listener which was added with listen() by the key returned by listen() or listenOnce().
-
unselectOnClickOutOfPoint
void unselectOnClickOutOfPoint()
Getter for the unselectOnClickOutOfPoint.
-
unselectOnClickOutOfPoint
StockInteractivity unselectOnClickOutOfPoint(Boolean enabled)
Setter for the unselectOnClickOutOfPoint. If the value is true, disables select all points when clicking outside the chart point.
-
zoomOnMouseWheel
void zoomOnMouseWheel()
Getter for the zoom.
-
zoomOnMouseWheel
StockInteractivity zoomOnMouseWheel(Boolean enabled)
Setter for the zoom. Allows use mouse wheel for zooming.
-
allowMultiSeriesSelection
StockInteractivity allowMultiSeriesSelection(Boolean value)
-
hoverMode
void hoverMode()
Getter for the hover mode.
-
hoverMode
StockInteractivity hoverMode(HoverMode mode)
Setter for the hover mode.
-
hoverMode
StockInteractivity hoverMode(String mode)
Setter for the hover mode.
-
selectionMode
void selectionMode()
Getter for the selection mode.
-
selectionMode
StockInteractivity selectionMode(SelectionMode mode)
Setter for the selection mode.
-
selectionMode
StockInteractivity selectionMode(String mode)
Setter for the selection mode.
-
spotRadius
void spotRadius()
Getter for the spot radius.
-
spotRadius
StockInteractivity spotRadius(Number radius)
Setter for the spot radius. Size of the area under cursor in pixels for radius hovering. Note: Works only with "by-spot" value in the hoverMode method.
-
-
-
-