|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.text.FlowBox
A Geometric object for representing a region on a line of Text. This class adds the
notion of a baseline to Rectangle. Ascent is
the distance above the baseline. Descent is the distance below the baseline.
This class should not be treated as a Rectangle by clients. It is
important to use getters when available for lazy calculation of values.
| Field Summary | |
int |
x
The x location |
int |
y
The y location |
| Constructor Summary | |
FlowBox()
|
|
| Method Summary | |
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 the box in pixels which is above the baseline. |
int |
getBaseline()
Returns the baseline of this Box, which is the y value plus the ascent. |
int |
getDescent()
Returns the amount of the box in pixels which is below the baseline. |
int |
getHeight()
Returns the height |
int |
getWidth()
Returns the width |
void |
makeBaseline(int value)
Used to set the baseline of this FlowBox to the specified value. |
boolean |
requiresBidi()
Returns true if any of the children are bi-directional. |
void |
setWidth(int width)
Sets the width of the box. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public int x
public int y
| Constructor Detail |
public FlowBox()
| Method Detail |
public boolean containsPoint(int x,
int y)
x - Xy - Y
true if the FlowBox contains the pointpublic int getAscent()
public int getBaseline()
y value plus the ascent.
public final int getDescent()
0 is returned.
public int getHeight()
public int getWidth()
public void makeBaseline(int value)
value - the new baselinepublic boolean requiresBidi()
true if the box is bi-directionalpublic void setWidth(int width)
width - the new width
|
Eclipse Draw2d 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||