matthew.awt
Class StrutLayout.VectorConstraint

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

public static final class StrutLayout.VectorConstraint
extends java.lang.Object

Represents a strut with arbritrary direction and length.

See Also:
StrutLayout.StrutConstraint

Field Summary
 int fromConnector
           
 int hdelta
           
 java.awt.Component parent
           
 int toConnector
           
 int vdelta
           
 
Constructor Summary
StrutLayout.VectorConstraint(java.awt.Component parent, int fromConnector, int toConnector, int hdelta, int vdelta)
          Create a strut between connection points on a parent and a child component.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

public java.awt.Component parent

fromConnector

public int fromConnector

toConnector

public int toConnector

hdelta

public int hdelta

vdelta

public int vdelta
Constructor Detail

StrutLayout.VectorConstraint

public StrutLayout.VectorConstraint(java.awt.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.
Parameters:
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