|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.glue.GlueComponent
de.dante.extex.interpreter.type.dimen.Dimen
de.dante.extex.interpreter.type.dimen.ImmutableDimen
This class provides objects of type
Dimen
where all
assignment methods are redefined to produce a run-time exception.
Thus the object is in fact immutable.
Field Summary | |
protected static long |
serialVersionUID
The constant serialVersionUID contains the id for serialization. |
Fields inherited from class de.dante.extex.interpreter.type.dimen.Dimen |
ONE_INCH, ONE_PT, ONE_SP, ZERO_PT |
Fields inherited from class de.dante.extex.interpreter.type.glue.GlueComponent |
MINUS_ONE_FIL, ONE, ONE_FI, ONE_FIL, ONE_FILL, ZERO |
Constructor Summary | |
ImmutableDimen(Dimen value)
Creates a new object. |
|
ImmutableDimen(long value)
Creates a new object. |
Method Summary | |
void |
add(Dimen d)
|
void |
divide(long denom)
Divide the current value with a given number. |
void |
max(Dimen d)
|
void |
multiply(long factor)
Multiply the current value with a given number. |
void |
subtract(FixedDimen d)
Subtract the value of the argument from the current value. |
Methods inherited from class de.dante.extex.interpreter.type.dimen.Dimen |
abs, add, add, getLocalizer, isZero, max, min, negate, parse, set |
Methods inherited from class de.dante.extex.interpreter.type.glue.GlueComponent |
add, attachUnit, copy, eq, ge, getMyLocalizer, getOrder, getValue, gt, le, lt, multiply, ne, parse, parse, set, setValue, subtract, toString, toString, toString, toToks, toToks |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.dante.extex.interpreter.type.glue.FixedGlueComponent |
copy, eq, ge, getOrder, getValue, gt, le, lt, ne, toString, toString, toToks, toToks |
Field Detail |
protected static final long serialVersionUID
Constructor Detail |
public ImmutableDimen(Dimen value)
value
- the value to be storedpublic ImmutableDimen(long value)
value
- the value to be storedMethod Detail |
public void add(Dimen d)
Dimen.add(
de.dante.extex.interpreter.type.dimen.FixedDimen)
public void divide(long denom)
Dimen
|this| → |this| / denom
divide
in class Dimen
denom
- denominator to divide byDimen.divide(long)
public void max(Dimen d)
Dimen.max(
de.dante.extex.interpreter.type.dimen.FixedDimen)
public void multiply(long factor)
Dimen
|this| → |this| * factor
multiply
in class Dimen
factor
- the factor to multiply withDimen.multiply(long)
public void subtract(FixedDimen d)
Dimen
|this| → |this| - |d|
subtract
in class Dimen
d
- the Dimen to subtractDimen.subtract(
de.dante.extex.interpreter.type.dimen.FixedDimen)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |