public static void setOperatorParameters(Node node){
		double wLeft,wRight,hLeft,hRight,width=0,height=0;
		if(node.getLeft().getCharacter()== '+' || node.getLeft().getCharacter()=='*'){
			setOperatorParameters(node.getLeft());
			
		}
		
		wLeft = node.getLeft().getWidth();
		hLeft=node.getLeft().getHeight();
		
		if(node.getRight().getCharacter()== '+' || node.getRight().getCharacter()=='*'){
			setOperatorParameters(node.getRight());
		}		
		
		wRight = node.getRight().getWidth();
		hRight = node.getRight().getHeight();
		
		
		if(node.getCharacter() == '+'){
			width = wLeft+wRight;
			height = hRight; 
			if(hLeft > hRight)
				height = hLeft;
			
		}
		else if(node.getCharacter() == '*'){
			height = hLeft+hRight;
			width = wRight;
			if(wLeft>wRight)
				width = wLeft;
		
		}
		node.setWidth(width);
		node.setHeight(height);
		
		
		
	}