package xml;

import java.util.LinkedList;

public class Icdar {

	private int nboxes;
	
	private String imageName;
	
	private int width;
	
	private int height;
	
	LinkedList<BoxParameters> bParameters;

	public Icdar (){

	}

	public Icdar (String imageName, int width, int height, LinkedList<BoxParameters> bParameters, int nboxes){
		this.imageName = imageName;
		this.width = width;
		this.height = height;
		this.bParameters = bParameters;
		this.nboxes = nboxes;
	}
	
	public int getNboxes() {
		return nboxes;
	}

	public void setNBoxes(int nboxes) {
		this.nboxes = nboxes;
	}
	
	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width =  width;
	}
	
	public int getHeight() {
		return height;
	}

	public void setHeight (int height) {
		this.height =  height;
	}
	
	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}
	
	public BoxParameters getBox (int pos) {
		return bParameters.get(pos);
	}
	
	public void print () {
		
		System.out.println("******************************");
		System.out.println("Image name : " + getImageName());
		System.out.println("width      : " + getWidth());
		System.out.println("height     : " + getHeight());
		
		for (int i = 0; i < bParameters.size(); i++) {
			BoxParameters b = bParameters.get(i);
			System.out.println("---------------------------");
			b.print();
		}
	}
}
