EditorFigNode node = (EditorFigNode) getGroup();
ModuleFigNode node = (ModuleFigNode) getGroup();
    public void calcBounds() {        super.calcBounds();        // calculate x, y to center in the parent node.        if (getGroup() != null && getGroup() instanceof FigLabelNode) {            EditorFigNode node = (EditorFigNode) getGroup();            Rectangle rect = node.getHandleBox();            int x = (int) rect.getX();            int y = (int) rect.getY();            int w = (int) rect.getWidth();            int h = (int) rect.getHeight();            _x = x + w / 2 - _w / 2;            _y = y + h / 2 - _h / 2;        }    }