edu.washington.cs.supple.rep
Class AbstractRenderingHint

java.lang.Object
  extended byedu.washington.cs.supple.rep.AbstractRenderingHint
All Implemented Interfaces:
RenderingHint, java.io.Serializable
Direct Known Subclasses:
SameRenderingHint

public abstract class AbstractRenderingHint
extends java.lang.Object
implements RenderingHint

Author:
kgajos To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments
See Also:
Serialized Form

Field Summary
protected static int lastUid
           
protected  java.util.Vector objects
           
protected  int strength
           
protected  int uid
           
 
Fields inherited from interface edu.washington.cs.supple.rep.RenderingHint
serialVersionUID
 
Constructor Summary
AbstractRenderingHint(int strength)
           
AbstractRenderingHint(int strength, java.util.Collection objects)
           
 
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
 boolean equals(java.lang.Object o)
          Equality test is based on the unique id assigned to each instance of the BaseType
 int getStrength()
          Indicates how strong this hint is
 java.util.Vector getUiObjects()
           
 int hashCode()
          Hashcode is a function of the uid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.washington.cs.supple.rep.RenderingHint
getWidgetFit
 

Field Detail

strength

protected int strength

objects

protected java.util.Vector objects

uid

protected transient int uid

lastUid

protected static int lastUid
Constructor Detail

AbstractRenderingHint

public AbstractRenderingHint(int strength)

AbstractRenderingHint

public AbstractRenderingHint(int strength,
                             java.util.Collection objects)
Method Detail

addUiObject

public void addUiObject(UiObject object)
Description copied from interface: RenderingHint
Adds a new object to be subject to the rendering hint

Specified by:
addUiObject in interface RenderingHint
Parameters:
object - a UI object

addUiObjects

public void addUiObjects(java.util.Collection objects)
Description copied from interface: RenderingHint
Addes several ui objects at once

Specified by:
addUiObjects in interface RenderingHint
Parameters:
objects - the ui objects to be added

getUiObjects

public java.util.Vector getUiObjects()
Specified by:
getUiObjects in interface RenderingHint
Returns:
the list of objects this hint was originally applied to

getStrength

public int getStrength()
Description copied from interface: RenderingHint
Indicates how strong this hint is

Specified by:
getStrength in interface RenderingHint
Returns:
an integer between 1 (weakest) and 10 (strongest)

hashCode

public int hashCode()
Hashcode is a function of the uid

See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object o)
Equality test is based on the unique id assigned to each instance of the BaseType

Returns:
true if they are the same instance, false otherwise