Enum Plot.RenderMode
-
- All Implemented Interfaces:
public enum Plot.RenderModeThe 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
Enum Constants Enum Constant Description USE_MAIN_THREADDo 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_THREADUse 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.RenderModevalueOf(String name)Returns the enum constant of this type with the specified name. -
-
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
-
-
-
-