A B C D E G H I L M P R S T V W X

A

add(Attribute, Attribute) - Method in class com.brunchboy.util.swing.relativelayout.DependencyManager
Records a dependency between attributes.
addComponentConstraint(String, Element, RelativeLayout) - Method in class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder
Utility method called once we have the element corresponding to a constraint that needs to be created.
addConstraint(AttributeType, Constraint) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Add a constraint for this component.
addConstraint(String, AttributeType, Constraint) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Programmatically add a constraint for a component attribute.
addConstraints(Document, RelativeLayout) - Method in class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder
Utility method to do the work of walking the document tree generated by parsing the supplied XML constraint specifications, and turning these into actual constraints to be added to the layout.
addConstraints(File, RelativeLayout) - Method in class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder
Add constraints parsed from a file.
addLayoutComponent(Component, Object) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Add a component to be laid out, with specified constraints.
addLayoutComponent(String, Component) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Add a component to be laid out.
anchorList - Variable in class com.brunchboy.util.swing.relativelayout.AttributeConstraint
Tracks the comma-delimited list of components relative to which this constraint will be computed.
anchorName - Variable in class com.brunchboy.util.swing.relativelayout.AxisConstraint
Tracks the component relative to which this constraint will be computed.
Attribute - class com.brunchboy.util.swing.relativelayout.Attribute.
A simple, immutable class that represents a particular attribute within a RelativeLayout.
Attribute(String, AttributeType) - Constructor for class com.brunchboy.util.swing.relativelayout.Attribute
Create an attribute description.
AttributeAxis - class com.brunchboy.util.swing.relativelayout.AttributeAxis.
A typesafe enumeration of the axes on which attributes exist within a RelativeLayout.
AttributeConstraint - class com.brunchboy.util.swing.relativelayout.AttributeConstraint.
A Constraint that represents a fixed offset from an attribute of another component (or list of components).
AttributeConstraint(String, AttributeType) - Constructor for class com.brunchboy.util.swing.relativelayout.AttributeConstraint
Simplified constructor usable when offset is zero.
AttributeConstraint(String, AttributeType, int) - Constructor for class com.brunchboy.util.swing.relativelayout.AttributeConstraint
Constructor sets the immutable fields.
AttributeSource - interface com.brunchboy.util.swing.relativelayout.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.
AttributeType - class com.brunchboy.util.swing.relativelayout.AttributeType.
A typesafe enumeration of the types of attributes that can be associated with components within a RelativeLayout.
AttributeType(String, AttributeAxis) - Constructor for class com.brunchboy.util.swing.relativelayout.AttributeType
Protected constructor prevents instantiation of this class.
AxisConstraint - class com.brunchboy.util.swing.relativelayout.AxisConstraint.
A Constraint that represents a fractional position along an axis of another component.
AxisConstraint(String, AttributeAxis, double) - Constructor for class com.brunchboy.util.swing.relativelayout.AxisConstraint
Constructor sets the immutable fields.

B

BOTTOM - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Attribute type representing the bottom edge of a component.

C

cause - Variable in class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder.ParseException
Keeps track of the underlying cause, if any.
clearAttributeValues() - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Clear out any existing attribute values in preparation for a new layout operation.
com.brunchboy.util.swing.relativelayout - package com.brunchboy.util.swing.relativelayout
A constraint-based relative layout manager.
ComponentSpecifications - class com.brunchboy.util.swing.relativelayout.ComponentSpecifications.
Keeps track of the specifications that have been provided for a particular component, and is able to determine how to derive the rest from these constraints.
ComponentSpecifications(String) - Constructor for class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Create a new set of specifications for the named component.
ComponentSpecifications(String, Component) - Constructor for class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Create a new set of specifications for the supplied component.
computeAttribute(AttributeType, AttributeSource, boolean, int, int) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Compute the specified attribute, either from a supplied constraint, or by deriving it from other attributes of this component if it was not constrained.
Constraint - interface com.brunchboy.util.swing.relativelayout.Constraint.
Specifies the common features of a constraint, which defines a means of calculating an attribute of a component.
CONSTRAINT_SET_DTD_PUBLIC - Static variable in class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder
The public identifier by which our constraint-set DTD can be resolved.
CONSTRAINT_SET_DTD_SYSTEM - Static variable in class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder
The system identifier by which our constraint-set DTD is loaded.

