package gui.animate.cellanimate; public class CompoundMatrix implements Matrix { private Matrix items[] = null; private int matrixSize[] = { 0, 0 }; private int index0[] = null; private int index1[] = null; public CompoundMatrix(Matrix matrixes[]) { items = new Matrix[matrixes.length]; System.arraycopy(matrixes, 0, items, 0, matrixes.length); for(int i=0; i=0 && x< matrixSize[0]) { return items[index0[x]].contains(index1[x], y); } return false; } /** * @return */ public String getName(int x, int y) { Matrix theMatrix = items[index0[x]]; if(index1[x] == 0 && y == 0){ return theMatrix.getName(0,0); } else{ return null; } } /** * @param string */ public void setName(String string) { } }