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


Java Easing.EasingOption方法代码示例

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


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

示例1: spin

import com.github.mikephil.charting.animation.Easing; //导入方法依赖的package包/类
/**
 * Applys a spin animation to the Chart.
 *
 * @param durationmillis
 * @param fromangle
 * @param toangle
 */
@SuppressLint("NewApi")
public void spin(int durationmillis, float fromangle, float toangle, Easing.EasingOption easing) {

    if (android.os.Build.VERSION.SDK_INT < 11)
        return;

    setRotationAngle(fromangle);

    ObjectAnimator spinAnimator = ObjectAnimator.ofFloat(this, "rotationAngle", fromangle,
            toangle);
    spinAnimator.setDuration(durationmillis);
    spinAnimator.setInterpolator(Easing.getEasingFunctionFromOption(easing));

    spinAnimator.addUpdateListener(new AnimatorUpdateListener() {

        @Override
        public void onAnimationUpdate(ValueAnimator animation) {
            postInvalidate();
        }
    });
    spinAnimator.start();
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:30,代码来源:PieRadarChartBase.java

示例2: spin

import com.github.mikephil.charting.animation.Easing; //导入方法依赖的package包/类
/**
 * Applys a spin animation to the Chart.
 * 
 * @param durationmillis
 * @param fromangle
 * @param toangle
 */
@SuppressLint("NewApi")
public void spin(int durationmillis, float fromangle, float toangle, Easing.EasingOption easing) {

    if (android.os.Build.VERSION.SDK_INT < 11)
        return;

    setRotationAngle(fromangle);

    ObjectAnimator spinAnimator = ObjectAnimator.ofFloat(this, "rotationAngle", fromangle,
            toangle);
    spinAnimator.setDuration(durationmillis);
    spinAnimator.setInterpolator(Easing.getEasingFunctionFromOption(easing));

    spinAnimator.addUpdateListener(new AnimatorUpdateListener() {

        @Override
        public void onAnimationUpdate(ValueAnimator animation) {
            postInvalidate();
        }
    });
    spinAnimator.start();
}
 
开发者ID:rahulmaddineni,项目名称:Stayfit,代码行数:30,代码来源:PieRadarChartBase.java

示例3: animateXY

import com.github.mikephil.charting.animation.Easing; //导入方法依赖的package包/类
/**
 * Animates the drawing / rendering of the chart on both x- and y-axis with
 * the specified animation time. If animate(...) is called, no further
 * calling of invalidate() is necessary to refresh the chart. ANIMATIONS
 * ONLY WORK FOR API LEVEL 11 (Android 3.0.x) AND HIGHER.
 *
 * @param durationMillisX
 * @param durationMillisY
 * @param easingX         a predefined easing option
 * @param easingY         a predefined easing option
 */
public void animateXY(int durationMillisX, int durationMillisY, Easing.EasingOption easingX,
                      Easing.EasingOption easingY) {
    mAnimator.animateXY(durationMillisX, durationMillisY, easingX, easingY);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:16,代码来源:Chart.java

示例4: animateX

import com.github.mikephil.charting.animation.Easing; //导入方法依赖的package包/类
/**
 * Animates the rendering of the chart on the x-axis with the specified
 * animation time. If animate(...) is called, no further calling of
 * invalidate() is necessary to refresh the chart. ANIMATIONS ONLY WORK FOR
 * API LEVEL 11 (Android 3.0.x) AND HIGHER.
 *
 * @param durationMillis
 * @param easing         a predefined easing option
 */
public void animateX(int durationMillis, Easing.EasingOption easing) {
    mAnimator.animateX(durationMillis, easing);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:13,代码来源:Chart.java

示例5: animateY

import com.github.mikephil.charting.animation.Easing; //导入方法依赖的package包/类
/**
 * Animates the rendering of the chart on the y-axis with the specified
 * animation time. If animate(...) is called, no further calling of
 * invalidate() is necessary to refresh the chart. ANIMATIONS ONLY WORK FOR
 * API LEVEL 11 (Android 3.0.x) AND HIGHER.
 *
 * @param durationMillis
 * @param easing         a predefined easing option
 */
public void animateY(int durationMillis, Easing.EasingOption easing) {
    mAnimator.animateY(durationMillis, easing);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:13,代码来源:Chart.java

示例6: animateXY

import com.github.mikephil.charting.animation.Easing; //导入方法依赖的package包/类
/**
 * Animates the drawing / rendering of the chart on both x- and y-axis with
 * the specified animation time. If animate(...) is called, no further
 * calling of invalidate() is necessary to refresh the chart. ANIMATIONS
 * ONLY WORK FOR API LEVEL 11 (Android 3.0.x) AND HIGHER.
 *
 * @param durationMillisX
 * @param durationMillisY
 * @param easingX a predefined easing option
 * @param easingY a predefined easing option
 */
public void animateXY(int durationMillisX, int durationMillisY, Easing.EasingOption easingX,
        Easing.EasingOption easingY) {
    mAnimator.animateXY(durationMillisX, durationMillisY, easingX, easingY);
}
 
开发者ID:xinpengfei520,项目名称:P2P,代码行数:16,代码来源:Chart.java

示例7: animateX

import com.github.mikephil.charting.animation.Easing; //导入方法依赖的package包/类
/**
 * Animates the rendering of the chart on the x-axis with the specified
 * animation time. If animate(...) is called, no further calling of
 * invalidate() is necessary to refresh the chart. ANIMATIONS ONLY WORK FOR
 * API LEVEL 11 (Android 3.0.x) AND HIGHER.
 *
 * @param durationMillis
 * @param easing a predefined easing option
 */
public void animateX(int durationMillis, Easing.EasingOption easing) {
    mAnimator.animateX(durationMillis, easing);
}
 
开发者ID:xinpengfei520,项目名称:P2P,代码行数:13,代码来源:Chart.java

示例8: animateY

import com.github.mikephil.charting.animation.Easing; //导入方法依赖的package包/类
/**
 * Animates the rendering of the chart on the y-axis with the specified
 * animation time. If animate(...) is called, no further calling of
 * invalidate() is necessary to refresh the chart. ANIMATIONS ONLY WORK FOR
 * API LEVEL 11 (Android 3.0.x) AND HIGHER.
 *
 * @param durationMillis
 * @param easing a predefined easing option
 */
public void animateY(int durationMillis, Easing.EasingOption easing) {
    mAnimator.animateY(durationMillis, easing);
}
 
开发者ID:xinpengfei520,项目名称:P2P,代码行数:13,代码来源:Chart.java


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