|
Eclipse Draw2d 3.1 |
||||||||||
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 controlMethod Detail |
public void add(FlowBox child)
CompositeBox
add
in class LineBox
CompositeBox.add(org.eclipse.draw2d.text.FlowBox)
public void commit()
public boolean containsPoint(int x, int y)
containsPoint
in class FlowBox
x
- Xy
- Y
true
if the FlowBox contains the pointFlowBox.containsPoint(int, int)
public int getBaseline()
FlowBox
getBaseline
in class FlowBox
FlowBox.getBaseline()
public void setBaseline(int baseline)
baseline
- the baselinepublic void setLineTop(int top)
CompositeBox
setLineTop
in class CompositeBox
top
- the y coordinateCompositeBox.setLineTop(int)
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |