@Override public void populateGraphicsContent(Graphics graphics, Dimension canvasSize) { if (null == graphics) return; if (null != canvasSize) setCanvasSize(canvasSize); setWidth(DesignUtil.calculateTableWidth(getGraphics(), getDbModel(), true)); setHeight(DesignUtil.calculateTableHeight(getGraphics(), getDbModel(), true)); if (getX() == 0 && getY() == 0) { setX(canvasSize.width - (canvasSize.width / 2 - getWidth() / 2)); setY(DbexDesignConstants.TABLE_LEFT_MARGIN_WIDTH); } int colStart_X = getX() + 1; int colStart_Y = getY() + DesignUtil.calculateCellHeight(getGraphics()) + 2; int cellHeight = DesignUtil.calculateCellHeight(getGraphics()); if (null != columnDbShapes) { for (int i = 0; i < columnDbShapes.size(); i++) { ColumnDbShape columnDbShape = columnDbShapes.get(i); columnDbShape.setX(colStart_X); columnDbShape.setY(colStart_Y + (cellHeight * (i))); columnDbShape.setWidth(getWidth()); columnDbShape.setHeight(cellHeight); columnDbShape.setGraphics(graphics); columnDbShape.populateGraphicsContent(graphics, canvasSize); } } }