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, setRecommendedWidth
containsPoint, getBaseline, getWidth, getX, setWidth, setX
public void add(FlowBox child)
CompositeBox
add
in class CompositeBox
child
- the child being addedCompositeBox.add(org.eclipse.draw2d.text.FlowBox)
public int getAscent()
FlowBox
getAscent
in class FlowBox
FlowBox.getAscent()
public int getDescent()
FlowBox
getDescent
in class FlowBox
FlowBox.getDescent()
public boolean isOccupied()
true
if this box contains any fragmentspublic boolean requiresBidi()
FlowBox
true
if any of the children are bi-directional.
Default implementation returns false.requiresBidi
in class FlowBox
true
if the box is bi-directionalFlowBox.requiresBidi()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.