package tmaestroplayer.template;

import java.util.Vector;

public class TemplateComponent {

	public final static int X_DEFAULT = 0;
	public final static int Y_DEFAULT = 0;
	public final static int Z_DEFAULT = 0;
	public final static int W_DEFAULT = 0;
	public final static int H_DEFAULT = 0;
	
	 
	public final String componentClass;
	public final String componentName;

	public final int x;
	public final int y;
	public final int z;
	public final int w;
	public final int h;

	public final Vector<TemplateComponent> containedcomponents;

	public TemplateComponent(String componentClass, String componentName, int x, int y, int z, int w, int h) {
		this.componentClass = componentClass;
		this.componentName = componentName;
		this.x = x;
		this.y = y;
		this.z = z;
		this.w = w;
		this.h = h;
		containedcomponents = new Vector<TemplateComponent>();
	}
	
	public String toString() {
		return componentName+"["+componentClass+"]:"+"("+x+","+y+","+z+")-("+w+","+h+")C{"+containedcomponents+"}";
	}
}
