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: CharSequence?) : 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: CharSequence?)

Types

Link copied to clipboard
sealed class Size

Determines how a BaseAxis sizes itself.

Properties

Link copied to clipboard
open override val bounds: RectF

The bounds of the abstract component.

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.