|
Eclipse Draw2d 3.0.1 |
||||||||||
| 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.
| 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()
By default, a FlowBox is all ascent, and no descent, so the height is returned. |
int |
getDescent()
By default, a simple FlowBox is all ascent, and no descent. |
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. |
| 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 final int getDescent()
public int getHeight()
public int getWidth()
public void makeBaseline(int value)
value - the new baseline
|
Eclipse Draw2d 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||