本文整理匯總了Java中lecho.lib.hellocharts.animation.ChartDataAnimatorV8類的典型用法代碼示例。如果您正苦於以下問題:Java ChartDataAnimatorV8類的具體用法?Java ChartDataAnimatorV8怎麽用?Java ChartDataAnimatorV8使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ChartDataAnimatorV8類屬於lecho.lib.hellocharts.animation包,在下文中一共展示了ChartDataAnimatorV8類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: AbstractChartView
import lecho.lib.hellocharts.animation.ChartDataAnimatorV8; //導入依賴的package包/類
public AbstractChartView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
chartComputator = new ChartComputator();
touchHandler = new ChartTouchHandler(context, this);
axesRenderer = new AxesRenderer(context, this);
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
this.dataAnimator = new ChartDataAnimatorV8(this);
this.viewportAnimator = new ChartViewportAnimatorV8(this);
} else {
this.viewportAnimator = new ChartViewportAnimatorV14(this);
this.dataAnimator = new ChartDataAnimatorV14(this);
}
}
示例2: AbstractChartView
import lecho.lib.hellocharts.animation.ChartDataAnimatorV8; //導入依賴的package包/類
public AbstractChartView(Context context, AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
this.isInteractive = true;
this.isContainerScrollEnabled = false;
this.chartComputator = new ChartComputator();
this.touchHandler = new ChartTouchHandler(context, this);
this.axesRenderer = new AxesRenderer(context, this);
if (VERSION.SDK_INT < 14) {
this.dataAnimator = new ChartDataAnimatorV8(this);
this.viewportAnimator = new ChartViewportAnimatorV8(this);
return;
}
this.viewportAnimator = new ChartViewportAnimatorV14(this);
this.dataAnimator = new ChartDataAnimatorV14(this);
}