|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectedu.washington.cs.supple.render.Solution
| Field Summary | |
protected float |
cost
|
protected FactorStatistics |
factorStatistics
|
protected java.lang.String |
message
|
protected java.awt.Dimension |
originalSizeConstraint
|
protected java.util.Collection |
shortcuts
|
protected Widget |
staticInterface
|
protected java.util.Hashtable |
widgets
|
| Constructor Summary | |
Solution(Widget w)
|
|
Solution(Widget w,
java.lang.String message)
|
|
| Method Summary | |
float |
getCost()
returns the cost of this solution |
FactorStatistics |
getFactorStatistics()
|
java.lang.String |
getMessage()
|
java.awt.Dimension |
getOriginalSizeConstraint()
|
java.util.Collection |
getShortcuts()
returns the list of shortcuts generated for this solution |
Widget |
getStaticInterface()
|
Widget |
getStaticWidgetFor(UiObject object)
Returns a widget for a given UI Object |
boolean |
hasPrimitiveShortcuts()
Checks if the solution contains any primitive shortcuts |
boolean |
hasStaticInterface()
Checks if the static interface part of the solution is set |
boolean |
isEquivalent(Solution s,
java.util.Collection ignoreList)
Checks if the two solutions are equivalent (assigning the same widgets to the same ui objects; it will ignore differences to ui objects listed in the ignore list, though |
protected boolean |
isEquivalent(Widget root,
java.util.Collection ignoreList)
|
void |
setCost(float f)
sets the cost of this solution |
void |
setFactorStatistics(FactorStatistics factorStatistics)
|
void |
setMessage(java.lang.String message)
|
void |
setOriginalSizeConstraint(java.awt.Dimension originalSizeConstraint)
|
void |
setShortcuts(java.util.Collection collection)
Sets the list of shortcuts for this solution |
void |
setStaticInterface(Widget widget)
|
java.util.Enumeration |
staticWidgetEnumeration()
Returns an enumeration (probably not serializable) that lets you iterate over all widgets in the static part of the interface |
java.lang.String |
toString()
|
protected void |
updateMapping()
updates the mapping from UiObjects to widgets |
protected void |
updateMappingHelper(Widget widget)
recursively builds the mapping from ui objects to widgets |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected float cost
protected java.awt.Dimension originalSizeConstraint
protected Widget staticInterface
protected java.util.Collection shortcuts
protected FactorStatistics factorStatistics
protected java.util.Hashtable widgets
protected java.lang.String message
| Constructor Detail |
public Solution(Widget w)
public Solution(Widget w,
java.lang.String message)
| Method Detail |
public Widget getStaticInterface()
public void setStaticInterface(Widget widget)
widget - the root widget of the static part of the interfaceprotected void updateMapping()
protected void updateMappingHelper(Widget widget)
widget - root of the current sub treepublic Widget getStaticWidgetFor(UiObject object)
object - the UI Object
public java.util.Enumeration staticWidgetEnumeration()
public boolean hasStaticInterface()
public float getCost()
public void setCost(float f)
f - the cost of this solutionpublic java.util.Collection getShortcuts()
public void setShortcuts(java.util.Collection collection)
collection - list of shortcuts for this solutionpublic boolean hasPrimitiveShortcuts()
public FactorStatistics getFactorStatistics()
public void setFactorStatistics(FactorStatistics factorStatistics)
factorStatistics - The factorStatistics to set.public java.lang.String getMessage()
public void setMessage(java.lang.String message)
public java.awt.Dimension getOriginalSizeConstraint()
public void setOriginalSizeConstraint(java.awt.Dimension originalSizeConstraint)
public boolean isEquivalent(Solution s,
java.util.Collection ignoreList)
s - ignoreList -
protected boolean isEquivalent(Widget root,
java.util.Collection ignoreList)
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||