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 1469 - Cursor Tool is drawn out of Chart bounds when the InChart_Multi is enable
Summary: Cursor Tool is drawn out of Chart bounds when the InChart_Multi is enable
Status: CONFIRMED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Android (show other bugs)
Version: 3.2015.0108
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-14 09:28 EDT by sandra pazos
Modified: 2016-03-14 09:28 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 sandra pazos 2016-03-14 09:28:27 EDT
Cursor Tool is drawn out of Chart bounds when the InChart_Multi is enable. Basically, the cursor Tool isn't clipped the Chart rect bounds. The code below shows the problem:

private void initializeChart() 
	{
	com.steema.teechart.themes.ThemesList.applyTheme(tChart1.getChart(), 1);

	    tChart1.getChart().getLegend().setVisible(false);
		tChart1.getAspect().setView3D(false);
	    tChart1.getLegend().setVisible(false);
	    tChart1.getZoom().setZoomStyle(ZoomStyle.INCHART_MULTI); 
	  //  tChart1.and
	    tChart1.getPanning().setAllow(ScrollMode.BOTH); 


	    //tChart1.getscro
	       
	       //X axis
	       tChart1.getAxes().getBottom().getLabels().getFont().setSize(30);
	        //Y axis
	        tChart1.getAxes().getLeft().getLabels().getFont().setSize(30);
	        line1 = new FastLine(tChart1.getChart());
	        Random r = new Random(); 
	        
	        for (int i=0; i<10; i++)
	        {
	        	line1.add(i,r.nextInt(100)); 
	        }
	        line1.getLinePen().setColor(com.steema.teechart.drawing.Color.yellow);
	        line1.getLinePen().setWidth(3);
	        cursor1 = new CursorTool(tChart1.getChart()); 
    		cursor1.setXValue(5);
    		cursor1.setStyle(CursorToolStyle.VERTICAL); 
    		cursor1.getPen().setColor(com.steema.teechart.drawing.Color.red);
    		cursor1.getPen().setWidth(5);
		
	        tChart1.refreshControl();
	}