internal void StartZoom() { try { if (zoomObj == null) { zoomObj = new ChartZoom(chartVu, pPolarTransform, true); zoomObj.SetButtonMask(MouseButtons.Left); zoomObj.SetZoomYEnable(true); zoomObj.SetZoomXEnable(true); zoomObj.SetZoomXRoundMode(ChartObj.AUTOAXES_EXACT); zoomObj.SetZoomYRoundMode(ChartObj.AUTOAXES_EXACT); zoomObj.InternalZoomStackProcesssing = true; zoomObj.SetEnable(true); thePlot2.SetShowDatapointValue(true); NumericLabel modellabel = new NumericLabel(); modellabel.SetXJust(ChartObj.JUSTIFY_MIN); modellabel.SetYJust(ChartObj.JUSTIFY_CENTER); Font modellabelfont = new Font("Arial", 8, FontStyle.Regular); modellabel.SetTextFont(modellabelfont); modellabel.DecimalPos = 2; modellabel.SetTextNudge(0, 5); thePlot2.SetPlotLabelTemplate(modellabel); } chartVu.SetCurrentMouseListener(zoomObj); chartVu.UpdateDraw(); } catch (Exception ex) { } }
internal void StopZoom() { try { //int k= zoomObj.PushZoomStack(); ChartZoom zoomObj1 = new ChartZoom(chartVu, pPolarTransform, true); zoomObj1.SetButtonMask(MouseButtons.None); zoomObj1.SetZoomYEnable(false); zoomObj1.SetZoomXEnable(false); zoomObj1.SetZoomXRoundMode(ChartObj.AUTOAXES_EXACT); zoomObj1.SetZoomYRoundMode(ChartObj.AUTOAXES_EXACT); zoomObj1.InternalZoomStackProcesssing = true; chartVu.SetCurrentMouseListener(zoomObj1); chartVu.UpdateDraw(); } catch (Exception ex) { } }