Merge with 0d6e42a25349b4c1099e8a03a37e22cc559da048

This commit is contained in:
bartn
2010-12-28 16:58:56 -08:00
4 changed files with 10 additions and 35 deletions
@@ -85,29 +85,6 @@ public class ChartValueSeries {
this.title = context.getString(titleId);
}
/**
* Constructs a new chart value series.
*
* @param context The context for the chart
* @param formatString The format of the decimal format for this series
* @param fill The paint for filling the chart
* @param stroke The paint for stroking the outside the chart, optional
* @param rounding The factor to round the values by
*/
public ChartValueSeries(Context context,
String formatString,
Paint fill,
Paint stroke,
int rounding,
int titleId) {
this.format = new DecimalFormat(formatString);
this.fillPaint = fill;
this.labelPaint = fill;
this.strokePaint = stroke;
this.rounding = rounding;
this.title = context.getString(titleId);
}
/**
* Draws the path of the chart
*/
@@ -197,8 +197,8 @@ public class ChartView extends View {
series[ELEVATION_SERIES] =
new ChartValueSeries(context,
"###,###",
R.color.green,
-1,
R.color.elevation_fill,
R.color.elevation_border,
100,
R.string.elevation);