de.dante.extex.interpreter.type.glue
Class WideGlue

java.lang.Object
  extended byde.dante.extex.interpreter.type.glue.WideGlue
Direct Known Subclasses:
DeltaNode, TGlue

public class WideGlue
extends java.lang.Object

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.

Version:
$Revision: 1.6 $
Author:
Gerd Neugebauer

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

WideGlue

public WideGlue()
Creates a new object.

Method Detail

add

public void add(FixedDimen dimen)
Add some length to the natural length.

Parameters:
dimen - the length to add

add

public void add(FixedGlue glue)
Add some more glue to this one.

Parameters:
glue - the glue to add

add

public void add(WideGlue glue)
Add some more glue to this one.

Parameters:
glue - the glue to add

addStretch

public void addStretch(FixedDimen s)
Add some length to the stretch.

Parameters:
s - the length to add

getLength

public FixedDimen getLength()
Getter for the natural length.

Returns:
the natural length

getShrink

public FixedGlueComponent getShrink()
Getter for the shrink.

Returns:
the shrink as glue component

getStretch

public FixedGlueComponent getStretch()
Getter for the stretch.

Returns:
the stretch component

set

public void set(FixedGlue glue)
Setter for the glue value in all three components

Parameters:
glue - the glue to copy

set

public void set(ImmutableDimen len)
Setter for the length. The stretch and shrink components are set to zero.

Parameters:
len - the length

set

public void set(WideGlue wg)
Setter for the glue value in all three components

Parameters:
wg - the glue to copy

subtract

public void subtract(FixedGlue glue)
Subtract some more glue to this one.

Parameters:
glue - the glue to add

subtract

public void subtract(FixedDimen dimen)
Subtract some length from this one.

Parameters:
dimen - the length to subtract

subtract

public void subtract(WideGlue glue)
Subtract some glue from this one.

Parameters:
glue - the glue to subtract

toGlue

public Glue toGlue()
Get the Glue representation for this instance. The stretch and shrink components are reduced to the highest order coefficients.

Returns:
the Glue representation of this instance

toString

public java.lang.String toString()
See Also:
Object.toString()