當前位置: 首頁>>代碼示例>>Java>>正文


Java LineChartDataProvider類代碼示例

本文整理匯總了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);

}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:18,代碼來源:LineChartRenderer.java

示例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);
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:20,代碼來源:LineChartRenderer.java

示例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);
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:8,代碼來源:ComboLineColumnChartRenderer.java

示例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));
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:7,代碼來源:PreviewLineChartRenderer.java

示例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));
}
 
開發者ID:weiwenqiang,項目名稱:GitHub,代碼行數:6,代碼來源:ComboLineColumnChartRenderer.java

示例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));
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:7,代碼來源:PreviewLineChartRenderer.java


注:本文中的lecho.lib.hellocharts.provider.LineChartDataProvider類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。