|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.text.FlowBox
org.eclipse.draw2d.text.CompositeBox
A FlowBox that can contain other BlockInfos. The contained BlockInfos are called fragments.
| Field Summary | |
protected List |
fragments
The contained fragments. |
| Fields inherited from class org.eclipse.draw2d.text.FlowBox |
x, y |
| Constructor Summary | |
CompositeBox()
|
|
| Method Summary | |
void |
add(FlowBox block)
Adds the specified FlowBox. |
void |
clear()
Removes all owned fragments and invalidates this CompositeBox. |
List |
getFragments()
|
int |
getRecommendedWidth()
Returns the recommended width for this CompositeBox. |
boolean |
isOccupied()
|
protected void |
resetInfo()
resets fields before unioning the data from the fragments. |
void |
setRecommendedWidth(int w)
Sets the recommended width for this CompositeBox. |
protected void |
unionInfo(FlowBox box)
unions the fragment's width, height, and ascent into this composite. |
| Methods inherited from class org.eclipse.draw2d.text.FlowBox |
containsPoint, getAscent, getDescent, getHeight, getWidth, makeBaseline |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected List fragments
| Constructor Detail |
public CompositeBox()
| Method Detail |
public void add(FlowBox block)
block - the FlowBox being addedpublic void clear()
public List getFragments()
public int getRecommendedWidth()
public boolean isOccupied()
Rectangle.isEmpty()protected void resetInfo()
public void setRecommendedWidth(int w)
w - the widthprotected void unionInfo(FlowBox box)
box - the fragment
|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||