Class sgraphics.layout.Glue
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sgraphics.layout.Glue

java.lang.Object
   |
   +----sgraphics.GlyphImpl
           |
           +----sgraphics.layout.Glue

public class Glue
extends GlyphImpl
implements Axis
Glue is used to create stretchable and shrinkable white space.

Variable Index

 o Fil
Infinite stretch value.

Constructor Index

 o Glue(int, float, float, float, float)
Construct Glue.
 o Glue(Requirement)

Method Index

 o requirements()
Ask for the glyph's geometry requirements.

Variables

 o Fil
  public final static float Fil
Infinite stretch value.

Constructors

 o Glue
  public Glue(int axis,
              float natural,
              float stretch,
              float shrink,
              float align)
Construct Glue.
Parameters:
axis - xAxis or yAxis.
natural - the unstretched or unshrunk size.
stretch - how far the glue can stretch (>= 0).
shrink - how far the glue can shrink (>= 0).
align - the alignment (>= 0 && <= 1).
 o Glue
  public Glue(Requirement requirement)

Methods

 o requirements
  public Requirements requirements()
Ask for the glyph's geometry requirements.
Overrides:
requirements in class GlyphImpl

All Packages  Class Hierarchy  This Package  Previous  Next  Index