|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.core.muskip.Mudimen
org.extex.core.muskip.Muskip
public class 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(FixedDimen theLength,
FixedGlueComponent theStretch,
FixedGlueComponent theShrink)
Creates a new object. |
|
Muskip(FixedGlueComponent theLength,
FixedGlueComponent theStretch,
FixedGlueComponent theShrink,
boolean kill)
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. |
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. |
| Methods inherited from class org.extex.core.muskip.Mudimen |
|---|
add, getLength |
| 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 length
public Muskip(FixedDimen theLength,
FixedGlueComponent theStretch,
FixedGlueComponent theShrink)
theLength - the natural lengththeStretch - the stretchabilitytheShrink - the shrinkability
public Muskip(FixedGlueComponent theLength,
FixedGlueComponent theStretch,
FixedGlueComponent theShrink,
boolean kill)
theLength - the natural lengththeStretch - the stretchabilitytheShrink - the shrinkabilitykill - the indicator for the killing behaviorpublic Muskip(Muskip x)
x - the other muskip| Method Detail |
|---|
public void add(Muskip ms)
ms - the muglue to addpublic GlueComponent getShrink()
public GlueComponent getStretch()
public boolean isKill()
public boolean isZero()
isZero in class Mudimentrue iff the register is zero
public void multiply(long nom,
long denom)
multiply in class Mudimennom - nominatordenom - denominatorpublic void setKill(boolean kill)
kill - the kill to setpublic java.lang.String toString()
toString in class Mudimenpublic void toString(java.lang.StringBuffer sb)
toString in class Mudimensb - the target string buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||