public class LayoutCache extends Object
Constructor and Description |
---|
LayoutCache()
Creates an empty layout cache
|
LayoutCache(Control[] controls)
Creates a cache for the given array of controls
|
Modifier and Type | Method and Description |
---|---|
Point |
computeSize(int controlIndex,
int widthHint,
int heightHint)
Computes the preferred size of the nth control
|
void |
flush()
Flushes the cache.
|
void |
flush(int controlIndex)
Flushes the cache for the given control.
|
SizeCache |
getCache(int idx)
Returns the size cache for the given control
|
void |
setControls(Control[] controls)
Sets the controls that are being cached here.
|
public LayoutCache()
public LayoutCache(Control[] controls)
controls
- public SizeCache getCache(int idx)
idx
- public void setControls(Control[] controls)
controls
- public Point computeSize(int controlIndex, int widthHint, int heightHint)
controlIndex
- index of the control whose size will be computedwidthHint
- width of the control (or SWT.DEFAULT if unknown)heightHint
- height of the control (or SWT.DEFAULT if unknown)public void flush(int controlIndex)
controlIndex
- public void flush()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.