![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | ChartMouseListener events don't work with ZoomStyle.INCHART_MULTI | ||
|---|---|---|---|
| Product: | Java TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Android | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=10&t=15150 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
As the customer says in the forums, the ChartMouseListener events don't work with ZoomStyle.INCHART_MULTI in TeeChart Java Android. Here a simple example: private int myBackgroundCount = 0; private int myTitleCount = 0; private int myLegendCount = 0; private int myAxesCount = 0; private void initializeChart() { tChart1.getAspect().setView3D(false); Line line1 = new Line(tChart1.getChart()); line1.fillSampleValues(); tChart1.getZoom().setZoomStyle(ZoomStyle.INCHART_MULTI); tChart1.addChartMouseListener(new ChartMouseListener() { @Override public void titleClicked(ChartMouseEvent arg0) { myTitleCount++; tChart1.getHeader().setText("Title Clicked: " + String.valueOf(myTitleCount) + " times"); } @Override public void legendClicked(ChartMouseEvent arg0) { myLegendCount++; tChart1.getHeader().setText("Legend Clicked: " + String.valueOf(myLegendCount) + " times"); } @Override public void backgroundClicked(ChartMouseEvent arg0) { myBackgroundCount++; tChart1.getHeader().setText("BackGround Clicked: " + String.valueOf(myBackgroundCount) + " times"); } @Override public void axesClicked(ChartMouseEvent arg0) { myAxesCount++; tChart1.getHeader().setText("Axes Clicked: " + String.valueOf(myAxesCount) + " times"); } } ); }