当前位置: 首页>>代码示例>>Java>>正文


Java ColumnChartDataProvider类代码示例

本文整理汇总了Java中lecho.lib.hellocharts.provider.ColumnChartDataProvider的典型用法代码示例。如果您正苦于以下问题:Java ColumnChartDataProvider类的具体用法?Java ColumnChartDataProvider怎么用?Java ColumnChartDataProvider使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ColumnChartDataProvider类属于lecho.lib.hellocharts.provider包,在下文中一共展示了ColumnChartDataProvider类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ColumnChartRenderer

import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public ColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider dataProvider) {
    super(context, chart);
    this.dataProvider = dataProvider;
    this.subcolumnSpacing = ChartUtils.dp2px(this.density, 1);
    this.touchAdditionalWidth = ChartUtils.dp2px(this.density, 4);
    this.columnPaint.setAntiAlias(true);
    this.columnPaint.setStyle(Style.FILL);
    this.columnPaint.setStrokeCap(Cap.SQUARE);
    this.caloryLinePaint.setAntiAlias(true);
    this.caloryLinePaint.setStyle(Style.STROKE);
    this.caloryLinePaint.setStrokeWidth((float) ChartUtils.dp2px(this.density, 1));
    this.caloryLinePaint.setColor(ChartUtils.DEFAULT_TARGET_COLOR);
    this.caloryTextPaint.setAntiAlias(true);
    this.caloryTextPaint.setStyle(Style.FILL);
    this.caloryTextPaint.setTextSize((float) ChartUtils.dp2px(this.density, 12));
    this.caloryTextPaint.setColor(ChartUtils.COLOR_BACKGROUND);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:18,代码来源:ColumnChartRenderer.java

示例2: ColumnChartRenderer

import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public ColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider dataProvider) {
    super(context, chart);
    this.dataProvider = dataProvider;
    subcolumnSpacing = ChartUtils.dp2px(density, DEFAULT_SUBCOLUMN_SPACING_DP);
    touchAdditionalWidth = ChartUtils.dp2px(density, DEFAULT_COLUMN_TOUCH_ADDITIONAL_WIDTH_DP);

    columnPaint.setAntiAlias(true);
    columnPaint.setStyle(Paint.Style.FILL);
    columnPaint.setStrokeCap(Cap.SQUARE);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:ColumnChartRenderer.java

示例3: ComboLineColumnChartRenderer

import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的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: PreviewColumnChartRenderer

import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public PreviewColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider 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,代码来源:PreviewColumnChartRenderer.java

示例5: ComboLineColumnChartRenderer

import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的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: PreviewColumnChartRenderer

import lecho.lib.hellocharts.provider.ColumnChartDataProvider; //导入依赖的package包/类
public PreviewColumnChartRenderer(Context context, Chart chart, ColumnChartDataProvider 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,代码来源:PreviewColumnChartRenderer.java


注:本文中的lecho.lib.hellocharts.provider.ColumnChartDataProvider类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。