public void updateBounds( Root root, double x, double y, double factorW, double factorH ) { delegate.updateBounds( root, x, y, factorW, factorH ); }
public void updateBounds( Root root, double x, double y, double factorW, double factorH ) { delegate.updateBounds( root, x, y, factorW, factorH ); }
/** * Updates all locations and sizes of the {@link Component Components} * which are in the structure of this tree. */ public void updateBounds(){ Insets insets = getContentPane().getInsets(); double factorW = getWidth() - insets.left - insets.right; double factorH = getHeight() - insets.top - insets.bottom; SplitLayoutManager manager = layoutManager.getValue(); if( factorW <= 0 || factorH <= 0 ) { manager.updateBounds(root(), 0, 0, 0, 00); } else { manager.updateBounds(root(), insets.left / factorW, insets.top / factorH, factorW, factorH); } }
/** * Updates all locations and sizes of the {@link Component Components} * which are in the structure of this tree. */ public void updateBounds(){ Insets insets = getContentPane().getInsets(); double factorW = getWidth() - insets.left - insets.right; double factorH = getHeight() - insets.top - insets.bottom; SplitLayoutManager manager = layoutManager.getValue(); if( factorW <= 0 || factorH <= 0 ) { manager.updateBounds(root(), 0, 0, 0, 00); } else { manager.updateBounds(root(), insets.left / factorW, insets.top / factorH, factorW, factorH); } }