-
public class Stock extends VisualBase
Stock grid.
-
-
Method Summary
Modifier and Type Method Description static Stockinstantiate()StringgetJsBase()StockDateTimeaxis()Getter for the grid axis. Stockaxis(StockDateTime axis)Getter for the grid axis. Stockaxis(Linear axis)Getter for the grid axis. voiddrawFirstLine()Getter for the first line drawing flag. StockdrawFirstLine(Boolean enabled)Setter for the first line drawing flag. voiddrawLastLine()Getter for the last line drawing flag. StockdrawLastLine(Boolean enabled)Setter for the last line drawing flag. voidenabled()Getter for the element state (enabled or disabled). Stockenabled(Boolean enabled)Setter for the element enabled state. voidfill()Getter for grid fill settings. Stockfill(Fill color)Setter for fill settings using an array, an object or a string. Stockfill(GradientKey color)Setter for fill settings using an array, an object or a string. Stockfill(Array<String> color)Setter for fill settings using an array, an object or a string. Stockfill(String color, Number opacity)Fill color with opacity. Stockfill(GradientKey keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. Stockfill(GradientKey keys, Number angle, Rect mode, Number opacity)Linear gradient fill. Stockfill(GradientKey keys, Number angle, String mode, Number opacity)Linear gradient fill. Stockfill(Array<String> keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. Stockfill(Array<String> keys, Number angle, Rect mode, Number opacity)Linear gradient fill. Stockfill(Array<String> keys, Number angle, String mode, Number opacity)Linear gradient fill. Stockfill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. Stockfill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. voidisHorizontal()Whether an grid has horizontal layout. voidisMinor()Getter for the minor grid state flag. StockisMinor(Boolean enabled)Setter for the minor grid state flag. RangeColorspalette()Getter for the colors palette. Mappalette(RangeColors settings)Setter for the grid colors palette. Mappalette(DistinctColors settings)Setter for the grid colors palette. Mappalette(String settings)Setter for the grid colors palette. Mappalette(Array<String> settings)Setter for the grid colors palette. 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. Basescale()Getter for the grid scale. Stockscale(String settings)Setter for the grid scale. Stockscale(Base settings)Setter for the grid scale. Stockscale(StockScatterDateTime settings)Setter for the grid scale. voidstroke()Getter for the grid stroke. Stockstroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for grid stroke settings. Stockstroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for grid stroke settings. Stockstroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for grid stroke settings. Stockstroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for grid stroke settings. Stockstroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for grid stroke settings. Stockstroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for grid stroke settings. Stockstroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for grid stroke settings. Stockstroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for grid stroke settings. Stockstroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for grid stroke settings. Stockstroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for grid stroke settings. Stockstroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for grid stroke settings. Stockstroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for grid stroke 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. StockzIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. Stockcontainer(Layer element)Setter for the container. Stockcontainer(Stage element)Setter for the container. Stockcontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. StockparentBounds(Rect bounds)Setter for the parent bounds using single value. StockparentBounds(String bounds)Setter for the parent bounds using single value. StockparentBounds(Number bounds)Setter for the parent bounds using single value. StockparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. Stockfill(String value)Stockstroke(String value)-
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
-
Stock
Stock(String jsChart)
-
-
Method Detail
-
instantiate
static Stock instantiate()
-
axis
StockDateTime axis()
Getter for the grid axis.
-
axis
Stock axis(StockDateTime axis)
Getter for the grid axis.
-
drawFirstLine
void drawFirstLine()
Getter for the first line drawing flag.
-
drawFirstLine
Stock drawFirstLine(Boolean enabled)
Setter for the first line drawing flag. Whether to draw the first line.
-
drawLastLine
void drawLastLine()
Getter for the last line drawing flag.
-
drawLastLine
Stock drawLastLine(Boolean enabled)
Setter for the last line drawing flag. Whether to draw the last line.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
fill
void fill()
Getter for grid fill settings.
-
fill
Stock fill(Fill color)
Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock fill(GradientKey color)
Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock fill(Array<String> color)
Setter for fill settings using an array, an object or a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock fill(String color, Number opacity)
Fill color with opacity. Fill as a string or an object.
-
fill
Stock fill(GradientKey keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock fill(GradientKey keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock fill(GradientKey keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock fill(Array<String> keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock fill(Array<String> keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock fill(Array<String> keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
Stock 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
Stock 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}
-
isHorizontal
void isHorizontal()
Whether an grid has horizontal layout. Layout is define by layout method.
-
isMinor
void isMinor()
Getter for the minor grid state flag.
-
isMinor
Stock isMinor(Boolean enabled)
Setter for the minor grid state flag. Whether it is a minor grid or not.
-
palette
RangeColors palette()
Getter for the colors palette.
-
palette
Map palette(RangeColors settings)
Setter for the grid colors palette.
-
palette
Map palette(DistinctColors settings)
Setter for the grid colors palette.
-
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.
-
scale
Stock scale(StockScatterDateTime settings)
Setter for the grid scale.
-
stroke
void stroke()
Getter for the grid stroke.
-
stroke
Stock stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
Stock stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for grid stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
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.
-
parentBounds
Rect parentBounds()
Getter for the parent bounds. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
Stock 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
Stock 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
Stock 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
Stock 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.
-
-
-
-