| java.lang.Object org.apache.fop.layoutmgr.ListElement org.apache.fop.layoutmgr.KnuthElement
All known Subclasses: org.apache.fop.layoutmgr.KnuthBox, org.apache.fop.layoutmgr.KnuthPenalty, org.apache.fop.layoutmgr.KnuthGlue,
KnuthElement | abstract public class KnuthElement extends ListElement (Code) | | This is the super class for KnuthBox, KnuthGlue and KnuthPenalty.
It stores information common to all sub classes, and the methods to get it:
the width, a Position and a boolean marking KnuthElements used for some
special feature (for example, the additional elements used to represent
a space when text alignment is right, left or center).
|
Field Summary | |
final public static int | INFINITE The value used as an infinite indicator. |
Constructor Summary | |
protected | KnuthElement(int w, Position pos, boolean bAux) Create a new KnuthElement. |
Method Summary | |
public int | getP() the penalty value of this element, if applicable. | public int | getW() the width of this element. | public int | getY() the stretch value of this element, if applicable. | public int | getZ() the shrink value of this element, if applicable. | public boolean | isAuxiliary() true if this element is an auxiliary one. | public boolean | isUnresolvedElement() |
INFINITE | final public static int INFINITE(Code) | | The value used as an infinite indicator.
|
KnuthElement | protected KnuthElement(int w, Position pos, boolean bAux)(Code) | | Create a new KnuthElement.
This class being abstract, this can be called only by subclasses.
Parameters: w - the width of this element Parameters: pos - the Position stored in this element Parameters: bAux - is this an auxiliary element? |
getP | public int getP()(Code) | | the penalty value of this element, if applicable. |
getW | public int getW()(Code) | | the width of this element. |
getY | public int getY()(Code) | | the stretch value of this element, if applicable. |
getZ | public int getZ()(Code) | | the shrink value of this element, if applicable. |
isAuxiliary | public boolean isAuxiliary()(Code) | | true if this element is an auxiliary one. |
|
|