本文整理匯總了Java中lecho.lib.hellocharts.provider.LineChartDataProvider類的典型用法代碼示例。如果您正苦於以下問題:Java LineChartDataProvider類的具體用法?Java LineChartDataProvider怎麽用?Java LineChartDataProvider使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
LineChartDataProvider類屬於lecho.lib.hellocharts.provider包,在下文中一共展示了LineChartDataProvider類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: LineChartRenderer
import lecho.lib.hellocharts.provider.LineChartDataProvider; //導入依賴的package包/類
public LineChartRenderer(Context context, Chart chart, LineChartDataProvider dataProvider) {
super(context, chart);
this.dataProvider = dataProvider;
touchToleranceMargin = ChartUtils.dp2px(density, DEFAULT_TOUCH_TOLERANCE_MARGIN_DP);
linePaint.setAntiAlias(true);
linePaint.setStyle(Paint.Style.STROKE);
linePaint.setStrokeCap(Cap.ROUND);
linePaint.setStrokeWidth(ChartUtils.dp2px(density, DEFAULT_LINE_STROKE_WIDTH_DP));
pointPaint.setAntiAlias(true);
pointPaint.setStyle(Paint.Style.FILL);
checkPrecision = ChartUtils.dp2px(density, 2);
}
示例2: LineChartRenderer
import lecho.lib.hellocharts.provider.LineChartDataProvider; //導入依賴的package包/類
public LineChartRenderer(Context context, Chart chart, LineChartDataProvider dataProvider) {
super(context, chart);
this.dataProvider = dataProvider;
this.touchToleranceMargin = ChartUtils.dp2px(this.density, 4);
this.linePaint.setAntiAlias(true);
this.linePaint.setStyle(Style.STROKE);
this.linePaint.setStrokeCap(Cap.ROUND);
this.linePaint.setStrokeWidth((float) ChartUtils.dp2px(this.density, 3));
this.pointPaint.setAntiAlias(true);
this.pointPaint.setStyle(Style.FILL);
this.weightStrPaint.setAntiAlias(true);
this.weightStrPaint.setColor(-1);
this.weightStrPaint.setTextSize((float) ChartUtils.dp2px(this.density, 12));
this.weightLinePaint.setAntiAlias(true);
this.weightLinePaint.setStyle(Style.STROKE);
this.weightLinePaint.setStrokeWidth((float) ChartUtils.dp2px(this.density, 1));
this.weightLinePaint.setColor(ChartUtils.DEFAULT_TARGET_COLOR);
this.checkPrecision = ChartUtils.dp2px(this.density, 2);
}
示例3: ComboLineColumnChartRenderer
import lecho.lib.hellocharts.provider.LineChartDataProvider; //導入依賴的package包/類
public ComboLineColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider columnChartDataProvider, LineChartDataProvider lineChartDataProvider) {
super(context, chart);
this.columnChartRenderer = new ColumnChartRenderer(context, chart, columnChartDataProvider);
this.lineChartRenderer = new LineChartRenderer(context, chart, lineChartDataProvider);
this.renderers.add(this.columnChartRenderer);
this.renderers.add(this.lineChartRenderer);
}
示例4: PreviewLineChartRenderer
import lecho.lib.hellocharts.provider.LineChartDataProvider; //導入依賴的package包/類
public PreviewLineChartRenderer(Context context, Chart chart, LineChartDataProvider dataProvider) {
super(context, chart, dataProvider);
previewPaint.setAntiAlias(true);
previewPaint.setColor(Color.LTGRAY);
previewPaint.setStrokeWidth(ChartUtils.dp2px(density, DEFAULT_PREVIEW_STROKE_WIDTH_DP));
}
示例5: ComboLineColumnChartRenderer
import lecho.lib.hellocharts.provider.LineChartDataProvider; //導入依賴的package包/類
public ComboLineColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider columnChartDataProvider,
LineChartDataProvider lineChartDataProvider) {
this(context, chart, new ColumnChartRenderer(context, chart, columnChartDataProvider),
new LineChartRenderer(context, chart, lineChartDataProvider));
}
示例6: PreviewLineChartRenderer
import lecho.lib.hellocharts.provider.LineChartDataProvider; //導入依賴的package包/類
public PreviewLineChartRenderer(Context context, Chart chart, LineChartDataProvider dataProvider) {
super(context, chart, dataProvider);
this.previewPaint.setAntiAlias(true);
this.previewPaint.setColor(-3355444);
this.previewPaint.setStrokeWidth((float) ChartUtils.dp2px(this.density, 2));
}