-
public class ScaleBar extends VisualBase
Base class for scale bar.
-
-
Method Summary
Modifier and Type Method Description static ScaleBarinstantiate()StringgetJsBase()LinearColorcolorScale()Getter for the color scale. ScaleBarcolorScale(LinearColor settings)Setter for the color scale. ScaleBarcolorScale(OrdinalColor settings)Setter for the color scale. ScaleBarcolorScale(String settings)Setter for the color scale. ScaleBarcolorScale(ScaleTypes settings)Setter for the color scale. voidfill()Getter for the scale bar fill color. ScaleBarfill(Fill color)Setter for fill settings using an array, an object or a string. ScaleBarfill(GradientKey color)Setter for fill settings using an array, an object or a string. ScaleBarfill(Array<String> color)Setter for fill settings using an array, an object or a string. ScaleBarfill(String color, Number opacity)Fill color with opacity. ScaleBarfill(GradientKey keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. ScaleBarfill(GradientKey keys, Number angle, Rect mode, Number opacity)Linear gradient fill. ScaleBarfill(GradientKey keys, Number angle, String mode, Number opacity)Linear gradient fill. ScaleBarfill(Array<String> keys, Number angle, Boolean mode, Number opacity)Linear gradient fill. ScaleBarfill(Array<String> keys, Number angle, Rect mode, Number opacity)Linear gradient fill. ScaleBarfill(Array<String> keys, Number angle, String mode, Number opacity)Linear gradient fill. ScaleBarfill(GradientKey keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. ScaleBarfill(Array<String> keys, Number cx, Number cy, Rect mode, Number opacity, Number fx, Number fy)Radial gradient fill. voidfrom()Getter for the starting range value. ScaleBarfrom(String fromValue)Setter for the starting range value. ScaleBarfrom(Number fromValue)Setter for the starting range value. voidoffset()Getter for scale bar offset. ScaleBaroffset(String offset)Setter for scale bar offset. voidpoints()Getter for points. ScaleBarpoints(Array<ControlPoint> pointsList)Setter for points. Basescale()Getter for the scale bar scale. Basescale(Base scale)Setter for the scale bar scale. voidstroke()Getter for stroke settings. ScaleBarstroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for stroke settings. ScaleBarstroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for stroke settings. ScaleBarstroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for stroke settings. ScaleBarstroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for stroke settings. ScaleBarstroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for stroke settings. ScaleBarstroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for stroke settings. ScaleBarstroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for stroke settings. ScaleBarstroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for stroke settings. ScaleBarstroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for stroke settings. ScaleBarstroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for stroke settings. ScaleBarstroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for stroke settings. ScaleBarstroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for stroke settings. ScaleBarstroke(String settings)Setter for the grid stroke using an object. voidto()Getter for the ending range value. ScaleBarto(String toValue)Setter for the ending range value. ScaleBarto(Number toValue)Setter for the ending range value. voidwidth()Getter for the scale bar width. ScaleBarwidth(String width)Setter for the scale bar width. Layercontainer()Getter for the container. ScaleBarcontainer(Layer element)Setter for the container. ScaleBarcontainer(Stage element)Setter for the container. ScaleBarcontainer(String element)Setter for the container. voidenabled()Getter for the element state (enabled or disabled). ScaleBarenabled(Boolean enabled)Setter for the element enabled state. RectparentBounds()Getter for the parent bounds. ScaleBarparentBounds(Rect bounds)Setter for the parent bounds using single value. ScaleBarparentBounds(String bounds)Setter for the parent bounds using single value. ScaleBarparentBounds(Number bounds)Setter for the parent bounds using single value. ScaleBarparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. 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. 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. ScaleBarzIndex(Number zIndex)Setter for the Z-index of the element. ScaleBarfill(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
-
ScaleBar
ScaleBar(String jsChart)
-
-
Method Detail
-
instantiate
static ScaleBar instantiate()
-
colorScale
LinearColor colorScale()
Getter for the color scale.
-
colorScale
ScaleBar colorScale(LinearColor settings)
Setter for the color scale.
-
colorScale
ScaleBar colorScale(OrdinalColor settings)
Setter for the color scale.
-
colorScale
ScaleBar colorScale(String settings)
Setter for the color scale.
-
colorScale
ScaleBar colorScale(ScaleTypes settings)
Setter for the color scale.
-
fill
void fill()
Getter for the scale bar fill color.
-
fill
ScaleBar 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
ScaleBar 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
ScaleBar 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
ScaleBar fill(GradientKey keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ScaleBar fill(GradientKey keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ScaleBar fill(GradientKey keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ScaleBar fill(Array<String> keys, Number angle, Boolean mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ScaleBar fill(Array<String> keys, Number angle, Rect mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ScaleBar fill(Array<String> keys, Number angle, String mode, Number opacity)
Linear gradient fill. {docs:Graphics/Fill_Settings}Learn more about coloring.{docs}
-
fill
ScaleBar 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
ScaleBar 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}
-
from
void from()
Getter for the starting range value.
-
offset
void offset()
Getter for scale bar offset.
-
points
void points()
Getter for points.
-
points
ScaleBar points(Array<ControlPoint> pointsList)
Setter for points.
-
stroke
void stroke()
Getter for stroke settings.
-
stroke
ScaleBar stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(Stroke color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(Stroke color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(ColoredFill color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(ColoredFill color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(String color, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(String color, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
ScaleBar stroke(String color, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
to
void to()
Getter for the ending range value.
-
width
void width()
Getter for the scale bar width.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
parentBounds
Rect parentBounds()
Getter for the parent bounds. Bounds that would be used in case of percent size calculations. Expects pixel values only.
-
parentBounds
ScaleBar 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
ScaleBar 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
ScaleBar 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
ScaleBar 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.
-
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.
-
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.
-
-
-
-