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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the given box and updates properties of this composite box.int
Returns the amount of line content in pixels which is above the baseline.int
Returns the amount of line content in pixels which is below the baseline.boolean
boolean
Returnstrue
if any of the children are bi-directional.Methods inherited from class org.eclipse.draw2d.text.CompositeBox
getRecommendedWidth, setLineTop, setRecommendedWidth
Methods inherited from class org.eclipse.draw2d.text.FlowBox
containsPoint, getBaseline, getWidth, getX, setWidth, setX
-
Constructor Details
-
LineBox
public LineBox()
-
-
Method Details
-
add
Description copied from class:CompositeBox
Adds the given box and updates properties of this composite box.- Specified by:
add
in classCompositeBox
- Parameters:
child
- the child being added- See Also:
-
getAscent
public int getAscent()Description copied from class:FlowBox
Returns 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. -
getDescent
public int getDescent()Description copied from class:FlowBox
Returns the amount of line content in pixels which is below the baseline.- Specified by:
getDescent
in classFlowBox
- Returns:
- the descent in pixels
- See Also:
-
isOccupied
public boolean isOccupied()- Returns:
true
if this box contains any fragments
-
requiresBidi
public boolean requiresBidi()Description copied from class:FlowBox
Returnstrue
if any of the children are bi-directional. Default implementation returns false.- Overrides:
requiresBidi
in classFlowBox
- Returns:
true
if the box is bi-directional- See Also:
-