edu.washington.cs.supple.rep
Interface RenderingConstraint

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AbstractRenderingConstraint

public interface RenderingConstraint
extends java.io.Serializable

Author:
kgajos

Field Summary
static long serialVersionUID
           
 
Method Summary
 void addUiObject(UiObject object)
          Adds a new object to be subject to the rendering constraint
 void addUiObjects(java.util.Collection objects)
          Addes several ui objects at once
 RenderingConstraintEnforcer getEnforcer()
          Returns the appropriate enforcer for a given type of constraint
 java.util.Vector getUiObjects()
           
 boolean isWidgetConsistent(java.util.Vector widgetBags, Widget widget)
          Indicates how well a widget complies with the constraint.
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

addUiObject

public void addUiObject(UiObject object)
Adds a new object to be subject to the rendering constraint

Parameters:
object - a UI object

addUiObjects

public void addUiObjects(java.util.Collection objects)
Addes several ui objects at once

Parameters:
objects - the ui objects to be added

getUiObjects

public java.util.Vector getUiObjects()
Returns:
the list of objects this constraint was applied to

isWidgetConsistent

public boolean isWidgetConsistent(java.util.Vector widgetBags,
                                  Widget widget)
Indicates how well a widget complies with the constraint.

Parameters:
widgetBags - all widget bags which a part of this hint
widget -
Returns:
true if the widget is consistent, false otherwise

getEnforcer

public RenderingConstraintEnforcer getEnforcer()
Returns the appropriate enforcer for a given type of constraint

Returns: