-
public class MarkersFactory extends VisualBase
Multiple markers class. Multiple markers are the set of markers with a common settings, such as type (predefined or custom), size, fill and position:
- anchor
- position
- offsetX and offsetY
-
-
Constructor Summary
Constructors Constructor Description MarkersFactory(String jsChart)
-
Method Summary
Modifier and Type Method Description static MarkersFactoryinstantiate()StringgetJsBase()voidanchor()Getter for anchor settings of all markers. MarkersFactoryanchor(Anchor anchor)Setter for anchor settings of all markers. MarkersFactoryanchor(String anchor)Setter for anchor settings of all markers. MarkersFactorydisablePointerEvents(Boolean value)voidenabled()Getter for the element state. MarkersFactoryenabled(Boolean enabled)Setter for the element enabled state. voidfill()Getter for fill settings of all markers. MarkersFactoryfill(Fill color)Setter for fill settings of all markers using an array, an object and a string. MarkersFactoryfill(GradientKey color)Setter for fill settings of all markers using an array, an object and a string. MarkersFactoryfill(Array<String> color)Setter for fill settings of all markers using an array, an object and a string. MarkersFactoryfill(String color, Number opacity)Fill color with opacity. MarkersFactoryfill(GradientKey keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. MarkersFactoryfill(GradientKey keys, Number angle, Rect mode, Number opacity)Linear gradient fill. MarkersFactoryfill(GradientKey keys, Number angle, String mode, Number opacity)Linear gradient fill. MarkersFactoryfill(Array<String> keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. MarkersFactoryfill(Array<String> keys, Number angle, Rect mode, Number opacity)Linear gradient fill. MarkersFactoryfill(Array<String> keys, Number angle, String mode, Number opacity)Linear gradient fill. MarkersFactoryfill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. MarkersFactoryfill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. voidoffsetX()Getter for the offset by X of all markers. MarkersFactoryoffsetX(Number offset)Setter for the offset by X of all markers. MarkersFactoryoffsetX(String offset)Setter for the offset by X of all markers. voidoffsetY()Getter for the offset by Y of all markers. MarkersFactoryoffsetY(Number offset)Setter for the offset by Y of all markers. MarkersFactoryoffsetY(String offset)Setter for the offset by Y of all markers. voidposition()Getter for position settings of all markers. MarkersFactoryposition(String position)Setter for position settings of all markers. voidpositionFormatter()Getter for the position formatter function of all markers. 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. voidrotation()Getter for the rotation angle around an anchor. MarkersFactoryrotation(Number rotation)Setter for the rotation angle around an anchor. voidsize()Getter for the size of all markers. MarkersFactorysize(Number size)Setter for the size of all markers. voidstroke()Getter for stroke settings of all markers. MarkersFactorystroke(Stroke color)Setter for stroke settings of all markers. MarkersFactorystroke(String color)Setter for stroke settings of all markers. MarkersFactorystroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for stroke settings of all markers. MarkersFactorystroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for stroke settings of all markers. voidtype()Getter for type settings of all markers. MarkersFactorytype(MarkerType type)Setter for type settings of all markers. MarkersFactorytype(String type)Setter for type settings of all markers. 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. MarkersFactoryzIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. MarkersFactorycontainer(Layer element)Setter for the container. MarkersFactorycontainer(Stage element)Setter for the container. MarkersFactorycontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. MarkersFactoryparentBounds(Rect bounds)Setter for the parent bounds using single value. MarkersFactoryparentBounds(String bounds)Setter for the parent bounds using single value. MarkersFactoryparentBounds(Number bounds)Setter for the parent bounds using single value. MarkersFactoryparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. MarkersFactoryfill(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
-
MarkersFactory
MarkersFactory(String jsChart)
-
-
Method Detail
-
instantiate
static MarkersFactory instantiate()
-
anchor
void anchor()
Getter for anchor settings of all markers.
-
anchor
MarkersFactory anchor(Anchor anchor)
Setter for anchor settings of all markers.
-
anchor
MarkersFactory anchor(String anchor)
Setter for anchor settings of all markers.
-
disablePointerEvents
MarkersFactory disablePointerEvents(Boolean value)
-
enabled
void enabled()
Getter for the element state.
-
enabled
MarkersFactory enabled(Boolean enabled)
Setter for the element enabled state.
-
fill
void fill()
Getter for fill settings of all markers.
-
fill
MarkersFactory fill(Fill color)
Setter for fill settings of all markers using an array, an object and a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory fill(GradientKey color)
Setter for fill settings of all markers using an array, an object and a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory fill(Array<String> color)
Setter for fill settings of all markers using an array, an object and a string. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory fill(String color, Number opacity)
Fill color with opacity. Fill as a string or an object.
-
fill
MarkersFactory fill(GradientKey keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory fill(GradientKey keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory fill(GradientKey keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory fill(Array<String> keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory fill(Array<String> keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory fill(Array<String> keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
MarkersFactory 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
MarkersFactory 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}
-
offsetX
void offsetX()
Getter for the offset by X of all markers.
-
offsetX
MarkersFactory offsetX(Number offset)
Setter for the offset by X of all markers.
-
offsetX
MarkersFactory offsetX(String offset)
Setter for the offset by X of all markers.
-
offsetY
void offsetY()
Getter for the offset by Y of all markers.
-
offsetY
MarkersFactory offsetY(Number offset)
Setter for the offset by Y of all markers.
-
offsetY
MarkersFactory offsetY(String offset)
Setter for the offset by Y of all markers.
-
position
void position()
Getter for position settings of all markers.
-
position
MarkersFactory position(String position)
Setter for position settings of all markers.
-
positionFormatter
void positionFormatter()
Getter for the position formatter function of all markers.
-
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.
-
rotation
void rotation()
Getter for the rotation angle around an anchor.
-
rotation
MarkersFactory rotation(Number rotation)
Setter for the rotation angle around an anchor. (anychart.graphics.vector.Element).
-
size
void size()
Getter for the size of all markers.
-
size
MarkersFactory size(Number size)
Setter for the size of all markers.
-
stroke
void stroke()
Getter for stroke settings of all markers.
-
stroke
MarkersFactory stroke(Stroke color)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(String color)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
MarkersFactory stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for stroke settings of all markers. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
type
void type()
Getter for type settings of all markers.
-
type
MarkersFactory type(MarkerType type)
Setter for type settings of all markers.
-
type
MarkersFactory type(String type)
Setter for type settings of all markers.
-
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
MarkersFactory zIndex(Number zIndex)
Setter for the Z-index of the element.
-
container
MarkersFactory container(Layer element)
Setter for the container.
-
container
MarkersFactory container(Stage element)
Setter for the container.
-
container
MarkersFactory 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
MarkersFactory 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
MarkersFactory 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
MarkersFactory 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
MarkersFactory 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
MarkersFactory fill(String value)
-
-
-
-