private boolean lineIsInFrame(int x1, int x2, int yValue, int xSize, int ySize)
	{
		
		int compareX = getLeftBorder();
		
		if ( yValue <= 0 )
			return false;
		
		if( yValue >= ySize)
			return false;
						
		if( x1 <= compareX && x2 <= compareX)
			return false;
		
		if( x1 >= xSize && x2 >= xSize)
			return false;
		
		return true;
	}