org.apache.fop.layoutmgr
Class KnuthElement
public abstract class KnuthElement
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).
static int | INFINITE - The value used as an infinite indicator.
|
INFINITE
public static final int INFINITE
The value used as an infinite indicator.
KnuthElement
protected KnuthElement(int w,
Position pos,
boolean bAux)
Create a new KnuthElement.
This class being abstract, this can be called only by subclasses.
w
- the width of this elementpos
- the Position stored in this elementbAux
- is this an auxiliary element?
getP
public int getP()
- the penalty value of this element, if applicable.
getW
public int getW()
- the width of this element.
getY
public int getY()
- the stretch value of this element, if applicable.
getZ
public int getZ()
- the shrink value of this element, if applicable.
isAuxiliary
public boolean isAuxiliary()
- true if this element is an auxiliary one.
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.