简体   繁体   English

在Android的TeeChart的InChart模式下启用两指缩放

[英]Enable two-finger zoom in InChart mode of TeeChart for Android

According to the documentation of the evaluation version of TeeChart for Android ("TeeChartJavaAndroid_2013Eval"), zooming with two-finger touch can be enabled for ZoomStyle.FULLCHART mode: 根据适用于Android的TeeChart评估版的文档(“ TeeChartJavaAndroid_2013Eval”),可以为ZoomStyle.FULLCHART模式启用两指触摸缩放:

FullChart mode 全图模式

Scroll 滚动
Touch a finger to the screen and drag it in the direction that you would like the entire Chart to move. 用手指触摸屏幕,然后将其拖向整个图表移动的方向。

Zoom 放大
To Zoom, touch two fingers to the screen at the centre location you wish to zoom and drag the fingers apart. 要缩放,请在您要缩放的中心位置将两根手指触摸到屏幕,然后将手指分开。 To Unzoom invert the procedure, touch the screen at any two outer locations and drag your fingers togther before releasing them from the screen. 要取消缩放过程,请在屏幕上任意两个外部位置触摸屏幕,然后将手指从屏幕上松开,然后再拖动手指。

Nevertheless, for InChart mode it uses a one-click drag zoom and scroll approach. 但是,对于InChart模式,它使用一键式拖动缩放和滚动方法。
Is there any way to enable the two-finger zooming for InChart mode?. 有什么方法可以为InChart模式启用两指缩放吗?

I understand you want to use pinch gesture to make the chart rescale the axes, right? 我了解您要使用捏手势使图表重新调整坐标轴,对吗?

The problem here is that, between the start and the end of the pinch gesture, each time the device detects a movement in one of your fingers. 这里的问题是,在捏合手势的开始和结束之间,每次设备检测到一根手指的移动时。 And, if we rescale and repaint the chart each time a movement is detected, we'll repaint the chart many times, slowing the process. 而且,如果每次检测到移动时都重新缩放图表并重新绘制图表,我们将多次重新绘制图表,从而减慢了过程。

In some versions of TeeChart there's a special Zoom style that plays with images to do this zoom effect, making it faster. 在某些版本的TeeChart中,有一种特殊的“缩放”样式可与图像一起播放以实现这种缩放效果,从而使其更快。 But I'm afraid this style isn't available in TeeChart Java for Android yet. 但是,恐怕这种样式尚未在Android的TeeChart Java中提供。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM