|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.typesetter.type.node.AbstractNode
de.dante.extex.typesetter.type.node.AbstractExpandableNode
This node represents a
For the document writer it acts like a kern node. The width contains the distance to add.
The stretchability is adjusted by the typesetter and the width is adjusted accordingly.
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Fields inherited from class de.dante.extex.typesetter.type.node.AbstractNode |
NO_CHARS |
Constructor Summary | |
AbstractExpandableNode(FixedDimen size,
boolean horizontal)
Creates a new object. |
|
AbstractExpandableNode(FixedGlue size,
boolean horizontal)
Creates a new object. |
Method Summary | |
void |
addDepthTo(WideGlue glue)
Add the flexible depth of the current node to the given glue. |
void |
addHeightTo(WideGlue glue)
Add the flexible height of the current node to the given glue. |
void |
addWidthTo(WideGlue glue)
Add the flexible width of the current node to the given glue. |
FixedGlue |
getSize()
Getter for size. |
void |
setSize(FixedGlue skip)
Setter for the size |
void |
spreadHeight(FixedDimen height,
FixedGlueComponent sum)
Adjust the height of a flexible node. |
void |
spreadWidth(FixedDimen width,
FixedGlueComponent sum)
Adjust the width of the flexible node. |
Methods inherited from class de.dante.extex.typesetter.type.node.AbstractNode |
advanceDepth, advanceHeight, advanceWidth, atShipping, computeAdjustment, countChars, getChars, getDepth, getHeight, getLocalizer, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, toString, toString, toText, toText |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.dante.extex.typesetter.type.Node |
visit |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public AbstractExpandableNode(FixedDimen size, boolean horizontal)
size
- the actual sizehorizontal
- indicator that the glue is used in horizontal
modepublic AbstractExpandableNode(FixedGlue size, boolean horizontal)
size
- the actual sizehorizontal
- indicator that the glue is used in horizontal
modeMethod Detail |
public void addDepthTo(WideGlue glue)
Node
addDepthTo
in interface Node
addDepthTo
in class AbstractNode
Node.addDepthTo(
de.dante.extex.interpreter.type.glue.WideGlue)
public void addHeightTo(WideGlue glue)
Node
addHeightTo
in interface Node
addHeightTo
in class AbstractNode
Node.addHeightTo(
de.dante.extex.interpreter.type.glue.WideGlue)
public void addWidthTo(WideGlue glue)
Node
addWidthTo
in interface Node
addWidthTo
in class AbstractNode
Node.addWidthTo(
de.dante.extex.interpreter.type.glue.WideGlue)
public FixedGlue getSize()
public void setSize(FixedGlue skip)
skip
- the new valuepublic void spreadHeight(FixedDimen height, FixedGlueComponent sum)
AbstractNode
spreadHeight
in interface Node
spreadHeight
in class AbstractNode
height
- the desired heightsum
- the total sum of the gluesAbstractNode.spreadHeight(
de.dante.extex.interpreter.type.dimen.FixedDimen,
de.dante.extex.interpreter.type.glue.FixedGlueComponent)
public void spreadWidth(FixedDimen width, FixedGlueComponent sum)
spreadWidth
in interface Node
spreadWidth
in class AbstractNode
width
- the desired withsum
- the total sum of the gluesNode.spreadWidth(
de.dante.extex.interpreter.type.dimen.FixedDimen,
de.dante.extex.interpreter.type.glue.FixedGlueComponent)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |