org.eclipse.draw2d.text
Class BlockBox
java.lang.Object
|
+--org.eclipse.draw2d.text.FlowBox
|
+--org.eclipse.draw2d.text.CompositeBox
|
+--org.eclipse.draw2d.text.BlockBox
- public class BlockBox
- extends CompositeBox
A CompositeBox suitable for containing multiple LineBox fragments.
- Since:
- 2.1
Fields inherited from class org.eclipse.draw2d.text.FlowBox |
x, y |
Method Summary |
void |
add(FlowBox box)
Adds the specified FlowBox. |
void |
setHeight(int h)
Sets the height. |
protected void |
unionInfo(FlowBox box)
Unions the dimensions of this with the dimensions of the passed FlowBox. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlockBox
public BlockBox()
add
public void add(FlowBox box)
- Description copied from class:
CompositeBox
- Adds the specified FlowBox. Updates the width, height, and ascent properties.
- Overrides:
add
in class CompositeBox
- Parameters:
box
- the FlowBox being added- See Also:
CompositeBox.add(FlowBox)
setHeight
public void setHeight(int h)
- Sets the height.
- Parameters:
h
- The height
unionInfo
protected void unionInfo(FlowBox box)
- Unions the dimensions of this with the dimensions of the passed FlowBox.
- Overrides:
unionInfo
in class CompositeBox
- Parameters:
box
- The FlowBox to union this with
Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.