@Override public int getMaximumHeight(int wHint) { return grid.getHeight()[2]; }
@Override public int getMinimumHeight(int wHint) { return grid.getHeight()[0]; }
@Override public int getPreferredHeight(int wHint) { return grid.getHeight()[1]; }
@Override public Vector2i getPreferredContentSize(Canvas canvas, Vector2i sizeHint) { int[] bounds = {0, 0, canvas.size().x, canvas.size().y}; layoutContainer(canvas, bounds); return new Vector2i(grid.getWidth()[1], grid.getHeight()[1]); }
public final int[] getHeight() { return getHeight(lastRefWidth); }
private Dimension getSizeImpl(Container parent, int sizeType) { checkCache(parent); Insets i = parent.getInsets(); int w = LayoutUtil.getSizeSafe(grid != null ? grid.getWidth() : null, sizeType) + i.left + i.right; int h = LayoutUtil.getSizeSafe(grid != null ? grid.getHeight() : null, sizeType) + i.top + i.bottom; return new Dimension(w, h); }
@Override protected Point computeSize(Composite parent, int wHint, int hHint, boolean flushCache) { checkCache(parent); int w = LayoutUtil.getSizeSafe(grid != null ? grid.getWidth() : null, LayoutUtil.PREF); int h = LayoutUtil.getSizeSafe(grid != null ? grid.getHeight() : null, LayoutUtil.PREF); return new Point(w, h); }
protected double computeHeight(double refWidth, int type) { int ins = getVerIns(); int refSize = (int) Math.ceil(refWidth != -1 ? refWidth : getWidth()) - ins; return ins + LayoutUtil.getSizeSafe(getGrid().getHeight(refSize), type); }
long newSize = grid.getHeight()[1] + (((long) grid.getWidth()[1]) << 32); if (lastSize != newSize) { lastSize = newSize;
long newSize = lGrid.getHeight()[1] + (((long) lGrid.getWidth()[1]) << 32); if (lastSize != newSize) { lastSize = newSize;