Enum Plot.RenderMode

  • All Implemented Interfaces:

    
    public enum Plot.RenderMode
    
                        

    The RenderMode used by a Plot to draw it's self onto the screen. The RenderMode can be set in two ways. In an xml layout: Programatically: XYPlot myPlot = new XYPlot(context "MyPlot", Plot.RenderMode.USE_MAIN_THREAD); A Plot's RenderMode cannot be changed after the plot has been initialized.

    Since:

    0.5.1

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      USE_MAIN_THREAD

      Do everything in the primary thread. This is the preferred method of drawing static charts and dynamic data that consists of a small number of points. This mode uses less memory at the cost of poor CPU utilization. XML value: use_main_thread

      USE_BACKGROUND_THREAD

      Use a second thread and an off-screen buffer to do drawing. This is the preferred method of drawing dynamic data and static data that consists of a large number of points. This mode provides more efficient CPU utilization at the cost of increased memory usage. As of version 0.5.1 this is the default RenderMode. XML value: use_background_thread

    • Method Summary

      Modifier and Type Method Description
      static Array<Plot.RenderMode> values() Returns an array containing the constants of this enum type, in the order they're declared.
      static Plot.RenderMode valueOf(String name) Returns the enum constant of this type with the specified name.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • values

         static Array<Plot.RenderMode> values()

        Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.

        Returns:

        an array containing the constants of this enum type, in the order they're declared

      • valueOf

         static Plot.RenderMode valueOf(String name)

        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

        Returns:

        the enum constant with the specified name