edu.cmu.relativelayout
Class RelativeConstraints

java.lang.Object
  extended by edu.cmu.relativelayout.RelativeConstraints

public class RelativeConstraints
extends Object

A constraint object that associates Bindings with a particular component to be bound.

Author:
Brian Ellis (phoenix1701@gmail.com)

Constructor Summary
RelativeConstraints()
          Constructor for RelativeConstraints.
RelativeConstraints(Binding... theBindings)
          Constructor for RelativeConstraints.
 
Method Summary
 void addBinding(Binding theBinding)
          Adds an Binding to this constraint.
 void addBindings(Binding... theBindings)
          Adds all of the specified Bindings to this constraint.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelativeConstraints

public RelativeConstraints()
Constructor for RelativeConstraints.


RelativeConstraints

public RelativeConstraints(Binding... theBindings)
Constructor for RelativeConstraints. Takes a list of Bindings that will be immediately added to the constraints.

Parameters:
theBindings -
Method Detail

addBinding

public void addBinding(Binding theBinding)
Adds an Binding to this constraint.

Parameters:
theBinding - The Binding to add.

addBindings

public void addBindings(Binding... theBindings)
Adds all of the specified Bindings to this constraint.

Parameters:
theBindings - The Bindings to add.

toString

public String toString()
Overrides:
toString in class Object