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


Java PieChartData.hasLabelsOutside方法代码示例

本文整理汇总了Java中lecho.lib.hellocharts.model.PieChartData.hasLabelsOutside方法的典型用法代码示例。如果您正苦于以下问题:Java PieChartData.hasLabelsOutside方法的具体用法?Java PieChartData.hasLabelsOutside怎么用?Java PieChartData.hasLabelsOutside使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在lecho.lib.hellocharts.model.PieChartData的用法示例。


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

示例1: onChartDataChanged

import lecho.lib.hellocharts.model.PieChartData; //导入方法依赖的package包/类
@Override
public void onChartDataChanged() {
    super.onChartDataChanged();
    final PieChartData data = dataProvider.getPieChartData();
    hasLabelsOutside = data.hasLabelsOutside();
    hasLabels = data.hasLabels();
    hasLabelsOnlyForSelected = data.hasLabelsOnlyForSelected();
    valueFormatter = data.getFormatter();
    hasCenterCircle = data.hasCenterCircle();
    centerCircleScale = data.getCenterCircleScale();
    centerCirclePaint.setColor(data.getCenterCircleColor());
    if (null != data.getCenterText1Typeface()) {
        centerCircleText1Paint.setTypeface(data.getCenterText1Typeface());
    }
    centerCircleText1Paint.setTextSize(ChartUtils.sp2px(scaledDensity, data.getCenterText1FontSize()));
    centerCircleText1Paint.setColor(data.getCenterText1Color());
    centerCircleText1Paint.getFontMetricsInt(centerCircleText1FontMetrics);
    if (null != data.getCenterText2Typeface()) {
        centerCircleText2Paint.setTypeface(data.getCenterText2Typeface());
    }
    centerCircleText2Paint.setTextSize(ChartUtils.sp2px(scaledDensity, data.getCenterText2FontSize()));
    centerCircleText2Paint.setColor(data.getCenterText2Color());
    centerCircleText2Paint.getFontMetricsInt(centerCircleText2FontMetrics);

    onChartViewportChanged();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:27,代码来源:PieChartRenderer.java

示例2: onChartDataChanged

import lecho.lib.hellocharts.model.PieChartData; //导入方法依赖的package包/类
public void onChartDataChanged() {
    super.onChartDataChanged();
    PieChartData data = this.dataProvider.getPieChartData();
    this.hasLabelsOutside = data.hasLabelsOutside();
    this.hasLabels = data.hasLabels();
    this.hasLabelsOnlyForSelected = data.hasLabelsOnlyForSelected();
    this.valueFormatter = data.getFormatter();
    this.hasCenterCircle = data.hasCenterCircle();
    this.centerCircleScale = data.getCenterCircleScale();
    this.centerCirclePaint.setColor(data.getCenterCircleColor());
    if (data.getCenterText1Typeface() != null) {
        this.centerCircleText1Paint.setTypeface(data.getCenterText1Typeface());
    }
    this.centerCircleText1Paint.setTextSize((float) ChartUtils.sp2px(this.scaledDensity, data.getCenterText1FontSize()));
    this.centerCircleText1Paint.setColor(data.getCenterText1Color());
    this.centerCircleText1Paint.getFontMetricsInt(this.centerCircleText1FontMetrics);
    if (data.getCenterText2Typeface() != null) {
        this.centerCircleText2Paint.setTypeface(data.getCenterText2Typeface());
    }
    this.centerCircleText2Paint.setTextSize((float) ChartUtils.sp2px(this.scaledDensity, data.getCenterText2FontSize()));
    this.centerCircleText2Paint.setColor(data.getCenterText2Color());
    this.centerCircleText2Paint.getFontMetricsInt(this.centerCircleText2FontMetrics);
    onChartViewportChanged();
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:25,代码来源:PieChartRenderer.java


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