|
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.BlockBox
A CompositeBox suitable for containing multiple LineBox fragments.
Method Summary | |
void |
add(FlowBox box)
Adds the given box and updates properties of this composite box. |
boolean |
containsPoint(int x,
int y)
This method must be called on a block that is completely positioned and committed. |
int |
getAscent()
Returns the amount of line content in pixels which is above the baseline. |
int |
getBaseline()
Returns y coordinate for the box's baseline. |
int |
getDescent()
Returns the amount of line content in pixels which is below the baseline. |
int |
getHeight()
|
void |
setHeight(int h)
Sets the height. |
void |
setLineTop(int y)
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.CompositeBox |
getRecommendedWidth, setRecommendedWidth |
Methods inherited from class org.eclipse.draw2d.text.FlowBox |
getWidth, getX, requiresBidi, setWidth, setX |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void add(FlowBox box)
CompositeBox
add
in class CompositeBox
box
- the child being addedCompositeBox.add(FlowBox)
public boolean containsPoint(int x, int y)
FlowBox
containsPoint
in class FlowBox
x
- Xy
- Y
true
if the FlowBox contains the pointFlowBox.containsPoint(int, int)
public int getAscent()
FlowBox
getAscent
in class FlowBox
FlowBox.getAscent()
public int getBaseline()
FlowBox
getBaseline
in class FlowBox
FlowBox.getBaseline()
public int getDescent()
FlowBox
getDescent
in class FlowBox
FlowBox.getDescent()
public int getHeight()
public void setHeight(int h)
h
- The heightpublic void setLineTop(int y)
CompositeBox
setLineTop
in class CompositeBox
y
- 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 |