edu.washington.cs.supple.rep
Interface RenderingHint

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

public interface RenderingHint
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 hint
 void addUiObjects(java.util.Collection objects)
          Addes several ui objects at once
 int getStrength()
          Indicates how strong this hint is
 java.util.Vector getUiObjects()
           
 float getWidgetFit(java.util.Vector widgetBags, Widget widget)
          Indicates how well a widget complies with the hint.
 

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 hint

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 hint was originally applied to

getWidgetFit

public float getWidgetFit(java.util.Vector widgetBags,
                          Widget widget)
Indicates how well a widget complies with the hint.

Parameters:
widgetBags - all widget bags which a part of this hint
widget -
Returns:
a float between 0.0 (no match) and 1.0 (perfect match)

getStrength

public int getStrength()
Indicates how strong this hint is

Returns:
an integer between 1 (weakest) and 10 (strongest)