Constructor and Description |
---|
HorizontalBox()
Construct an initially empty horizontal box.
|
HorizontalBox(HorizontalSequence hseq)
Construct a horizontal box from the given sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Item item)
Add the given item to the sequence of items such that
its reference point (beginning point of the base line)
will be positioned at the end point of the base line
of the last item added to this horizontal box.
|
java.lang.StringBuffer |
genPostScript(PostScriptContext context)
Invoke the genPostScript() method on all items belonging
to this horizontal box, beginning with the first box and
finishing with the last box added.
|
int |
getDepth()
Returns the depth of the horizontal box in units (1/1000 points)
which equals the maximal depth of all items added so far.
|
int |
getHeight()
Returns the height of the horizontal box in units (1/1000 points)
which equals the maximal height of all items added so far.
|
int |
getWidth()
Returns the width of the horizontal box in units (1/1000 points)
which equals the sum of all individual widths of the items added so far.
|
java.lang.String |
toString() |
getChar, getFont, getFontSize, getHyphen, getPenalty, getPenaltyFlag, getShrinkability, getStretchability, isBox, isGlue, isKerning, isPenalty, shrink, stretch
public HorizontalBox()
public HorizontalBox(HorizontalSequence hseq)
public void add(Item item)
item
- adds this item to the horizontal box.public int getWidth()
public int getHeight()
public int getDepth()
public java.lang.StringBuffer genPostScript(PostScriptContext context)
genPostScript
in interface Item
genPostScript
in class Box
public java.lang.String toString()
toString
in class java.lang.Object