-
public class Linear extends VisualBase
Linear axis class. Any axis must be bound to a scale. To obtain a new instance of Axis use linear.
-
-
Method Summary
Modifier and Type Method Description static Linearinstantiate()StringgetJsBase()voiddrawFirstLabel()Getter for the first label drawing flag. LineardrawFirstLabel(Boolean enabled)Setter for the first label drawing flag. voiddrawLastLabel()Getter for the last label drawing flag. LineardrawLastLabel(Boolean enabled)Setter for the last label drawing flag. voidenabled()Getter for the element state (enabled or disabled). Linearenabled(Boolean enabled)Setter for the element enabled state. RectgetPixelBounds()Returns pixel bounds of the axis. RectgetRemainingBounds()Returns remaining parent bounds to use elsewhere. voidisHorizontal()Whether an axis is horizontal. LabelsFactorylabels()Getter for axis labels. Linearlabels(String settings)Setter for axis labels. Linearlabels(Boolean settings)Setter for axis labels. LabelsFactoryminorLabels()Getter for axis minor labels. LinearminorLabels(String settings)Setter for axis minor labels. LinearminorLabels(Boolean settings)Setter for axis minor labels. TicksminorTicks()Getter for minor axis ticks. LinearminorTicks(String settings)Setter for minor axis ticks. LinearminorTicks(Boolean settings)Setter for minor axis ticks. voidorientation()Getter for the axis orientation. Linearorientation(Orientation orientation)Setter for the axis orientation. Linearorientation(String orientation)Setter for the axis orientation. voidoverlapMode()Getter for labels overlap mode. LinearoverlapMode(LabelsOverlapMode mode)Setter for labels overlap mode. LinearoverlapMode(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. Linearscale(Base settings)Setter for the axis scale. Linearscale(String settings)Setter for the axis scale. Linearscale(ScaleTypes settings)Setter for the axis scale. voidstaggerLines()Getter for stagger lines. LinearstaggerLines(Number count)Setter for stagger lines. voidstaggerMaxLines()Getter for maximum stagger lines. LinearstaggerMaxLines(Number count)Setter for maximum stagger lines in autocalculation mode (if staggerLines passed null). voidstaggerMode()Getter for the stagger mode state. LinearstaggerMode(Boolean enabled)Setter for the stagger mode state. voidstroke()Getter for axis stroke settings. Linearstroke(Stroke value, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for axis stroke settings. Linearstroke(Stroke value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. Linearstroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for axis stroke settings. Linearstroke(Stroke value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. Linearstroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for axis stroke settings. Linearstroke(ColoredFill value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. Linearstroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for axis stroke settings. Linearstroke(ColoredFill value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. Linearstroke(String value, Number thickness, String dashpattern, String lineJoin, String lineCap)Setter for axis stroke settings. Linearstroke(String value, Number thickness, String dashpattern, String lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. Linearstroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, String lineCap)Setter for axis stroke settings. Linearstroke(String value, Number thickness, String dashpattern, StrokeLineJoin lineJoin, StrokeLineCap lineCap)Setter for axis stroke settings. Linearstroke(String settings)Setter for axis stroke settings using an object. Ticksticks()Getter for axis ticks. Linearticks(String settings)Setter for axis ticks. Linearticks(Boolean settings)Setter for axis ticks. Titletitle()Getter for the axis title. Lineartitle(Boolean settings)Setter for the axis title. Lineartitle(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. Linearwidth(Number width)Setter for the axis width. Linearwidth(String width)Setter for the axis width. voidzIndex()Getter for the Z-index of the element. LinearzIndex(Number zIndex)Setter for the Z-index of the element. Layercontainer()Getter for the container. Linearcontainer(Layer element)Setter for the container. Linearcontainer(Stage element)Setter for the container. Linearcontainer(String element)Setter for the container. RectparentBounds()Getter for the parent bounds. LinearparentBounds(Rect bounds)Setter for the parent bounds using single value. LinearparentBounds(String bounds)Setter for the parent bounds using single value. LinearparentBounds(Number bounds)Setter for the parent bounds using single value. LinearparentBounds(Number left, Number top, Number width, Number height)Setter for the parent bounds using several values. -
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
-
Linear
Linear(String jsChart)
-
-
Method Detail
-
instantiate
static Linear instantiate()
-
drawFirstLabel
void drawFirstLabel()
Getter for the first label drawing flag.
-
drawFirstLabel
Linear drawFirstLabel(Boolean enabled)
Setter for the first label drawing flag.
-
drawLastLabel
void drawLastLabel()
Getter for the last label drawing flag.
-
drawLastLabel
Linear drawLastLabel(Boolean enabled)
Setter for the last label drawing flag.
-
enabled
void enabled()
Getter for the element state (enabled or disabled).
-
getPixelBounds
Rect getPixelBounds()
Returns pixel bounds of the axis.
-
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.
-
minorLabels
LabelsFactory minorLabels()
Getter for axis minor labels.
-
minorLabels
Linear minorLabels(String settings)
Setter for axis minor labels.
-
minorLabels
Linear minorLabels(Boolean settings)
Setter for axis minor labels.
-
minorTicks
Ticks minorTicks()
Getter for minor axis ticks.
-
minorTicks
Linear minorTicks(String settings)
Setter for minor axis ticks.
-
minorTicks
Linear minorTicks(Boolean settings)
Setter for minor axis ticks.
-
orientation
void orientation()
Getter for the axis orientation.
-
orientation
Linear orientation(Orientation orientation)
Setter for the axis orientation.
-
orientation
Linear orientation(String orientation)
Setter for the axis orientation.
-
overlapMode
void overlapMode()
Getter for labels overlap mode.
-
overlapMode
Linear overlapMode(LabelsOverlapMode mode)
Setter for labels overlap mode.
-
overlapMode
Linear 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
Linear scale(ScaleTypes settings)
Setter for the axis scale.
-
staggerLines
void staggerLines()
Getter for stagger lines.
-
staggerLines
Linear staggerLines(Number count)
Setter for stagger lines.Note: pass null to enable autocalculation.
-
staggerMaxLines
void staggerMaxLines()
Getter for maximum stagger lines.
-
staggerMaxLines
Linear 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
Linear staggerMode(Boolean enabled)
Setter for the stagger mode state.
-
stroke
void stroke()
Getter for axis stroke settings.
-
stroke
Linear 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
Linear 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
Linear 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
Linear 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
Linear 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
Linear 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
Linear 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
Linear 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
Linear 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
Linear 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
Linear 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
Linear 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}
-
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.
-
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
Linear 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
Linear 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
Linear 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.
-
-
-
-