Package org.eclipse.draw2d.text
Class LineBox
java.lang.Object
org.eclipse.draw2d.text.FlowBox
org.eclipse.draw2d.text.CompositeBox
org.eclipse.draw2d.text.LineBox
- Direct Known Subclasses:
- LineRoot,- NestedLine
- Since:
- 2.1
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds the given box and updates properties of this composite box.intReturns the amount of line content in pixels which is above the baseline.intReturns the amount of line content in pixels which is below the baseline.booleanbooleanReturnstrueif any of the children are bi-directional.Methods inherited from class org.eclipse.draw2d.text.CompositeBoxgetRecommendedWidth, setLineTop, setRecommendedWidthMethods inherited from class org.eclipse.draw2d.text.FlowBoxcontainsPoint, getBaseline, getWidth, getX, setWidth, setX
- 
Constructor Details- 
LineBoxpublic LineBox()
 
- 
- 
Method Details- 
addDescription copied from class:CompositeBoxAdds the given box and updates properties of this composite box.- Specified by:
- addin class- CompositeBox
- Parameters:
- child- the child being added
- See Also:
 
- 
getAscentpublic int getAscent()Description copied from class:FlowBoxReturns the amount of line content in pixels which is above the baseline. Ascent and descent are used to space consecutive lines apart. Certain types of line content, such as borders, extend beyond the ascent and descent.
- 
getDescentpublic int getDescent()Description copied from class:FlowBoxReturns the amount of line content in pixels which is below the baseline.- Specified by:
- getDescentin class- FlowBox
- Returns:
- the descent in pixels
- See Also:
 
- 
isOccupiedpublic boolean isOccupied()- Returns:
- trueif this box contains any fragments
 
- 
requiresBidipublic boolean requiresBidi()Description copied from class:FlowBoxReturnstrueif any of the children are bi-directional. Default implementation returns false.- Overrides:
- requiresBidiin class- FlowBox
- Returns:
- trueif the box is bi-directional
- See Also:
 
 
-