BaseAxis

abstract class BaseAxis<P : Axis.Position>(line: LineComponent?, label: TextComponent?, labelRotationDegrees: Float, valueFormatter: CartesianValueFormatter, tick: LineComponent?, tickLengthDp: Float, guideline: LineComponent?, sizeConstraint: BaseAxis.SizeConstraint, 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?, sizeConstraint: BaseAxis.SizeConstraint, titleComponent: TextComponent?, title: CharSequence?)

Types

Link copied to clipboard
sealed class SizeConstraint

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 override fun setRestrictedBounds(vararg bounds: RectF?)

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