|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.muskip.Mudimen
de.dante.extex.interpreter.type.muskip.Muskip
This class provides a skip value with a variable length of order 0. The actual length is a multiple of math units (mu).
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Constructor Summary | |
Muskip()
Creates a new object. |
|
Muskip(boolean kill)
Creates a new object. |
|
Muskip(FixedDimen theLength)
Creates a new object. |
|
Muskip(FixedGlueComponent theLength,
FixedGlueComponent theStretch,
FixedGlueComponent theShrink)
Creates a new object. |
|
Muskip(long theLength)
Creates a new object. |
|
Muskip(Muskip x)
Creates a new object. |
Method Summary | |
void |
add(Muskip ms)
Add another muglue to this one. |
GlueComponent |
getShrink()
Getter for shrink. |
GlueComponent |
getStretch()
Getter for stretch. |
boolean |
isKill()
Getter for kill. |
boolean |
isZero()
Check that the muskip has natural length zero and no stretch and shrink component. |
void |
multiply(long nom,
long denom)
Multiply all components by an integer fraction. |
static Muskip |
parse(Context context,
TokenSource source,
Typesetter typesetter)
Creates a new object and fills it from a token stream. |
void |
setKill(boolean kill)
Setter for kill. |
java.lang.String |
toString()
Return the string representation of the instance. |
void |
toString(java.lang.StringBuffer sb)
Append the string representation of the instance to a string buffer. |
Tokens |
toToks(TokenFactory factory)
Determine the printable representation of the object. |
Methods inherited from class de.dante.extex.interpreter.type.muskip.Mudimen |
add, getLength, parseMudimen, scanMu, toToks |
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 Muskip()
public Muskip(boolean kill)
kill
- the kill indicatorpublic Muskip(FixedDimen theLength)
theLength
- the natural lengthpublic Muskip(long theLength)
theLength
- the natural lengthpublic Muskip(FixedGlueComponent theLength, FixedGlueComponent theStretch, FixedGlueComponent theShrink)
theLength
- the natural lengththeStretch
- the stretchabilitytheShrink
- the shrinkabilitypublic Muskip(Muskip x)
x
- the other muskipMethod Detail |
public static Muskip parse(Context context, TokenSource source, Typesetter typesetter) throws InterpreterException
context
- the processor contextsource
- the source for new tokenstypesetter
- the typesetter
InterpreterException
- in case of an errorpublic void add(Muskip ms)
ms
- the muglue to addpublic GlueComponent getShrink()
public GlueComponent getStretch()
public boolean isKill()
public boolean isZero()
isZero
in class Mudimen
true
iff the register is zeropublic void multiply(long nom, long denom)
multiply
in class Mudimen
nom
- nominatordenom
- denominatorpublic void setKill(boolean kill)
kill
- the kill to setpublic java.lang.String toString()
toString
in class Mudimen
public void toString(java.lang.StringBuffer sb)
toString
in class Mudimen
sb
- the target string bufferpublic Tokens toToks(TokenFactory factory) throws GeneralException
factory
- the factory to get the tokens from
GeneralException
- in case of an error
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |