public abstract class FlowBox
extends java.lang.Object
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 and Description |
---|
FlowBox() |
Modifier and Type | Method and Description |
---|---|
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.
|
public abstract boolean containsPoint(int x, int y)
x
- Xy
- Ytrue
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 coordinateCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.