All Packages  This Package  Class Hierarchy  Class Search  Index

Inner Class matthew.awt.StrutLayout.VectorConstraint
java.lang.Object
   |
   +----matthew.awt.StrutLayout.VectorConstraint

  Summary

public static final class  StrutLayout.VectorConstraint
     extends java.lang.Object
{
          // Fields 5
     public int fromConnector;
     public int hdelta;
     public Component parent;
     public int toConnector;
     public int vdelta;

          // Constructors 1
     public VectorConstraint(Component, int, int, int, int);

}

Represents a strut with arbritrary direction and length.

See Also: StrutLayout.StrutConstraint




  Fields

· parent

Summary  |  Top

   public Component parent


· fromConnector

Summary  |  Top
   public int fromConnector


· toConnector

Summary  |  Top
   public int toConnector


· hdelta

Summary  |  Top
   public int hdelta


· vdelta

Summary  |  Top
   public int vdelta


  Constructors

· VectorConstraint

Summary  |  Top

   public VectorConstraint(Component parent, 
                           int fromConnector, 
                           int toConnector, 
                           int hdelta, 
                           int vdelta) 

Create a strut between connection points on a parent and a child component. The strut's length and direction are determined by a vector of horizontal and vertical components.

Parameter Description
parent The component to attach the child to.
fromConnector The connection point on the parent to attach the strut to (eg. BOTTOM_LEFT).
toConnector The connection point on the child to attach the strut to (eg. TOP_LEFT).
hdelta The amount in the horizontal (x) direction that the strut extends (eg. -n implies left n pixels).
vdelta The amount in the vertical (y) direction that the strut extends (eg. -n implies up n pixels).

See Also: StrutLayout.StrutConstraint



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7