D

DependencyManager - class com.brunchboy.util.swing.relativelayout.DependencyManager.
Keeps track of all dependencies that have been declared or derived in setting up the component constraints in the RelativeLayout, and can sort them in the proper order for resolution when it's time to lay the components out.
DependencyManager() - Constructor for class com.brunchboy.util.swing.relativelayout.DependencyManager
 
deriveValue(ComponentSpecifications, boolean) - Method in class com.brunchboy.util.swing.relativelayout.AttributeType
Compute the value of this attribute given other attributes from which it can be derived.

E

equals(Object) - Method in class com.brunchboy.util.swing.relativelayout.Attribute
Indicates whether some other object is "equal to" this one.

G

getAllTypes() - Static method in class com.brunchboy.util.swing.relativelayout.AttributeType
Return the set of all known attribute types.
getAttributeValue(AttributeType) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Return an attribute value, assuming it has been resolved.
getAxis() - Method in class com.brunchboy.util.swing.relativelayout.AttributeType
Return the axis on which this attribute type is defined.
getAxisTypes(AttributeAxis) - Static method in class com.brunchboy.util.swing.relativelayout.AttributeType
Return the set of attribute types associated with an axis.
getCause() - Method in class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder.ParseException
Returns the underlying cause of this exception, or null if there was none.
getComponent() - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Return the component being controlled by these specifications.
getComponent() - Method in class com.brunchboy.util.swing.relativelayout.Attribute
Return the name of the component assoicated with this attribute.
getComponentHeight(boolean) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Look up the natural height of the component being managed, if there is one.
getComponentName() - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Return the logical name of the component to which these specifications apply.
getComponentWidth(boolean) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Look up the natural width of the component being managed, if there is one.
getDependencies() - Method in interface com.brunchboy.util.swing.relativelayout.Constraint
Return the attributes on which this constraint depends.
getDependencies() - Method in class com.brunchboy.util.swing.relativelayout.AttributeConstraint
Return the attributes on which this constraint depends.
getDependencies() - Method in class com.brunchboy.util.swing.relativelayout.AxisConstraint
Return the attributes on which this constraint depends.
getInstance(String) - Static method in class com.brunchboy.util.swing.relativelayout.AttributeAxis
Static factory method to look up an axis by name.
getInstance(String) - Static method in class com.brunchboy.util.swing.relativelayout.AttributeType
Static factory that looks up an attribute type by name.
getLayoutAlignmentX(Container) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Returns the alignment along the x axis.
getLayoutAlignmentY(Container) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Returns the alignment along the y axis.
getName() - Method in class com.brunchboy.util.swing.relativelayout.AttributeType
Return name of this attribute type.
getType() - Method in class com.brunchboy.util.swing.relativelayout.Attribute
Return the type of attribute being represented.
getValue(Attribute) - Method in interface com.brunchboy.util.swing.relativelayout.AttributeSource
Look up the current value of an attribute.
getValue(AttributeSource) - Method in interface com.brunchboy.util.swing.relativelayout.Constraint
Compute the value of the constraint, given the specifications on on which it is based.
getValue(AttributeSource) - Method in class com.brunchboy.util.swing.relativelayout.AttributeConstraint
Compute the value of the constraint, given the specifications on on which it is based.
getValue(AttributeSource) - Method in class com.brunchboy.util.swing.relativelayout.AxisConstraint
Compute the value of the constraint, given the specifications on on which it is based.

H

hasConstraint(AttributeType) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Tests whether the specified attribute value has been defined explicitly (i.e. not through derivation).
hashCode() - Method in class com.brunchboy.util.swing.relativelayout.Attribute
Returns a hash code value for the object.
HEIGHT - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Attribute type representing the height of a component.
HORIZONTAL - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeAxis
Axis on which the attributes left, right, width and horizontalCenter apply.
HORIZONTAL_CENTER - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Attribute type representing the horizontal center of a component.

I

invalidateLayout(Container) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.

L

