Constructor and Description |
---|
VerticalStack()
Construct a vertical stack.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Item item)
Add this item to the vertical stack, i.e.
|
java.lang.StringBuffer |
genPostScript(PostScriptContext context)
Emit PostScript text that represents the contents of
this vertical stack.
|
int |
getDepth()
Return always 0.
|
int |
getHeight()
Return the overall height of all boxes stacked so far.
|
int |
getWidth()
Return the maximal width seen so far of all individual
items added to this vertical stack.
|
getChar, getFont, getFontSize, getHyphen, getPenalty, getPenaltyFlag, getShrinkability, getStretchability, isBox, isGlue, isKerning, isPenalty, shrink, stretch
public void add(Item item)
item
- item to be added.public int getWidth()
public int getHeight()
public int getDepth()
public java.lang.StringBuffer genPostScript(PostScriptContext context)
genPostScript
in interface Item
genPostScript
in class Box