org.apache.fop.layoutmgr

Class KnuthBox

Known Direct Subclasses:
KnuthBlockBox, KnuthInlineBox

public class KnuthBox
extends KnuthElement

An instance of this class represents an unbreakable piece of content with fixed width: for example an image, a syllable (but only if letter spacing is constant), ... A KnuthBox is never a feasible breaking point. The represented piece of content is never suppressed. Besides the inherited methods and attributes, this class has some more attributes to store information about the content height and its vertical positioning, and the methods used to get them.

Field Summary

Fields inherited from class org.apache.fop.layoutmgr.KnuthElement

INFINITE

Constructor Summary

KnuthBox(int w, Position pos, boolean bAux)
Create a new KnuthBox.

Method Summary

boolean
isBox()
String
toString()

Methods inherited from class org.apache.fop.layoutmgr.KnuthElement

getP, getW, getY, getZ, isAuxiliary, isUnresolvedElement

Methods inherited from class org.apache.fop.layoutmgr.ListElement

getLayoutManager, getPosition, isBox, isForcedBreak, isGlue, isPenalty, isUnresolvedElement, setPosition

Constructor Details

KnuthBox

public KnuthBox(int w,
                Position pos,
                boolean bAux)
Create a new KnuthBox.
Parameters:
w - the width of this box
pos - the Position stored in this box
bAux - is this box auxiliary?

Method Details

isBox

public boolean isBox()
Overrides:
isBox in interface ListElement

toString

public String toString()
See Also:
java.lang.Object.toString()

Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.