Skip to content

Commit 4404262

Browse files
authored
render mode attrs should have a distinct ordinal value (halfhp#111)
1 parent 6079afc commit 4404262

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

androidplot-core/src/main/java/com/androidplot/Plot.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -145,25 +145,25 @@ public enum BorderStyle {
145145
*/
146146
public enum RenderMode {
147147
/**
148-
* Use a second thread and an off-screen buffer to do drawing. This is the preferred method
149-
* of drawing dynamic data and static data that consists of a large number of points. This mode
150-
* provides more efficient CPU utilization at the cost of increased memory usage. As of
151-
* version 0.5.1 this is the default RenderMode.
148+
* Do everything in the primary thread. This is the preferred method of drawing static charts
149+
* and dynamic data that consists of a small number of points. This mode uses less memory at
150+
* the cost of poor CPU utilization.
152151
*
153-
* XML value: use_background_thread
152+
* XML value: use_main_thread
154153
* @since 0.5.1
155154
*/
156-
USE_BACKGROUND_THREAD,
155+
USE_MAIN_THREAD,
157156

158157
/**
159-
* Do everything in the primary thread. This is the preferred method of drawing static charts
160-
* and dynamic data that consists of a small number of points. This mode uses less memory at
161-
* the cost of poor CPU utilization.
158+
* Use a second thread and an off-screen buffer to do drawing. This is the preferred method
159+
* of drawing dynamic data and static data that consists of a large number of points. This mode
160+
* provides more efficient CPU utilization at the cost of increased memory usage. As of
161+
* version 0.5.1 this is the default RenderMode.
162162
*
163-
* XML value: use_main_thread
163+
* XML value: use_background_thread
164164
* @since 0.5.1
165165
*/
166-
USE_MAIN_THREAD
166+
USE_BACKGROUND_THREAD
167167
}
168168
private BoxModel boxModel = new BoxModel();
169169

androidplot-core/src/main/res/values/attrs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ Supported Elements:
3030
<resources>
3131

3232
<attr name="renderMode" format="enum">
33-
<enum name="use_background_thread" value="0"/>
3433
<enum name="use_main_thread" value="0"/>
34+
<enum name="use_background_thread" value="1"/>
3535
</attr>
3636

3737
<attr name="previewMode" format="enum">

0 commit comments

Comments
 (0)