|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.typesetter.type.node.AbstractNode
org.extex.typesetter.type.node.AbstractExpandableNode
public abstract class AbstractExpandableNode
This node represents a
For the document writer it acts like a kerning 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 org.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. |
boolean |
isHorizontal()
Getter for horizontal. |
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 org.extex.typesetter.type.node.AbstractNode |
|---|
advanceNaturalDepth, advanceNaturalHeight, advanceNaturalWidth, atShipping, clone, computeAdjustment, countChars, getChars, getDepth, getHeight, getLocalizer, getNaturalDepth, getNaturalHeight, getNaturalWidth, getVerticalSize, getWidth, maxDepth, maxHeight, maxWidth, setDepth, setHeight, setWidth, toString, toString, toText, toText |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.extex.typesetter.type.Node |
|---|
atShipping, countChars, getChars, getDepth, getHeight, getNaturalDepth, getNaturalHeight, getNaturalWidth, getVerticalSize, getWidth, setDepth, setHeight, setWidth, toString, toText, 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 mode
public AbstractExpandableNode(FixedGlue size,
boolean horizontal)
size - the actual sizehorizontal - indicator that the glue is used in horizontal mode| Method Detail |
|---|
public void addDepthTo(WideGlue glue)
addDepthTo in interface NodeaddDepthTo in class AbstractNodeglue - the glue to add to.Node.addDepthTo(
org.extex.core.glue.WideGlue)public void addHeightTo(WideGlue glue)
addHeightTo in interface NodeaddHeightTo in class AbstractNodeglue - the glue to add to.Node.addHeightTo(
org.extex.core.glue.WideGlue)public void addWidthTo(WideGlue glue)
addWidthTo in interface NodeaddWidthTo in class AbstractNodeglue - the glue to add to.Node.addWidthTo(
org.extex.core.glue.WideGlue)public FixedGlue getSize()
public boolean isHorizontal()
isHorizontal in interface OrientedNodepublic void setSize(FixedGlue skip)
skip - the new value
public void spreadHeight(FixedDimen height,
FixedGlueComponent sum)
spreadHeight in interface NodespreadHeight in class AbstractNodeheight - the desired heightsum - the total sum of the gluesAbstractNode.spreadHeight(
org.extex.core.dimen.FixedDimen, FixedGlueComponent)
public void spreadWidth(FixedDimen width,
FixedGlueComponent sum)
spreadWidth in interface NodespreadWidth in class AbstractNodewidth - the desired withsum - the total sum of the gluesNode.spreadWidth(
org.extex.core.dimen.FixedDimen,
org.extex.core.glue.FixedGlueComponent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||