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


Java PieChartTouchHandler类代码示例

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


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

示例1: PieChartView

import lecho.lib.hellocharts.gesture.PieChartTouchHandler; //导入依赖的package包/类
public PieChartView(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    pieChartRenderer = new PieChartRenderer(context, this, this);
    touchHandler = new PieChartTouchHandler(context, this);
    setChartRenderer(pieChartRenderer);
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
        this.rotationAnimator = new PieChartRotationAnimatorV8(this);
    } else {
        this.rotationAnimator = new PieChartRotationAnimatorV14(this);
    }
    setPieChartData(PieChartData.generateDummyData());
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:13,代码来源:PieChartView.java

示例2: isChartRotationEnabled

import lecho.lib.hellocharts.gesture.PieChartTouchHandler; //导入依赖的package包/类
public boolean isChartRotationEnabled() {
    if (touchHandler instanceof PieChartTouchHandler) {
        return ((PieChartTouchHandler) touchHandler).isRotationEnabled();
    } else {
        return false;
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:8,代码来源:PieChartView.java

示例3: PieChartView

import lecho.lib.hellocharts.gesture.PieChartTouchHandler; //导入依赖的package包/类
public PieChartView(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);
    this.onValueTouchListener = new DummyPieChartOnValueSelectListener();
    this.pieChartRenderer = new PieChartRenderer(context, this, this);
    this.touchHandler = new PieChartTouchHandler(context, this);
    setChartRenderer(this.pieChartRenderer);
    if (VERSION.SDK_INT < 14) {
        this.rotationAnimator = new PieChartRotationAnimatorV8(this);
    } else {
        this.rotationAnimator = new PieChartRotationAnimatorV14(this);
    }
    setPieChartData(PieChartData.generateDummyData());
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:14,代码来源:PieChartView.java

示例4: setChartRotationEnabled

import lecho.lib.hellocharts.gesture.PieChartTouchHandler; //导入依赖的package包/类
/**
 * Set false if you don't wont the chart to be rotated by touch gesture. Rotating programmatically will still work.
 *
 * @param isRotationEnabled
 */
public void setChartRotationEnabled(boolean isRotationEnabled) {
    if (touchHandler instanceof PieChartTouchHandler) {
        ((PieChartTouchHandler) touchHandler).setRotationEnabled(isRotationEnabled);
    }
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:PieChartView.java

示例5: isChartRotationEnabled

import lecho.lib.hellocharts.gesture.PieChartTouchHandler; //导入依赖的package包/类
public boolean isChartRotationEnabled() {
    if (this.touchHandler instanceof PieChartTouchHandler) {
        return ((PieChartTouchHandler) this.touchHandler).isRotationEnabled();
    }
    return false;
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:7,代码来源:PieChartView.java

示例6: setChartRotationEnabled

import lecho.lib.hellocharts.gesture.PieChartTouchHandler; //导入依赖的package包/类
public void setChartRotationEnabled(boolean isRotationEnabled) {
    if (this.touchHandler instanceof PieChartTouchHandler) {
        ((PieChartTouchHandler) this.touchHandler).setRotationEnabled(isRotationEnabled);
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:6,代码来源:PieChartView.java


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