-
- All Implemented Interfaces:
-
java.io.Serializable
,java.lang.Comparable
public enum Plot.RenderMode
The RenderMode used by a Plot to draw it's self onto the screen. The RenderMode can be setin 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.
-
-
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 chartsand dynamic data that consists of a small number of points. This mode uses less memory atthe 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 methodof drawing dynamic data and static data that consists of a large number of points. This modeprovides more efficient CPU utilization at the cost of increased memory usage. As ofversion 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()
static Plot.RenderMode
valueOf(String name)
-
-
Method Detail
-
values
static Array<Plot.RenderMode> values()
-
valueOf
static Plot.RenderMode valueOf(String name)
-
-
-
-