Steema Issues Database

Note: 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.



Bug 894 - ChartMouseListener events don't work with ZoomStyle.INCHART_MULTI
Summary: ChartMouseListener events don't work with ZoomStyle.INCHART_MULTI
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Android (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-21 07:10 EDT by yeray alonso
Modified: 2014-08-21 07:13 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-08-21 07:10:11 EDT
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");
      }
    } );
  }