public String getUri(int col, int row) { int colStart = getGridColumn(col, row); int rowStart = getGridRow(col, row); return getGrid().getRangeUri(colStart, rowStart, colStart, rowStart); }
public String getUri() { int w = getWidth(); int h = getHeight(); return getGrid().getRangeUri(getGridColumn(0, 0), getGridRow(0, 0), getGridColumn(w - 1, h - 1), getGridRow(w - 1, h - 1)); }
public IGridRegion getRegion() { int left = getGridColumn(0, 0); int top = getGridRow(0, 0); int right = -1; int bottom = -1; if (isNormalOrientation()) { right = getGridColumn(getWidth() - 1, 0); bottom = getGridRow(0, getHeight() - 1); } else { right = getGridColumn(0, getHeight() - 1); bottom = getGridRow(getWidth() - 1, 0); } return new GridRegion(top, left, bottom, right); }