public String getAttribute(String attr){
		switch(attr){
			case "Image":
				return imgName;
			case "Id":
				return Integer.toString(id);
			case "Area":
				return Integer.toString(area);
			case "Mean":
				return Double.toString(mean);
			case "Centroid":
				return centroid.toString();
			case "Prev":
				return (prevCell != null) ? Integer.toString(prevCell.getId()) : "None";
			case "Next":
				return (nextCell != null) ? Integer.toString(nextCell.getId()) : "None";
			default:
				return "";
		}
	}