public abstract class LineBox extends CompositeBox
| Constructor and Description |
|---|
LineBox() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(FlowBox child)
Adds the given box and updates properties of this composite box.
|
int |
getAscent()
Returns the amount of line content in pixels which is above the baseline.
|
int |
getDescent()
Returns the amount of line content in pixels which is below the baseline.
|
boolean |
isOccupied() |
boolean |
requiresBidi()
Returns
true if any of the children are bi-directional. |
getRecommendedWidth, setLineTop, setRecommendedWidthcontainsPoint, getBaseline, getWidth, getX, setWidth, setXpublic void add(FlowBox child)
CompositeBoxadd in class CompositeBoxchild - the child being addedCompositeBox.add(org.eclipse.draw2d.text.FlowBox)public int getAscent()
FlowBoxgetAscent in class FlowBoxFlowBox.getAscent()public int getDescent()
FlowBoxgetDescent in class FlowBoxFlowBox.getDescent()public boolean isOccupied()
true if this box contains any fragmentspublic boolean requiresBidi()
FlowBoxtrue if any of the children are bi-directional.
Default implementation returns false.requiresBidi in class FlowBoxtrue if the box is bi-directionalFlowBox.requiresBidi()Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.