|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.interpreter.type.AbstractCode
org.extex.unit.tex.typesetter.box.AbstractBoxPrimitive
org.extex.unit.tex.typesetter.displace.Moveright
public class Moveright
This class provides an implementation for the primitive
The primitive \moderight takes a box and a length and moves it
rightwards by the amount specified by the length. If the length is negative
then the move is done leftwards.
The primitive \moveright is the counterpart to
The color from the typographic context is taken as foregroud color for the
rule. The default color is black.
\moveright.
The Primitive \moveright
\moveleft.
Syntax
The formal description of this primitive is the following:
〈moveright〉
→ \moveright 〈dimen〉 〈box〉
Examples
\moveright 2em \hbox{abc}
\moveright -1pt \hbox to 120pt {abc}
\moveright 2mm \hbox spread 12pt {abc}
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
Moveright(CodeToken token)
Creates a new object. |
|
| Method Summary | |
|---|---|
Box |
getBox(Context context,
TokenSource source,
Typesetter typesetter,
Token insert)
Getter for the content as Box. |
| Methods inherited from class org.extex.unit.tex.typesetter.box.AbstractBoxPrimitive |
|---|
execute |
| Methods inherited from class org.extex.interpreter.type.AbstractCode |
|---|
getLocalizer, getName, getToken, isIf, isOuter, readResolve, toString, toText, toText |
| 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 Moveright(CodeToken token)
token - the initial token for the primitive| Method Detail |
|---|
public Box getBox(Context context,
TokenSource source,
Typesetter typesetter,
Token insert)
throws HelpingException,
TypesetterException
context - the interpreter contextsource - the source for new tokenstypesetter - the typesetter to useinsert - the token to insert either at the beginning of the box or
after the box has been gathered. If it is null then
nothing is inserted
HelpingException - in case of an error
TypesetterException - in case of an error in the typesetterBoxPrimitive.getBox(
org.extex.interpreter.context.Context,
org.extex.interpreter.TokenSource, org.extex.typesetter.Typesetter,
org.extex.scanner.type.token.Token)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||