-
public class LinearGauge extends Linear
Linear Gauge axis class. Any axis must be bound to a scale. To obtain a new instance of Axis use linear.
-
-
Constructor Summary
Constructors Constructor Description LinearGauge(String jsChart)
-
Method Summary
Modifier and Type Method Description static LinearGaugeinstantiate()StringgetJsBase()voiddrawFirstLabel()Getter for the first label drawing flag. LinearGaugedrawFirstLabel(Boolean enabled)Setter for the first label drawing flag. voiddrawLastLabel()Getter for the last label drawing flag. LinearGaugedrawLastLabel(Boolean enabled)Setter for the last label drawing flag. voidenabled()Getter for the element state (enabled or disabled). LinearGaugeenabled(Boolean enabled)Setter for the element enabled state. RectgetRemainingBounds()Returns remaining parent bounds to use elsewhere. voidisHorizontal()Whether an axis is horizontal. LabelsFactorylabels()Getter for axis labels. LinearGaugelabels(String settings)Setter for axis labels. LinearGaugelabels(Boolean settings)Setter for axis labels. LabelsFactoryminorLabels()Getter for axis minor labels. LinearGaugeminorLabels(String settings)Setter for axis minor labels. LinearGaugeminorLabels(Boolean settings)Setter for axis minor labels. TicksminorTicks()Getter for minor axis ticks. LinearGaugeminorTicks(String settings)Setter for minor axis ticks. LinearGaugeminorTicks(Boolean settings)Setter for minor axis ticks. voidoffset()Getter for the axis offset. LinearGaugeoffset(String offset)Setter for the axis offset. voidorientation()Getter for the axis orientation. LinearGaugeorientation(Orientation orientation)Setter for the axis orientation. LinearGaugeorientation(String orientation)Setter for the axis orientation. voidoverlapMode()Getter for labels overlap mode. LinearGaugeoverlapMode(LabelsOverlapMode mode)Setter for labels overlap mode. LinearGaugeoverlapMode(String mode)Setter for labels overlap mode. 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 axis scale. LinearGaugescale(Base settings)Setter for the axis scale. LinearGaugescale(String settings)Setter for the axis scale. LinearGaugescale(ScaleTypes settings)Setter for the axis scale. voidstaggerLines()Getter for stagger lines. LinearGaugestaggerLines(Number count)Setter for stagger lines. voidstaggerMaxLines()Getter for maximum stagger lines. LinearGaugestaggerMaxLines(Number count)Setter for maximum stagger lines in autocalculation mode (if staggerLines passed null). voidstaggerMode()Getter for the stagger mode state. LinearGaugestaggerMode(Boolean enabled)Setter for the stagger mode state. voidstroke()Getter for axis stroke settings. LinearGaugestroke(Stroke value, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for axis stroke settings. LinearGaugestroke(Stroke value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. LinearGaugestroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for axis stroke settings. LinearGaugestroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. LinearGaugestroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for axis stroke settings. LinearGaugestroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. LinearGaugestroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for axis stroke settings. LinearGaugestroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. LinearGaugestroke(String value, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for axis stroke settings. LinearGaugestroke(String value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. LinearGaugestroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for axis stroke settings. LinearGaugestroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. LinearGaugestroke(String settings)Setter for axis stroke settings using an object. Ticksticks()Getter for axis ticks. LinearGaugeticks(String settings)Setter for axis ticks. LinearGaugeticks(Boolean settings)Setter for axis ticks. Titletitle()Getter for the axis title. LinearGaugetitle(Boolean settings)Setter for the axis title. LinearGaugetitle(String settings)Setter for the axis title. 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(). voidwidth()Getter for the axis width. LinearGaugewidth(Number width)Setter for the axis width. LinearGaugewidth(String width)Setter for the axis width. voidzIndex()Getter for the Z-index of the element. LinearGaugezIndex(Number zIndex)Setter for the Z-index of the element. RectgetPixelBounds()Returns pixel bounds of the axis. Layercontainer()Getter for the container. LinearGaugecontainer(Layer element)Setter for the container. LinearGaugecontainer(Stage element)Setter for the container. LinearGaugecontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. LinearGaugeparentBounds(Rect bounds)Setter for the parent bounds using single value. LinearGaugeparentBounds(String bounds)Setter for the parent bounds using single value. LinearGaugeparentBounds(Number bounds)Setter for the parent bounds using single value. LinearGaugeparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. -
Methods inherited from class com.anychart.core.axes.Linear
container, container, container, drawFirstLabel, drawLastLabel, enabled, instantiate, labels, labels, minorLabels, minorLabels, minorTicks, minorTicks, orientation, orientation, overlapMode, overlapMode, parentBounds, parentBounds, parentBounds, parentBounds, scale, scale, scale, staggerLines, staggerMaxLines, staggerMode, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, stroke, ticks, ticks, title, title, width, width, 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
-
LinearGauge
LinearGauge(String jsChart)
-
-
Method Detail
-
instantiate
static LinearGauge instantiate()
-
drawFirstLabel
void drawFirstLabel()
Getter for the first label drawing flag.
-
drawFirstLabel
LinearGauge drawFirstLabel(Boolean enabled)
Setter for the first label drawing flag.
-
drawLastLabel
void drawLastLabel()
Getter for the last label drawing flag.
-
drawLastLabel
LinearGauge drawLastLabel(Boolean enabled)
Setter for the last label drawing flag.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
enabled
LinearGauge enabled(Boolean enabled)
Setter for the element enabled state.
-
getRemainingBounds
Rect getRemainingBounds()
Returns remaining parent bounds to use elsewhere.
-
isHorizontal
void isHorizontal()
Whether an axis is horizontal.
-
labels
LabelsFactory labels()
Getter for axis labels.
-
labels
LinearGauge labels(String settings)
Setter for axis labels.
-
labels
LinearGauge labels(Boolean settings)
Setter for axis labels.
-
minorLabels
LabelsFactory minorLabels()
Getter for axis minor labels.
-
minorLabels
LinearGauge minorLabels(String settings)
Setter for axis minor labels.
-
minorLabels
LinearGauge minorLabels(Boolean settings)
Setter for axis minor labels.
-
minorTicks
Ticks minorTicks()
Getter for minor axis ticks.
-
minorTicks
LinearGauge minorTicks(String settings)
Setter for minor axis ticks.
-
minorTicks
LinearGauge minorTicks(Boolean settings)
Setter for minor axis ticks.
-
offset
void offset()
Getter for the axis offset.
-
offset
LinearGauge offset(String offset)
Setter for the axis offset.
-
orientation
void orientation()
Getter for the axis orientation.
-
orientation
LinearGauge orientation(Orientation orientation)
Setter for the axis orientation.
-
orientation
LinearGauge orientation(String orientation)
Setter for the axis orientation.
-
overlapMode
void overlapMode()
Getter for labels overlap mode.
-
overlapMode
LinearGauge overlapMode(LabelsOverlapMode mode)
Setter for labels overlap mode.
-
overlapMode
LinearGauge overlapMode(String mode)
Setter for labels overlap mode.
-
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
LinearGauge scale(Base settings)
Setter for the axis scale.
-
scale
LinearGauge scale(String settings)
Setter for the axis scale.
-
scale
LinearGauge scale(ScaleTypes settings)
Setter for the axis scale.
-
staggerLines
void staggerLines()
Getter for stagger lines.
-
staggerLines
LinearGauge staggerLines(Number count)
Setter for stagger lines.Note: pass null to enable autocalculation.
-
staggerMaxLines
void staggerMaxLines()
Getter for maximum stagger lines.
-
staggerMaxLines
LinearGauge staggerMaxLines(Number count)
Setter for maximum stagger lines in autocalculation mode (if staggerLines passed null).
-
staggerMode
void staggerMode()
Getter for the stagger mode state.
-
staggerMode
LinearGauge staggerMode(Boolean enabled)
Setter for the stagger mode state.
-
stroke
void stroke()
Getter for axis stroke settings.
-
stroke
LinearGauge stroke(Stroke value, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(Stroke value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(String value, Number thickness, String dashpattern, String lineJoin, String lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(String value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)
Setter for axis stroke settings. {docs:Graphics/Stroke_Settings}Learn more about stroke settings.{docs}
-
stroke
LinearGauge stroke(String settings)
Setter for axis stroke settings using an object.
-
ticks
LinearGauge ticks(String settings)
Setter for axis ticks.
-
ticks
LinearGauge ticks(Boolean settings)
Setter for axis ticks.
-
title
LinearGauge title(Boolean settings)
Setter for the axis title.
-
title
LinearGauge title(String settings)
Setter for the axis title.
-
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().
-
width
void width()
Getter for the axis width.
-
width
LinearGauge width(Number width)
Setter for the axis width.
-
width
LinearGauge width(String width)
Setter for the axis width.
-
zIndex
void zIndex()
Getter for the Z-index of the element.
-
zIndex
LinearGauge zIndex(Number zIndex)
Setter for the Z-index of the element.
-
getPixelBounds
Rect getPixelBounds()
Returns pixel bounds of the axis.
-
container
LinearGauge container(Layer element)
Setter for the container.
-
container
LinearGauge container(Stage element)
Setter for the container.
-
container
LinearGauge 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
LinearGauge 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
LinearGauge 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
LinearGauge 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
LinearGauge 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.
-
-
-
-