|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.type.box.Box
public class Box
This class is used to represent box registers. A box register can either be void or be a horizontal or vertical list.
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
Box(Box box)
Creates a new object. |
|
Box(Context context,
TokenSource source,
Typesetter typesetter,
boolean isHorizontal,
Tokens insert,
GroupType groupType,
Token startToken)
Creates a new object. |
|
Box(NodeList list)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
clear()
Clear the contents of the box. |
FixedDimen |
getDepth()
Getter for the depth of this box. |
FixedDimen |
getHeight()
Getter for the height of this box. |
protected Localizer |
getLocalizer()
Getter for the localizer. |
FixedDimen |
getMove()
Getter for the move parameter. |
NodeList |
getNodes()
Getter for nodes. |
FixedDimen |
getShift()
Getter for the shift parameter. |
FixedDimen |
getWidth()
Getter for the width of this box. |
boolean |
isHbox()
Checks whether the box is a horizontal box. |
boolean |
isVbox()
Checks whether the box is a vertical box. |
boolean |
isVoid()
Checks whether the box is void. |
void |
setDepth(Dimen depth)
Setter for the depth of the box. |
void |
setHeight(FixedDimen height)
Setter for the height of the box. |
void |
setMove(Dimen d)
Setter for the move parameter. |
void |
setShift(Dimen d)
Setter for the shift parameter. |
void |
setWidth(FixedDimen width)
Setter for the width of the box. |
void |
spreadHeight(FixedDimen spread)
Adjust the height of the box if it is not void. |
void |
spreadWidth(FixedDimen spread)
Adjust the width of the box if it is not void. |
java.lang.String |
toString()
|
VerticalListNode |
vsplit(Dimen height,
java.util.logging.Logger logger)
Split off material from a vlist of a certain height. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public Box(Context context,
TokenSource source,
Typesetter typesetter,
boolean isHorizontal,
Tokens insert,
GroupType groupType,
Token startToken)
throws HelpingException,
TypesetterException
context - the processor contextsource - the source for new tokenstypesetter - the typesetter stackisHorizontal - indicator whether a \hbox should be
constructed. The alternative is a \vbox.insert - tokens to insert at the beginning or null
for nonegroupType - the type of the group just enteredstartToken - the token which started the group
HelpingException - in case of an error
TypesetterException - in case of a typesetter error
ConfigurationException - in case of an configuration errorpublic Box(NodeList list)
list - the node listpublic Box(Box box)
box - the box to copy (shallow)| Method Detail |
|---|
public void clear()
public FixedDimen getDepth()
public FixedDimen getHeight()
protected Localizer getLocalizer()
public FixedDimen getMove()
public NodeList getNodes()
public FixedDimen getShift()
public FixedDimen getWidth()
public boolean isHbox()
public boolean isVbox()
public boolean isVoid()
public void setDepth(Dimen depth)
depth - the new widthpublic void setHeight(FixedDimen height)
height - the new widthpublic void setMove(Dimen d)
d - the new move parameterpublic void setShift(Dimen d)
d - the new shift parameterpublic void setWidth(FixedDimen width)
width - the new widthpublic void spreadHeight(FixedDimen spread)
spread - the length to add to the heightpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public void spreadWidth(FixedDimen spread)
spread - the length to add to the width
public VerticalListNode vsplit(Dimen height,
java.util.logging.Logger logger)
throws javax.naming.OperationNotSupportedException
height - the height of the material to cut offlogger - the logger or null
javax.naming.OperationNotSupportedException - in case that the Box is not a
vlist
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||