Merge with 5ad4c64449adf707f3a0619d568deac185e7ff05

This commit is contained in:
bartn
2010-12-28 17:14:37 -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);