com.brunchboy.util.swing.relativelayout
Interface AttributeSource


public interface AttributeSource

This interface is used in conjunction with Constraint so that constraint implementations can have read-only access to all component attributes when evaluating themselves.

Version:
$Id: AttributeSource.java,v 1.1.1.1 2002/05/13 20:51:44 jim Exp $
Author:
James Elliott, jim@brunchboy.com

Method Summary
 int getValue(Attribute attribute)
          Look up the current value of an attribute.
 

Method Detail

getValue

public int getValue(Attribute attribute)
Look up the current value of an attribute.

Parameters:
attribute - the desired attribute.
Returns:
the value that has been established.
Throws:
IllegalStateException - if the component is not known, or if the value has not yet been resolved.