public void updateBounds( Root root, double x, double y, double factorW, double factorH ) { root.updateBounds( x, y, 1, 1, factorW, factorH, true ); } }
public void updateBounds( Root root, double x, double y, double factorW, double factorH ) { root.updateBounds( x, y, 1, 1, factorW, factorH, true ); } }
/** * Updates the bounds of <code>root</code> and all its children and does * consider all {@link ResizeRequest}. * @param root the root element of a tree to update * @param x the left coordinate of <code>root</code> * @param y the top coordinate of <code>root</code> * @param factorW a factor all x-coordinates have to be multiplied with * in order to get the pixel coordinates * @param factorH a factor all y-coordinates have to be multiplied with * in order to get the pixel coordinates */ public void updateBoundsLocked( Root root, double x, double y, double factorW, double factorH ){ ResizeElement<T> element = toElement( null, root ); element.prepareResize(); root.updateBounds( x, y, 1, 1, factorW, factorH, false ); element.prepareRequests(); element.adapt( 0, 0 ); root.updateBounds( x, y, 1, 1, factorW, factorH, true ); }
/** * Updates the bounds of <code>root</code> and all its children and does * consider all {@link ResizeRequest}. * @param root the root element of a tree to update * @param x the left coordinate of <code>root</code> * @param y the top coordinate of <code>root</code> * @param factorW a factor all x-coordinates have to be multiplied with * in order to get the pixel coordinates * @param factorH a factor all y-coordinates have to be multiplied with * in order to get the pixel coordinates */ public void updateBoundsLocked( Root root, double x, double y, double factorW, double factorH ){ ResizeElement<T> element = toElement( null, root ); element.prepareResize(); root.updateBounds( x, y, 1, 1, factorW, factorH, false ); element.prepareRequests(); element.adapt( 0, 0 ); root.updateBounds( x, y, 1, 1, factorW, factorH, true ); }
root.updateBounds( x, y, w, h, factorW, factorH, false ); int pixels = applyPersistentSizes( map, false );