Package 

Class AxisComponentsKt

    • Method Summary

      Modifier and Type Method Description
      final static TextComponent axisLabelComponent(Color color, TextUnit textSize, ShapeComponent background, TextUtils.TruncateAt ellipsize, Integer lineCount, Dp verticalPadding, Dp horizontalPadding, Dp verticalMargin, Dp horizontalMargin, Typeface typeface, Layout.Alignment textAlignment) Creates a TextComponent to be used for axis labels.
      final static TextComponent axisLabelComponent(Color color, TextUnit textSize, ShapeComponent background, TextUtils.TruncateAt ellipsize, Integer lineCount, Dp verticalPadding, Dp horizontalPadding, Dp verticalMargin, Dp horizontalMargin, Typeface typeface, Paint.Align textAlign) Creates a TextComponent to be used for axis labels.
      final static LineComponent axisLineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader, Dimensions margins) Creates a LineComponent styled as an axis line.
      final static LineComponent axisLineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, Brush brush, Dimensions margins) Creates a LineComponent styled as an axis line.
      final static LineComponent axisTickComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader) Creates a LineComponent styled as a tick line.
      final static LineComponent axisTickComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, Brush brush) Creates a LineComponent styled as a tick line.
      final static LineComponent axisGuidelineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader, Dimensions margins) Creates an axis guideline.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • axisLabelComponent

        @Composable() final static TextComponent axisLabelComponent(Color color, TextUnit textSize, ShapeComponent background, TextUtils.TruncateAt ellipsize, Integer lineCount, Dp verticalPadding, Dp horizontalPadding, Dp verticalMargin, Dp horizontalMargin, Typeface typeface, Layout.Alignment textAlignment)

        Creates a TextComponent to be used for axis labels.

        Parameters:
        color - the text color.
        textSize - the text size.
        background - an optional ShapeComponent to be displayed behind the text.
        ellipsize - the text truncation behavior.
        lineCount - the line count.
        verticalPadding - the amount of top and bottom padding between the text and the background.
        horizontalPadding - the amount of start and end padding between the text and the background.
        verticalMargin - the size of the top and bottom margins around the background.
        horizontalMargin - the size of the start and end margins around the background.
        typeface - the Typeface for the text.
        textAlignment - the text alignment.
      • axisLabelComponent

        @Composable()@Deprecated(message = Instead of `textAlign`, use `textAlignment`.) final static TextComponent axisLabelComponent(Color color, TextUnit textSize, ShapeComponent background, TextUtils.TruncateAt ellipsize, Integer lineCount, Dp verticalPadding, Dp horizontalPadding, Dp verticalMargin, Dp horizontalMargin, Typeface typeface, Paint.Align textAlign)

        Creates a TextComponent to be used for axis labels.

        Parameters:
        color - the text color.
        textSize - the text size.
        background - an optional ShapeComponent to be displayed behind the text.
        ellipsize - the text truncation behavior.
        lineCount - the line count.
        verticalPadding - the amount of top and bottom padding between the text and the background.
        horizontalPadding - the amount of start and end padding between the text and the background.
        verticalMargin - the size of the top and bottom margins around the background.
        horizontalMargin - the size of the start and end margins around the background.
        typeface - the Typeface for the text.
        textAlign - the text alignment.
      • axisLineComponent

        @Composable() final static LineComponent axisLineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader, Dimensions margins)

        Creates a LineComponent styled as an axis line.

        Parameters:
        color - the background color.
        thickness - the line thickness.
        shape - the ChartShape to use for the line.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        dynamicShader - an optional DynamicShader to apply to the line.
        margins - the margins of the line.
      • axisLineComponent

        @Composable() final static LineComponent axisLineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, Brush brush, Dimensions margins)

        Creates a LineComponent styled as an axis line.

        Parameters:
        color - the background color.
        thickness - the thickness of the line.
        shape - the Shape to use for the line.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        brush - an optional Brush to apply to the line.
        margins - the margins of the line.
      • axisTickComponent

        @Composable() final static LineComponent axisTickComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader)

        Creates a LineComponent styled as a tick line.

        Parameters:
        color - the background color.
        thickness - the thickness of the tick.
        shape - the ChartShape to use for the tick.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        dynamicShader - an optional DynamicShader to apply to the tick.
      • axisTickComponent

        @Composable() final static LineComponent axisTickComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, Brush brush)

        Creates a LineComponent styled as a tick line.

        Parameters:
        color - the background color.
        thickness - the thickness of the line.
        shape - the Shape to use for the line.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        brush - an optional Brush to apply to the line.
      • axisGuidelineComponent

        @Composable() final static LineComponent axisGuidelineComponent(Color color, Dp thickness, Shape shape, Dp strokeWidth, Color strokeColor, DynamicShader dynamicShader, Dimensions margins)

        Creates an axis guideline.

        Parameters:
        color - the background color.
        thickness - the line thickness.
        shape - the ChartShape to use for the guideline.
        strokeWidth - the stroke width.
        strokeColor - the stroke color.
        dynamicShader - an optional DynamicShader to apply to the guideline.
        margins - the margins of the guideline.