|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.interpreter.type.glue.WideGlue
This class provides an implementation for glue.
In contrast to Glue
a full vector of all infinities for the
stretchable and shrinkable components are stored. Glue
stores
only the highest factor. In case that during computations – addition or
subtraction – this component reduces to zero the next lower infinity
order should determine the value.
Constructor Summary | |
WideGlue()
Creates a new object. |
Method Summary | |
void |
add(FixedDimen dimen)
Add some length to the natural length. |
void |
add(FixedGlue glue)
Add some more glue to this one. |
void |
add(WideGlue glue)
Add some more glue to this one. |
void |
addStretch(FixedDimen s)
Add some length to the stretch. |
FixedDimen |
getLength()
Getter for the natural length. |
FixedGlueComponent |
getShrink()
Getter for the shrink. |
FixedGlueComponent |
getStretch()
Getter for the stretch. |
void |
set(FixedGlue glue)
Setter for the glue value in all three components |
void |
set(ImmutableDimen len)
Setter for the length. |
void |
set(WideGlue wg)
Setter for the glue value in all three components |
void |
subtract(FixedDimen dimen)
Subtract some length from this one. |
void |
subtract(FixedGlue glue)
Subtract some more glue to this one. |
void |
subtract(WideGlue glue)
Subtract some glue from this one. |
Glue |
toGlue()
Get the Glue representation for this instance. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public WideGlue()
Method Detail |
public void add(FixedDimen dimen)
dimen
- the length to addpublic void add(FixedGlue glue)
glue
- the glue to addpublic void add(WideGlue glue)
glue
- the glue to addpublic void addStretch(FixedDimen s)
s
- the length to addpublic FixedDimen getLength()
public FixedGlueComponent getShrink()
public FixedGlueComponent getStretch()
public void set(FixedGlue glue)
glue
- the glue to copypublic void set(ImmutableDimen len)
len
- the lengthpublic void set(WideGlue wg)
wg
- the glue to copypublic void subtract(FixedGlue glue)
glue
- the glue to addpublic void subtract(FixedDimen dimen)
dimen
- the length to subtractpublic void subtract(WideGlue glue)
glue
- the glue to subtractpublic Glue toGlue()
public java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |