-
public final class VerticalAxisKt
-
-
Method Summary
Modifier and Type Method Description final static VerticalAxis<AxisPosition.Vertical.Start>rememberStartAxis(TextComponent label, LineComponent axis, LineComponent tick, Dp tickLength, LineComponent guideline, AxisValueFormatter<AxisPosition.Vertical.Start> valueFormatter, Axis.SizeConstraint sizeConstraint, VerticalAxis.HorizontalLabelPosition horizontalLabelPosition, VerticalAxis.VerticalLabelPosition verticalLabelPosition, AxisItemPlacer.Vertical itemPlacer, Float labelRotationDegrees, TextComponent titleComponent, CharSequence title)Creates and remembers a start axis (i.e. final static VerticalAxis<AxisPosition.Vertical.End>rememberEndAxis(TextComponent label, LineComponent axis, LineComponent tick, Dp tickLength, LineComponent guideline, AxisValueFormatter<AxisPosition.Vertical.End> valueFormatter, Axis.SizeConstraint sizeConstraint, VerticalAxis.HorizontalLabelPosition horizontalLabelPosition, VerticalAxis.VerticalLabelPosition verticalLabelPosition, AxisItemPlacer.Vertical itemPlacer, Float labelRotationDegrees, TextComponent titleComponent, CharSequence title)Creates and remembers an end axis (i.e. final static VerticalAxis<AxisPosition.Vertical.Start>startAxis(TextComponent label, LineComponent axis, LineComponent tick, Dp tickLength, LineComponent guideline, AxisValueFormatter<AxisPosition.Vertical.Start> valueFormatter, Axis.SizeConstraint sizeConstraint, VerticalAxis.HorizontalLabelPosition horizontalLabelPosition, VerticalAxis.VerticalLabelPosition verticalLabelPosition, Integer maxLabelCount, Float labelRotationDegrees, TextComponent titleComponent, CharSequence title)Creates and remembers a start axis (i.e. final static VerticalAxis<AxisPosition.Vertical.End>endAxis(TextComponent label, LineComponent axis, LineComponent tick, Dp tickLength, LineComponent guideline, AxisValueFormatter<AxisPosition.Vertical.End> valueFormatter, Axis.SizeConstraint sizeConstraint, VerticalAxis.HorizontalLabelPosition horizontalLabelPosition, VerticalAxis.VerticalLabelPosition verticalLabelPosition, Integer maxLabelCount, Float labelRotationDegrees, TextComponent titleComponent, CharSequence title)Creates and remembers an end axis (i.e. -
-
Method Detail
-
rememberStartAxis
@Composable() final static VerticalAxis<AxisPosition.Vertical.Start> rememberStartAxis(TextComponent label, LineComponent axis, LineComponent tick, Dp tickLength, LineComponent guideline, AxisValueFormatter<AxisPosition.Vertical.Start> valueFormatter, Axis.SizeConstraint sizeConstraint, VerticalAxis.HorizontalLabelPosition horizontalLabelPosition, VerticalAxis.VerticalLabelPosition verticalLabelPosition, AxisItemPlacer.Vertical itemPlacer, Float labelRotationDegrees, TextComponent titleComponent, CharSequence title)
Creates and remembers a start axis (i.e., a VerticalAxis with AxisPosition.Vertical.Start).
- Parameters:
label- the TextComponent to use for the labels.axis- the LineComponent to use for the axis line.tick- the LineComponent to use for the ticks.tickLength- the length of the ticks.guideline- the LineComponent to use for the guidelines.valueFormatter- formats the labels.sizeConstraint- defines how the VerticalAxis is to size itself.horizontalLabelPosition- the horizontal position of the labels.verticalLabelPosition- the vertical position of the labels.itemPlacer- determines for what y values the VerticalAxis is to display labels, ticks, and guidelines.labelRotationDegrees- the rotation of the axis labels (in degrees).titleComponent- an optional TextComponent to use as the axis title.title- the axis title.
-
rememberEndAxis
@Composable() final static VerticalAxis<AxisPosition.Vertical.End> rememberEndAxis(TextComponent label, LineComponent axis, LineComponent tick, Dp tickLength, LineComponent guideline, AxisValueFormatter<AxisPosition.Vertical.End> valueFormatter, Axis.SizeConstraint sizeConstraint, VerticalAxis.HorizontalLabelPosition horizontalLabelPosition, VerticalAxis.VerticalLabelPosition verticalLabelPosition, AxisItemPlacer.Vertical itemPlacer, Float labelRotationDegrees, TextComponent titleComponent, CharSequence title)
Creates and remembers an end axis (i.e., a VerticalAxis with AxisPosition.Vertical.End).
- Parameters:
label- the TextComponent to use for the labels.axis- the LineComponent to use for the axis line.tick- the LineComponent to use for the ticks.tickLength- the length of the ticks.guideline- the LineComponent to use for the guidelines.valueFormatter- formats the labels.sizeConstraint- defines how the VerticalAxis is to size itself.horizontalLabelPosition- the horizontal position of the labels.verticalLabelPosition- the vertical position of the labels.itemPlacer- determines for what y values the VerticalAxis is to display labels, ticks, and guidelines.labelRotationDegrees- the rotation of the axis labels (in degrees).titleComponent- an optional TextComponent to use as the axis title.title- the axis title.
-
startAxis
@Composable()@Deprecated(message = `startAxis` is being replaced by `rememberStartAxis`. Also, `maxLabelCount` is being replaced by `AxisItemPlacer.Vertical`. If using `maxLabelCount`, create a base `AxisItemPlacer.Vertical` implementation with the desired maximum item count via `AxisItemPlacer.Vertical.default`, and use the `itemPlacer` parameter of `rememberStartAxis` to apply it to the `VerticalAxis` being created. ) final static VerticalAxis<AxisPosition.Vertical.Start> startAxis(TextComponent label, LineComponent axis, LineComponent tick, Dp tickLength, LineComponent guideline, AxisValueFormatter<AxisPosition.Vertical.Start> valueFormatter, Axis.SizeConstraint sizeConstraint, VerticalAxis.HorizontalLabelPosition horizontalLabelPosition, VerticalAxis.VerticalLabelPosition verticalLabelPosition, Integer maxLabelCount, Float labelRotationDegrees, TextComponent titleComponent, CharSequence title)
Creates and remembers a start axis (i.e., a VerticalAxis with AxisPosition.Vertical.Start).
- Parameters:
label- the TextComponent to use for the labels.axis- the LineComponent to use for the axis line.tick- the LineComponent to use for the ticks.tickLength- the length of the ticks.guideline- the LineComponent to use for the guidelines.valueFormatter- formats the labels.sizeConstraint- defines how the VerticalAxis is to size itself.horizontalLabelPosition- the horizontal position of the labels.verticalLabelPosition- the vertical position of the labels.maxLabelCount- the maximum label count.labelRotationDegrees- the rotation of the axis labels (in degrees).titleComponent- an optional TextComponent to use as the axis title.title- the axis title.
-
endAxis
@Composable()@Deprecated(message = `endAxis` is being replaced by `rememberEndAxis`. Also, `maxLabelCount` is being replaced by `AxisItemPlacer.Vertical`. If using `maxLabelCount`, create a base `AxisItemPlacer.Vertical` implementation with the desired maximum item count via `AxisItemPlacer.Vertical.default`, and use the `itemPlacer` parameter of `rememberEndAxis` to apply it to the `VerticalAxis` being created. ) final static VerticalAxis<AxisPosition.Vertical.End> endAxis(TextComponent label, LineComponent axis, LineComponent tick, Dp tickLength, LineComponent guideline, AxisValueFormatter<AxisPosition.Vertical.End> valueFormatter, Axis.SizeConstraint sizeConstraint, VerticalAxis.HorizontalLabelPosition horizontalLabelPosition, VerticalAxis.VerticalLabelPosition verticalLabelPosition, Integer maxLabelCount, Float labelRotationDegrees, TextComponent titleComponent, CharSequence title)
Creates and remembers an end axis (i.e., a VerticalAxis with AxisPosition.Vertical.End).
- Parameters:
label- the TextComponent to use for the labels.axis- the LineComponent to use for the axis line.tick- the LineComponent to use for the ticks.tickLength- the length of the ticks.guideline- the LineComponent to use for the guidelines.valueFormatter- formats the labels.sizeConstraint- defines how the VerticalAxis is to size itself.horizontalLabelPosition- the horizontal position of the labels.verticalLabelPosition- the vertical position of the labels.maxLabelCount- the maximum label count.labelRotationDegrees- the rotation of the axis labels (in degrees).titleComponent- an optional TextComponent to use as the axis title.title- the axis title.
-
-
-
-