Package 

Class Description

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private String text
    • Constructor Summary

      Constructors 
      Constructor Description
      Description()
    • Method Summary

      Modifier and Type Method Description
      String getText() Returns the description text.
      void setText(String text) Sets the text to be shown as the description.Never set this to null as this will cause nullpointer exception when drawing with Android Canvas.
      void setPosition(float x, float y) Sets a custom position for the description text in pixels on the screen.
      MPPointF getPosition() Returns the customized position of the description, or null if none set.
      void setTextAlign(Paint.Align align) Sets the text alignment of the description text.
      Paint.Align getTextAlign() Returns the text alignment of the description.
      • Methods inherited from class com.github.mikephil.charting.components.ComponentBase

        getTextColor, getTextSize, getTypeface, getXOffset, getYOffset, isEnabled, setEnabled, setTextColor, setTextSize, setTypeface, setXOffset, setYOffset
      • Methods inherited from class java.lang.Object

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

      • Description

        Description()
    • Method Detail

      • setText

         void setText(String text)

        Sets the text to be shown as the description.Never set this to null as this will cause nullpointer exception when drawing with Android Canvas.

      • setPosition

         void setPosition(float x, float y)

        Sets a custom position for the description text in pixels on the screen.

        Parameters:
        x - - xcoordinate
        y - - ycoordinate
      • getPosition

         MPPointF getPosition()

        Returns the customized position of the description, or null if none set.

      • setTextAlign

         void setTextAlign(Paint.Align align)

        Sets the text alignment of the description text. Default RIGHT.