Package org.eclipse.draw2d.text
Class CompositeBox
java.lang.Object
org.eclipse.draw2d.text.FlowBox
org.eclipse.draw2d.text.CompositeBox
A FlowBox that can contain other FlowBoxes. The contained FlowBoxes are
 called fragments.
- Since:
- 2.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidAdds the given box and updates properties of this composite box.intReturns the recommended width for this CompositeBox.abstract voidsetLineTop(int top) Positions the box vertically by setting the y coordinate for the top of the content of the line.voidsetRecommendedWidth(int w) Sets the recommended width for this CompositeBox.Methods inherited from class org.eclipse.draw2d.text.FlowBoxcontainsPoint, getAscent, getBaseline, getDescent, getWidth, getX, requiresBidi, setWidth, setX
- 
Constructor Details- 
CompositeBoxpublic CompositeBox()
 
- 
- 
Method Details- 
addAdds the given box and updates properties of this composite box.- Parameters:
- box- the child being added
 
- 
getRecommendedWidthpublic int getRecommendedWidth()Returns the recommended width for this CompositeBox.- Returns:
- the recommended width
 
- 
setRecommendedWidthpublic void setRecommendedWidth(int w) Sets the recommended width for this CompositeBox.- Parameters:
- w- the width
 
- 
setLineToppublic abstract void setLineTop(int top) Positions the box vertically by setting the y coordinate for the top of the content of the line. For internal use only.- Parameters:
- top- the y coordinate
- Since:
- 3.1
 
 
-