BaseAxis

abstract class BaseAxis<P : Axis.Position>(line: LineComponent?, label: TextComponent?, labelRotationDegrees: Float, valueFormatter: CartesianValueFormatter, tick: LineComponent?, tickLengthDp: Float, guideline: LineComponent?, size: BaseAxis.Size, titleComponent: TextComponent?, title: (ExtraStore) -> CharSequence?, val tickPosition: BaseAxis.TickPosition, val lineDrawingOrder: BaseAxis.LineDrawingOrder) : Axis<P>

A base Axis implementation. This is extended by HorizontalAxis and VerticalAxis.

Inheritors

Constructors

Link copied to clipboard
constructor(line: LineComponent?, label: TextComponent?, labelRotationDegrees: Float, valueFormatter: CartesianValueFormatter, tick: LineComponent?, tickLengthDp: Float, guideline: LineComponent?, size: BaseAxis.Size, titleComponent: TextComponent?, title: (ExtraStore) -> CharSequence?, tickPosition: BaseAxis.TickPosition, lineDrawingOrder: BaseAxis.LineDrawingOrder)

Types

Link copied to clipboard

Defines whether ticks and the axis line are drawn under or over the CartesianLayers.

Link copied to clipboard
sealed class Size

Determines how a BaseAxis sizes itself.

Link copied to clipboard

Defines the position of each tick relative to the axis line.

Properties

Link copied to clipboard
open override val bounds: RectF

The bounds of the abstract component.

Link copied to clipboard

whether to draw ticks and the axis line under or over the CartesianLayers.

Link copied to clipboard

defines the position of each tick relative to the axis line.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun setRestrictedBounds(vararg bounds: RectF?)

The bounds (RectF) passed here define the area where the Axis shouldn’t draw anything.