|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.core.muskip.Mudimen
public class Mudimen
This class provides a dimen value with a length which is a multiple of math units (mu).
| Field Summary | |
|---|---|
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
| Constructor Summary | |
|---|---|
Mudimen()
Creates a new object. |
|
Mudimen(long len)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
add(long value)
Add some other length to the current value. |
Dimen |
getLength()
Getter for length. |
boolean |
isZero()
Check for a zero value. |
void |
multiply(long nom,
long denom)
Multiply the value by an integer fraction. |
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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final long serialVersionUID
| Constructor Detail |
|---|
public Mudimen()
public Mudimen(long len)
len - the length| Method Detail |
|---|
public void add(long value)
value - the value to addpublic Dimen getLength()
public boolean isZero()
true iff the length is zero
public void multiply(long nom,
long denom)
length = length * nom / denom
nom - nominatordenom - denominatorpublic java.lang.String toString()
toString in class java.lang.Objectpublic void toString(java.lang.StringBuffer sb)
sb - the target string buffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||