本文整理匯總了Java中lecho.lib.hellocharts.gesture.PreviewChartTouchHandler類的典型用法代碼示例。如果您正苦於以下問題:Java PreviewChartTouchHandler類的具體用法?Java PreviewChartTouchHandler怎麽用?Java PreviewChartTouchHandler使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
PreviewChartTouchHandler類屬於lecho.lib.hellocharts.gesture包,在下文中一共展示了PreviewChartTouchHandler類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: PreviewLineChartView
import lecho.lib.hellocharts.gesture.PreviewChartTouchHandler; //導入依賴的package包/類
public PreviewLineChartView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
chartComputator = new PreviewChartComputator();
previewChartRenderer = new PreviewLineChartRenderer(context, this, this);
touchHandler = new PreviewChartTouchHandler(context, this);
setChartRenderer(previewChartRenderer);
setLineChartData(LineChartData.generateDummyData());
}
示例2: PreviewColumnChartView
import lecho.lib.hellocharts.gesture.PreviewChartTouchHandler; //導入依賴的package包/類
public PreviewColumnChartView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
chartComputator = new PreviewChartComputator();
previewChartRenderer = new PreviewColumnChartRenderer(context, this, this);
touchHandler = new PreviewChartTouchHandler(context, this);
setChartRenderer(previewChartRenderer);
setColumnChartData(ColumnChartData.generateDummyData());
}
示例3: PreviewLineChartView
import lecho.lib.hellocharts.gesture.PreviewChartTouchHandler; //導入依賴的package包/類
public PreviewLineChartView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
this.chartComputator = new PreviewChartComputator();
this.previewChartRenderer = new PreviewLineChartRenderer(context, this, this);
this.touchHandler = new PreviewChartTouchHandler(context, this);
setChartRenderer(this.previewChartRenderer);
setLineChartData(LineChartData.generateDummyData());
}
示例4: PreviewColumnChartView
import lecho.lib.hellocharts.gesture.PreviewChartTouchHandler; //導入依賴的package包/類
public PreviewColumnChartView(Context context, AttributeSet attrs, int defStyle) {
super(context, attrs, defStyle);
this.chartComputator = new PreviewChartComputator();
this.previewChartRenderer = new PreviewColumnChartRenderer(context, this, this);
this.touchHandler = new PreviewChartTouchHandler(context, this);
setChartRenderer(this.previewChartRenderer);
setColumnChartData(ColumnChartData.generateDummyData());
}