|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.forms.widgets.LayoutCache
public class LayoutCache
Caches the preferred sizes of an array of controls
| Constructor Summary | |
|---|---|
LayoutCache()
Creates an empty layout cache |
|
LayoutCache(Control[] controls)
Creates a cache for the given array of controls |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutCache()
public LayoutCache(Control[] controls)
controls - | Method Detail |
|---|
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()
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.