// Path: core/src/com/lostagain/nl/GWTish/ComplexPanel.java
// static public class Alignment {		
// 	HorizontalAlignment horizontal = null;
// 	VerticalAlignment   vert = null;
// 
// 	/**
// 	 * default middle center alignment
// 	 */
// 	public Alignment() {
// 				
// 		this.horizontal = HorizontalAlignment.Center;
// 		this.vert = VerticalAlignment.Middle;
// 				
// 	}			
// 	public Alignment(HorizontalAlignment horizontal,VerticalAlignment vert) {
// 				
// 		this.horizontal = horizontal;
// 		this.vert = vert;
// 				
// 	}			
// 						
// }
// 
// Path: core/src/com/lostagain/nl/GWTish/ComplexPanel.java
// public enum HorizontalAlignment {
// 	Left,Center,Right
// }
// 
// Path: core/src/com/lostagain/nl/GWTish/ComplexPanel.java
// public enum VerticalAlignment {
// 	Top,Middle,Bottom
// }


import java.util.logging.Logger;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.math.Vector3;
import com.lostagain.nl.GWTish.ComplexPanel.Alignment;
import com.lostagain.nl.GWTish.ComplexPanel.HorizontalAlignment;
import com.lostagain.nl.GWTish.ComplexPanel.VerticalAlignment;
				
				Log.info("___________________________________Setting new row on flow panel (projected width was:"+newTotalWidthOfCurrentRow+")");
				
				//need new row
				rowsCurrentYHeight = rowsCurrentYHeight+maxHeightOfCurrentRow+spaceing;
				newLocationY = rowsCurrentYHeight;
				newLocationX = 0;

				Log.info("new position is:"+newLocationX+","+newLocationY);
				
				//new row width
				newTotalWidthOfCurrentRow = 0+incomingWidth+spaceing;
				widthOfCurrentRow = newTotalWidthOfCurrentRow;
				maxHeightOfCurrentRow = incomingHeight; //reset
				
			} else {
				//Don't need new row
				
				//x is current position in row
				newLocationX = widthOfCurrentRow;
				//y is unchanged (rowsCurrentYHeight)
				
				//update current row width
				widthOfCurrentRow = newLocationX + incomingWidth+spaceing;
			}
			
			
		}
		
		//if newwidth is greater then old we update
// Path: core/src/com/lostagain/nl/GWTish/ComplexPanel.java
// static public class Alignment {		
// 	HorizontalAlignment horizontal = null;
// 	VerticalAlignment   vert = null;
// 
// 	/**
// 	 * default middle center alignment
// 	 */
// 	public Alignment() {
// 				
// 		this.horizontal = HorizontalAlignment.Center;
// 		this.vert = VerticalAlignment.Middle;
// 				
// 	}			
// 	public Alignment(HorizontalAlignment horizontal,VerticalAlignment vert) {
// 				
// 		this.horizontal = horizontal;
// 		this.vert = vert;
// 				
// 	}			
// 						
// }
// 
// Path: core/src/com/lostagain/nl/GWTish/ComplexPanel.java
// public enum HorizontalAlignment {
// 	Left,Center,Right
// }
// 
// Path: core/src/com/lostagain/nl/GWTish/ComplexPanel.java
// public enum VerticalAlignment {
// 	Top,Middle,Bottom
// }


// Path: core/src/com/lostagain/nl/GWTish/FlowPanel.java
import java.util.logging.Logger;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.math.Vector3;
import com.lostagain.nl.GWTish.ComplexPanel.Alignment;
import com.lostagain.nl.GWTish.ComplexPanel.HorizontalAlignment;
import com.lostagain.nl.GWTish.ComplexPanel.VerticalAlignment;

				
				Log.info("___________________________________Setting new row on flow panel (projected width was:"+newTotalWidthOfCurrentRow+")");
				
				//need new row
				rowsCurrentYHeight = rowsCurrentYHeight+maxHeightOfCurrentRow+spaceing;
				newLocationY = rowsCurrentYHeight;
				newLocationX = 0;

				Log.info("new position is:"+newLocationX+","+newLocationY);
				
				//new row width
				newTotalWidthOfCurrentRow = 0+incomingWidth+spaceing;
				widthOfCurrentRow = newTotalWidthOfCurrentRow;
				maxHeightOfCurrentRow = incomingHeight; //reset
				
			} else {
				//Don't need new row
				
				//x is current position in row
				newLocationX = widthOfCurrentRow;
				//y is unchanged (rowsCurrentYHeight)
				
				//update current row width
				widthOfCurrentRow = newLocationX + incomingWidth+spaceing;
			}
			
			
		}
		
		//if newwidth is greater then old we update
		if (newTotalWidthOfCurrentRow>this.currentTotalWidgetWidth){