Axis

A basic implementation of AxisRenderer used throughout the library.

See also

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
open class Builder<Position : AxisPosition>(builder: Axis.Builder<Position>? = null)

Used to construct Axis instances.

Link copied to clipboard
sealed class SizeConstraint

Defines how an Axis is to size itself.

Properties

Link copied to clipboard

The LineComponent to use for the axis line.

Link copied to clipboard
open override val bounds: RectF

The bounds of the abstract component.

Link copied to clipboard

The LineComponent to use for guidelines.

Link copied to clipboard

The TextComponent to use for labels.

Link copied to clipboard

The rotation of axis labels (in degrees).

Link copied to clipboard

Used by Axis subclasses for sizing and layout.

Link copied to clipboard

The LineComponent to use for ticks.

Link copied to clipboard

The tick length (in dp).

Link copied to clipboard

The axis title.

Link copied to clipboard

An optional TextComponent to use as the axis title.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun setRestrictedBounds(vararg bounds: RectF?)

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