-
public class ChartScroller extends Scroller
Chart scroller class that also exposes position method that is used by chart.
-
-
Constructor Summary
Constructors Constructor Description ChartScroller(String jsChart)
-
Method Summary
Modifier and Type Method Description static ChartScrollerinstantiate()StringgetJsBase()voidallowRangeChange()Getter for the mode of the range changing. ChartScrollerallowRangeChange(Boolean enabled)Setter for the mode of the range changing. voidautoHide()Getter for scroller auto hide mode. ChartScrollerautoHide(Boolean enabled)Setter for scroller auto hide mode. voidenabled()Getter for the element state (enabled or disabled). ChartScrollerenabled(Boolean enabled)Setter for the element enabled state. voidfill()Getter for the scroller fill. ChartScrollerfill(Fill color)Setter for scroller fill settings using an array, an object or a string. ChartScrollerfill(GradientKey color)Setter for scroller fill settings using an array, an object or a string. ChartScrollerfill(Array<String> color)Setter for scroller fill settings using an array, an object or a string. ChartScrollerfill(String color, Number opacity)Scroller fill color with opacity. ChartScrollerfill(GradientKey keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. ChartScrollerfill(GradientKey keys, Number angle, Rect mode, Number opacity)Linear gradient fill. ChartScrollerfill(GradientKey keys, Number angle, String mode, Number opacity)Linear gradient fill. ChartScrollerfill(Array<String> keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. ChartScrollerfill(Array<String> keys, Number angle, Rect mode, Number opacity)Linear gradient fill. ChartScrollerfill(Array<String> keys, Number angle, String mode, Number opacity)Linear gradient fill. ChartScrollerfill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. ChartScrollerfill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. voidheight()Getter for the scroller height. ChartScrollerheight(Number height)Setter for the scroller height. ChartScrollerheight(String height)Setter for the scroller height. voidinverted()Getter for the scroller inversion. ChartScrollerinverted(Boolean enabled)Setter for the scroller inversion. voidmaxHeight()Getter for the scroller maximum height. ChartScrollermaxHeight(Number height)Setter for the scroller maximum height. ChartScrollermaxHeight(String height)Setter for the scroller maximum height. voidminHeight()Setter for the scroller minimum height. ChartScrollerminHeight(Number height)Setter for the scroller minimum height. ChartScrollerminHeight(String height)Setter for the scroller minimum height. voidorientation()Getter for the scroller orientation. ChartScrollerorientation(Orientation orientation)Setter for the scroller orientation. ChartScrollerorientation(String orientation)Setter for the scroller orientation. voidoutlineStroke()Getter for outline stroke settings. ChartScrolleroutlineStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for outline stroke settings. ChartScrolleroutlineStroke(String settings)Setter for outline stroke using an object. voidposition()Getter for the scroller position. ChartScrollerposition(ChartScrollerPosition position)Setter for the scroller position. ChartScrollerposition(String position)Setter for the scroller position. voidprint(PaperSize paperSizeOrOptions, Boolean landscape)Prints all elements on related stage. voidprint(String paperSizeOrOptions, Boolean landscape)Prints all elements on related stage. voidremoveAllListeners(String type)Removes all listeners from an object. voidselectedFill()Getter for scroller fill in selected mode. ChartScrollerselectedFill(Fill color)Setter for scroller fill settings in selected mode using an array or a string. ChartScrollerselectedFill(GradientKey color)Setter for scroller fill settings in selected mode using an array or a string. ChartScrollerselectedFill(Array<String> color)Setter for scroller fill settings in selected mode using an array or a string. ChartScrollerselectedFill(String color, Number opacity)Scroller fill color in selected mode with opacity. ChartScrollerselectedFill(GradientKey keys, Number angle, Boolean mode, Number opacity)Linear gradient fill in selected mode. ChartScrollerselectedFill(GradientKey keys, Number angle, Rect mode, Number opacity)Linear gradient fill in selected mode. ChartScrollerselectedFill(GradientKey keys, Number angle, String mode, Number opacity)Linear gradient fill in selected mode. ChartScrollerselectedFill(Array<String> keys, Number angle, Boolean mode, Number opacity)Linear gradient fill in selected mode. ChartScrollerselectedFill(Array<String> keys, Number angle, Rect mode, Number opacity)Linear gradient fill in selected mode. ChartScrollerselectedFill(Array<String> keys, Number angle, String mode, Number opacity)Linear gradient fill in selected mode. ChartScrollerselectedFill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill in selected mode. ChartScrollerselectedFill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill in selected mode. Thumbsthumbs()Getter for the thumbs. ChartScrollerthumbs(Boolean settings)Setter for the thumbs settings. ChartScrollerthumbs(String settings)Setter for the thumbs settings. 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(). voidzIndex()Getter for the Z-index of the element. ChartScrollerzIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. ChartScrollercontainer(Layer element)Setter for the container. ChartScrollercontainer(Stage element)Setter for the container. ChartScrollercontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. ChartScrollerparentBounds(Rect bounds)Setter for the parent bounds using single value. ChartScrollerparentBounds(String bounds)Setter for the parent bounds using single value. ChartScrollerparentBounds(Number bounds)Setter for the parent bounds using single value. ChartScrollerparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. ChartScrollerfill(String value)-
Methods inherited from class com.anychart.core.ui.Scroller
allowRangeChange, autoHide, container, container, container, enabled, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, fill, height, height, instantiate, maxHeight, maxHeight, minHeight, minHeight, orientation, orientation, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, outlineStroke, parentBounds, parentBounds, parentBounds, parentBounds, selectedFill, selectedFill, selectedFill, selectedFill, selectedFill, selectedFill, selectedFill, selectedFill, selectedFill, selectedFill, selectedFill, selectedFill, thumbs, thumbs, zIndex -
Methods inherited from class com.anychart.core.VisualBase
container, container, container, enabled, instantiate, parentBounds, parentBounds, parentBounds, parentBounds, zIndex -
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
-
ChartScroller
ChartScroller(String jsChart)
-
-
Method Detail
-
instantiate
static ChartScroller instantiate()
-
allowRangeChange
void allowRangeChange()
Getter for the mode of the range changing.
-
allowRangeChange
ChartScroller allowRangeChange(Boolean enabled)
Setter for the mode of the range changing. If the range changing is allowed.
-
autoHide
void autoHide()
Getter for scroller auto hide mode.
-
autoHide
ChartScroller autoHide(Boolean enabled)
Setter for scroller auto hide mode.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
enabled
ChartScroller enabled(Boolean enabled)
Setter for the element enabled state.
-
fill
void fill()
Getter for the scroller fill.
-
fill
ChartScroller fill(Fill color)
Setter for scroller fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(GradientKey color)
Setter for scroller fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(Array<String> color)
Setter for scroller fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(String color, Number opacity)
Scroller fill color with opacity.
-
fill
ChartScroller fill(GradientKey keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(GradientKey keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(GradientKey keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(Array<String> keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(Array<String> keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(Array<String> keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ChartScroller fill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
height
void height()
Getter for the scroller height.
-
height
ChartScroller height(Number height)
Setter for the scroller height.
-
height
ChartScroller height(String height)
Setter for the scroller height.
-
inverted
void inverted()
Getter for the scroller inversion.
-
inverted
ChartScroller inverted(Boolean enabled)
Setter for the scroller inversion.
-
maxHeight
void maxHeight()
Getter for the scroller maximum height.
-
maxHeight
ChartScroller maxHeight(Number height)
Setter for the scroller maximum height.
-
maxHeight
ChartScroller maxHeight(String height)
Setter for the scroller maximum height.
-
minHeight
void minHeight()
Setter for the scroller minimum height.
-
minHeight
ChartScroller minHeight(Number height)
Setter for the scroller minimum height.
-
minHeight
ChartScroller minHeight(String height)
Setter for the scroller minimum height.
-
orientation
void orientation()
Getter for the scroller orientation.
-
orientation
ChartScroller orientation(Orientation orientation)
Setter for the scroller orientation.
-
orientation
ChartScroller orientation(String orientation)
Setter for the scroller orientation.
-
outlineStroke
void outlineStroke()
Getter for outline stroke settings.
-
outlineStroke
ChartScroller outlineStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for outline stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
outlineStroke
ChartScroller outlineStroke(String settings)
Setter for outline stroke using an object.
-
position
void position()
Getter for the scroller position.
-
position
ChartScroller position(ChartScrollerPosition position)
Setter for the scroller position.
-
position
ChartScroller position(String position)
Setter for the scroller position.
-
print
void print(PaperSize paperSizeOrOptions, Boolean landscape)
Prints all elements on related stage.
-
print
void print(String paperSizeOrOptions, Boolean landscape)
Prints all elements on related stage.
-
removeAllListeners
void removeAllListeners(String type)
Removes all listeners from an object. You can also optionally remove listeners of some particular type.
-
selectedFill
void selectedFill()
Getter for scroller fill in selected mode.
-
selectedFill
ChartScroller selectedFill(Fill color)
Setter for scroller fill settings in selected mode using an array or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(GradientKey color)
Setter for scroller fill settings in selected mode using an array or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(Array<String> color)
Setter for scroller fill settings in selected mode using an array or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(String color, Number opacity)
Scroller fill color in selected mode with opacity.
-
selectedFill
ChartScroller selectedFill(GradientKey keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill in selected mode. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(GradientKey keys, Number angle, Rect mode, Number opacity)
Linear gradient fill in selected mode. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(GradientKey keys, Number angle, String mode, Number opacity)
Linear gradient fill in selected mode. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(Array<String> keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill in selected mode. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(Array<String> keys, Number angle, Rect mode, Number opacity)
Linear gradient fill in selected mode. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(Array<String> keys, Number angle, String mode, Number opacity)
Linear gradient fill in selected mode. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial gradient fill in selected mode. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
selectedFill
ChartScroller selectedFill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)
Radial gradient fill in selected mode. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
thumbs
ChartScroller thumbs(Boolean settings)
Setter for the thumbs settings.
-
thumbs
ChartScroller thumbs(String settings)
Setter for the thumbs settings.
-
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().
-
zIndex
void zIndex()
Getter for the Z-index of the element.
-
zIndex
ChartScroller zIndex(Number zIndex)
Setter for the Z-index of the element.
-
container
ChartScroller container(Layer element)
Setter for the container.
-
container
ChartScroller container(Stage element)
Setter for the container.
-
container
ChartScroller container(String element)
Setter for the container.
-
parentBounds
Rect parentBounds()
Getter for the parent bounds. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
ChartScroller parentBounds(Rect bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
ChartScroller parentBounds(String bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
ChartScroller parentBounds(Number bounds)
Setter for the parent bounds using single value. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
ChartScroller parentBounds(Number left, Number top, Number width, Number height)
Setter for the parent bounds using several values. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
fill
ChartScroller fill(String value)
-
-
-
-