|
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
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.
Constructor Summary | |
FlowBox()
|
Method Summary | |
abstract boolean |
containsPoint(int x,
int y)
This method must be called on a block that is completely positioned and committed. |
abstract int |
getAscent()
Returns the amount of line content in pixels which is above the baseline. |
abstract int |
getBaseline()
Returns y coordinate for the box's baseline. |
abstract int |
getDescent()
Returns the amount of line content in pixels which is below the baseline. |
int |
getWidth()
Returns the width of the box. |
int |
getX()
Returns the X coordinate of the box. |
boolean |
requiresBidi()
Returns true if any of the children are bi-directional. |
void |
setWidth(int width)
Sets the width of the box. |
void |
setX(int x)
Sets the x coordinate for this box. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FlowBox()
Method Detail |
public abstract boolean containsPoint(int x, int y)
x
- Xy
- Y
true
if the FlowBox contains the pointpublic abstract int getAscent()
public abstract int getBaseline()
public abstract int getDescent()
getAscent()
public int getWidth()
public int getX()
public boolean requiresBidi()
true
if any of the children are bi-directional. Default
implementation returns false.
true
if the box is bi-directionalpublic void setWidth(int width)
width
- the new widthpublic void setX(int x)
x
- the x coordinate
|
Eclipse Draw2d 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |