com.androidplot
Enum Plot.RenderMode

java.lang.Object
  extended by java.lang.Enum<Plot.RenderMode>
      extended by com.androidplot.Plot.RenderMode
All Implemented Interfaces:
Serializable, Comparable<Plot.RenderMode>
Enclosing class:
Plot<SeriesType extends Series,FormatterType extends Formatter,RendererType extends SeriesRenderer>

public static enum Plot.RenderMode
extends 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

Enum Constant Summary
USE_BACKGROUND_THREAD
          Use a second thread and an off-screen buffer to do drawing.
USE_MAIN_THREAD
          Do everything in the primary thread.
 
Method Summary
static Plot.RenderMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Plot.RenderMode[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

USE_BACKGROUND_THREAD

public static final Plot.RenderMode 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

Since:
0.5.1

USE_MAIN_THREAD

public static final Plot.RenderMode 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

Since:
0.5.1
Method Detail

values

public static Plot.RenderMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Plot.RenderMode c : Plot.RenderMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public 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.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010-2013 androidplot.com. All Rights Reserved.