|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.text.FlowBox
org.eclipse.draw2d.text.CompositeBox
org.eclipse.draw2d.text.LineBox
org.eclipse.draw2d.text.LineRoot
LineRoot is the top-most container on a line of text displayed in Draw2d. Hence, a
LineRoot can tell you of things like the highest ascent or descent on a line, which
is required to display selection and such. All
fragments know of the LineRoot they belong
to.
| Constructor Summary | |
LineRoot(boolean isMirrored)
Constructor |
|
| Method Summary | |
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. |
| Methods inherited from class org.eclipse.draw2d.text.LineBox |
getAscent, getDescent, isOccupied, requiresBidi |
| Methods inherited from class org.eclipse.draw2d.text.CompositeBox |
getRecommendedWidth, setRecommendedWidth |
| Methods inherited from class org.eclipse.draw2d.text.FlowBox |
getWidth, getX, setWidth, setX |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LineRoot(boolean isMirrored)
isMirrored - true if the line is to be displayed in a mirrored control| Method Detail |
public void add(FlowBox child)
CompositeBox
add in class LineBoxCompositeBox.add(org.eclipse.draw2d.text.FlowBox)public void commit()
public boolean containsPoint(int x,
int y)
containsPoint in class FlowBoxx - Xy - Y
true if the FlowBox contains the pointFlowBox.containsPoint(int, int)public int getBaseline()
FlowBox
getBaseline in class FlowBoxFlowBox.getBaseline()public void setBaseline(int baseline)
baseline - the baselinepublic void setLineTop(int top)
CompositeBox
setLineTop in class CompositeBoxtop - the y coordinateCompositeBox.setLineTop(int)
|
Eclipse Draw2d 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||