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

Summary: Cursor Tool is drawn out of Chart bounds when the InChart_Multi is enable
Product: Java TeeChart Reporter: sandra pazos <sandra>
Component: AndroidAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: 3.2015.0108   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

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();
	}