org.scilab.forge.jlatexmath
Class Glue

java.lang.Object
  extended by org.scilab.forge.jlatexmath.Glue

public class Glue
extends java.lang.Object

Represents glue by its 3 components. Contains the "glue rules".


Constructor Summary
Glue(float space, float stretch, float shrink, java.lang.String name)
           
 
Method Summary
static Box get(int lType, int rType, TeXEnvironment env)
          Creates a box representing the glue type according to the "glue rules" based on the atom types between which the glue must be inserted.
 java.lang.String getName()
          Name of this glue object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Glue

public Glue(float space,
            float stretch,
            float shrink,
            java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Name of this glue object.


get

public static Box get(int lType,
                      int rType,
                      TeXEnvironment env)
Creates a box representing the glue type according to the "glue rules" based on the atom types between which the glue must be inserted.

Parameters:
lType - left atom type
rType - right atom type
env - the TeXEnvironment
Returns:
a box containing representing the glue