layoutComponent(int, int) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Sets the bounds of the component being managed by these specifications.
layoutContainer(Container) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Lays out the specified container, according to the constraints that have been established.
LEFT - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Attribute type representing the left edge of a component.

M

maximumLayoutSize(Container) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Calculates the maximum size dimensions for the specified container, given the components it contains.
minimumLayoutSize(Container) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Calculates the minimum size dimensions for the specified container, given the components it contains.

P

preferredLayoutSize(Container) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Calculates the preferred size dimensions for the specified container, given the components it contains.

R

RelativeLayout - class com.brunchboy.util.swing.relativelayout.RelativeLayout.
A layout manager that uses a dependency analyzer to support an arbitrary (but consistent and complete) set of relative constraints between its components.
RelativeLayout() - Constructor for class com.brunchboy.util.swing.relativelayout.RelativeLayout
 
removeLayoutComponent(Component) - Method in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Removes the specified component from the layout.
reportDependencies(DependencyManager) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Called the first time layout is being performed after components or constraints have been changed, to build up the master list of dependencies to be sorted.
RIGHT - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Attribute type representing the right edge of a component.
ROOT_NAME - Static variable in class com.brunchboy.util.swing.relativelayout.DependencyManager
The name of the special Component corresponding to the container in which the RelativeLayout is managing components.

S

setAttributeValue(AttributeType, int) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Set an attribute value, which should not yet exist.
setComponent(Component) - Method in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Set the component being controlled by these specifications, once we learn about it.
sort() - Method in class com.brunchboy.util.swing.relativelayout.DependencyManager
Returns the list of dependent attributes, sorted in the order in which they must be resolved.

T

TOP - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Attribute type representing the top edge of a component.
toString() - Method in class com.brunchboy.util.swing.relativelayout.AttributeAxis
Provide a textual representation of the axis for debugging purposes.
toString() - Method in class com.brunchboy.util.swing.relativelayout.AttributeConstraint
Provide a textual representation of the constraint for debugging purposes.
toString() - Method in class com.brunchboy.util.swing.relativelayout.AxisConstraint
Provide a textual representation of the constraint for debugging purposes.
toString() - Method in class com.brunchboy.util.swing.relativelayout.AttributeType
Provide a textual representation of the attribute type for debugging purposes.
toString() - Method in class com.brunchboy.util.swing.relativelayout.Attribute
Provide a textual representation of the attribute type for debugging purposes.

V

validate() - Method in class com.brunchboy.util.swing.relativelayout.DependencyManager
Validates the set of dependencies by verifying that there are no cycles and that every dependency can be resolved.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder
Provides access to the CVS version of this class.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeAxis
Provides access to the CVS version of this class.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeConstraint
Provides access to the CVS version of this class.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.DependencyManager
Provides access to the CVS version of this class.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.AxisConstraint
Provides access to the CVS version of this class.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Provides access to the CVS version of this class.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.ComponentSpecifications
Provides access to the CVS version of this class.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.Attribute
Provides access to the CVS version of this class.
VERSION - Static variable in class com.brunchboy.util.swing.relativelayout.RelativeLayout
Provides access to the CVS version of this class.
VERTICAL - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeAxis
Axis on which the attributes top, bottom,height and verticalCenter apply.
VERTICAL_CENTER - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Attribute type representing the vertical center of a component.

W

WIDTH - Static variable in class com.brunchboy.util.swing.relativelayout.AttributeType
Attribute type representing the width of a component.

X

XmlConstraintBuilder - class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder.
A helper class providing the ability to add constraints to a RelativeLayout by parsing XML definition files.
XmlConstraintBuilder.ParseException - exception com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder.ParseException.
An exception subclass with which we'll wrap any exceptions thrown in parsing the constraints specifications, to shield our clients from details about the libraries we use, unless they want to know about them.
XmlConstraintBuilder.ParseException(String, Throwable) - Constructor for class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder.ParseException
Record the message and cause of a parse exception.
XmlConstraintBuilder() - Constructor for class com.brunchboy.util.swing.relativelayout.XmlConstraintBuilder
Sets up the necessary resources for parsing XML specifications.

A B C D E G H I L M P R S T V W X