| java.lang.Object org.eclipse.ui.internal.layout.LayoutCache
LayoutCache | public class LayoutCache (Code) | | Caches the preferred sizes of an array of controls
since: 3.0 |
Method Summary | |
public Point | computeSize(int controlIndex, int widthHint, int heightHint) | public void | flush(int controlIndex) Flushes the cache for the given control. | public void | flush() Flushes the cache. | public SizeCache | getCache(int idx) | public void | setControls(Control[] controls) Sets the controls that are being cached here. |
LayoutCache | public LayoutCache()(Code) | | Creates an empty layout cache
|
LayoutCache | public LayoutCache(Control[] controls)(Code) | | Creates a cache for the given array of controls
Parameters: controls - |
computeSize | public Point computeSize(int controlIndex, int widthHint, int heightHint)(Code) | | Computes the preferred size of the nth control
Parameters: controlIndex - index of the control whose size will be computed Parameters: widthHint - width of the control (or SWT.DEFAULT if unknown) Parameters: heightHint - height of the control (or SWT.DEFAULT if unknown) the preferred size of the control |
flush | public void flush(int controlIndex)(Code) | | Flushes the cache for the given control. This should be called if exactly
one of the controls has changed but the remaining controls remain unmodified
Parameters: controlIndex - |
flush | public void flush()(Code) | | Flushes the cache.
|
getCache | public SizeCache getCache(int idx)(Code) | | Returns the size cache for the given control
Parameters: idx - |
setControls | public void setControls(Control[] controls)(Code) | | Sets the controls that are being cached here. If these are the same
controls that were used last time, this method does nothing. Otherwise,
the cache is flushed and a new cache is created for the new controls.
Parameters: controls - |
|
|