northDim.x = parentDim.x; southDim.x = parentDim.x;
northDim.x = parentDim.x - (insets.getLeft() + insets.getRight()); southDim.x = parentDim.x - (insets.getLeft() + insets.getRight());
    public void layoutContainer(WidgetContainerAbstract parent) {        if (parent.isVisible() == false)            return;        setupDimensions();        int x = 0, y = 0;        WidgetInsets insets = parent.getInsets();        Vector2f parentDim = new Vector2f();        parentDim.x = parent.getWidth() - insets.getLeft() + insets.getRight();        parentDim.y = parent.getHeight() - insets.getTop() + insets.getBottom();        x += insets.getLeft();        y += insets.getTop();        dsWCE.set((int) westDim.x, (int) centerDim.x, (int) eastDim.x);        distributeSizes(dsWCE, (int) parentDim.x, this.hgap, westWidget != null, centerWidget != null, eastWidget != null);        westDim.x = dsWCE.startSize;        centerDim.x = dsWCE.centerSize;        eastDim.x = dsWCE.endSize;        dsNCS.set((int) southDim.y, (int) centerDim.y, (int) northDim.y);        distributeSizes(this.dsNCS, (int) parentDim.y, this.vgap, southWidget != null, centerWidget != null, northWidget != null);        southDim.y = dsNCS.startSize;        centerDim.y = dsNCS.centerSize;        northDim.y = dsNCS.endSize;        eastDim.y = centerDim.y;        westDim.y = centerDim.y;        northDim.x = parentDim.x;        southDim.x = parentDim.x;        if (centerWidget != null && centerWidget.isVisible()) {            centerWidget.setLocation((int) (x + westDim.x + horzGap(westWidget)), (int) (y + southDim.y + vertGap(southWidget)));            centerWidget.setSize(centerDim);        }        if (eastWidget != null && eastWidget.isVisible()) {            eastWidget.setLocation(                (int) (x + westDim.x + centerDim.x + horzGap(westWidget) + horzGap(centerWidget)),                (int) (y + southDim.y + vertGap(southWidget)));            eastWidget.setSize(eastDim);        }        if (southWidget != null && southWidget.isVisible()) {            southWidget.setLocation(x, y);            southWidget.setSize(southDim);        }        if (northWidget != null && northWidget.isVisible()) {            northWidget.setLocation(x, (int) (y + southDim.y + centerDim.y + vertGap(southWidget) + vertGap(centerWidget)));            northWidget.setSize(northDim);        }        if (westWidget != null && westWidget.isVisible()) {            westWidget.setLocation(x, (int) (y + southDim.y + vertGap(southWidget)));            westWidget.setSize(westDim);        }    }