基本上我想将平移限制在图表的第一象限。用户不应该能够平移到负 x 或 y 轴。但他们应该只能在第一象限内进行缩放和平移。我试过:
mRenderer.setXAxisMin(0); // to start off from 0 in X
mRenderer.setYAxisMin(0); // to start off from 0 in Y
mRenderer.setPanEnabled(false, false); // dont let them pan in any axis,
// but I want them to pan within the first quadrant - !problem!
mRenderer.setZoomEnabled(true, true); // let them zoom anywhere in xy quadrant
所以问题是一旦他们放大,他们就不能在那个缩放级别的正象限内平移。这可能吗?