public class LineRoot extends LineBox
fragments know of the LineRoot
they belong to.| Constructor and Description |
|---|
LineRoot(boolean isMirrored)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(FlowBox child)
Adds the given box and updates properties of this composite box.
|
void |
commit()
Committing a LineRoot will position its children correctly.
|
boolean |
containsPoint(int x,
int y)
A LineRoot cannot be targetted.
|
int |
getBaseline()
Returns y coordinate for the box's baseline.
|
void |
setBaseline(int baseline)
Positions the line vertically by settings its baseline.
|
void |
setLineTop(int top)
Positions the box vertically by setting the y coordinate for the top of
the content of the line.
|
getAscent, getDescent, isOccupied, requiresBidigetRecommendedWidth, setRecommendedWidthpublic LineRoot(boolean isMirrored)
isMirrored - true if the line is to be displayed in a mirrored
controlpublic void add(FlowBox child)
CompositeBoxadd in class LineBoxchild - the child being addedCompositeBox.add(org.eclipse.draw2d.text.FlowBox)public void commit()
public boolean containsPoint(int x,
int y)
containsPoint in class FlowBoxx - Xy - Ytrue if the FlowBox contains the pointFlowBox.containsPoint(int, int)public int getBaseline()
FlowBoxgetBaseline in class FlowBoxFlowBox.getBaseline()public void setBaseline(int baseline)
baseline - the baselinepublic void setLineTop(int top)
CompositeBoxsetLineTop in class CompositeBoxtop - the y coordinateCompositeBox.setLineTop(int)Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.