org.formaria.swing.layout
Class GuideConstraint

java.lang.Object
  extended by org.formaria.swing.layout.GuideConstraint

public class GuideConstraint
extends java.lang.Object

Constraint specification for the GuidLayout. The constraints are references to the guide to which an individual edge of a component binds

Copyright (c) Formaria Ltd., 2008

$Revision: 1.2 $

License: see License.txt


Field Summary
 int bottom
          the bottom guide id
 int left
          the left guide id
 int right
          the right guide id
 int top
          the top guide id
 
Constructor Summary
GuideConstraint(int l, int t, int r, int b)
          Creates a new instance of GuideConstraint
 
Method Summary
 java.lang.String toString()
          the guide constraint as a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

left

public int left
the left guide id


right

public int right
the right guide id


top

public int top
the top guide id


bottom

public int bottom
the bottom guide id

Constructor Detail

GuideConstraint

public GuideConstraint(int l,
                       int t,
                       int r,
                       int b)
Creates a new instance of GuideConstraint

Parameters:
l - left or x constraint/guide id
t - top or y constraint/guide id
r - right
b - bottom
Method Detail

toString

public java.lang.String toString()
the guide constraint as a string

Overrides:
toString in class java.lang.Object
Returns:
the constraints as a string value