edu.washington.cs.supple.rep
Class ImageTypeImpl

java.lang.Object
  extended byedu.washington.cs.supple.rep.SuppleBeanImpl
      extended byedu.washington.cs.supple.rep.BaseType
          extended byedu.washington.cs.supple.rep.SimpleValueTypeImpl
              extended byedu.washington.cs.supple.rep.ImageTypeImpl
All Implemented Interfaces:
java.lang.Cloneable, ImageType, java.io.Serializable, SimpleValueType, SuppleBean, SuppleType, ValueListener

public final class ImageTypeImpl
extends SimpleValueTypeImpl
implements ImageType

Author:
kgajos
See Also:
Serialized Form

Field Summary
protected  int desiredHeight
           
protected  int desiredWidth
           
 
Fields inherited from class edu.washington.cs.supple.rep.BaseType
finalLegalValues, hasOrdering, lastUid, legalValues, legalValuesBinding, likelyValues, likelyValuesBinding, maxNumLegalValues, nullLegal, typicalIndexLength, uid
 
Fields inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl
pcs
 
Constructor Summary
ImageTypeImpl(int desiredWidth, int desiredHeight)
           
ImageTypeImpl(int desiredWidth, int desiredHeight, java.util.Collection likelyValues)
           
ImageTypeImpl(int desiredWidth, int desiredHeight, java.util.Collection likelyValues, java.util.Collection legalValues)
           
ImageTypeImpl(int desiredWidth, int desiredHeight, java.lang.Object[] likelyValues, java.lang.Object[] legalValues)
           
ImageTypeImpl(int desiredWidth, int desiredHeight, ValueBinding likelyVals, ValueBinding legalVals)
           
 
Method Summary
 int getDesiredHeight()
           
 int getDesiredWidth()
           
 boolean hasIndex()
          Index is a short unique summary of the value (which can be used for choosing present values, etc.
 boolean isEnumerable()
          This method tells you if possible values for this type can be (reasonably) enumerated
 boolean isLegalValueClass(java.lang.Class c)
          Check if a class is legal for this type.
 java.lang.String toString()
           
 
Methods inherited from class edu.washington.cs.supple.rep.SimpleValueTypeImpl
getIndex, isPrimitiveType
 
Methods inherited from class edu.washington.cs.supple.rep.BaseType
accept, addLegalValue, addLegalValueHelper, addLegalValues, addLikelyValue, addLikelyValueHelper, bindLegalValues, bindLikelyValues, ensureLegalValues, equals, getIndex, getLegalValues, getLikelyValues, getLongestLegalIndex, getMaxNumLegalValues, getNumLegalValues, getNumLikelyValues, getTypicalIndexLength, getUniqueId, hashCode, hasOrdering, hasSetLegalValues, isFinalLegalValues, isLegalValue, orderValues, setFinalLegalValues, setLegalValues, setLikelyValues, setMaxNumLegalValues, setTypicalIndexLength, toPrettyString, valueChanged, verifyCurrentValue, visitBoundProperties
 
Methods inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl
addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.washington.cs.supple.rep.SuppleType
accept, getIndex, getIndex, getLegalValues, getLikelyValues, getLongestLegalIndex, getMaxNumLegalValues, getNumLegalValues, getNumLikelyValues, getTypicalIndexLength, getUniqueId, hasOrdering, hasSetLegalValues, isFinalLegalValues, isLegalValue, isPrimitiveType, orderValues, toPrettyString, verifyCurrentValue
 
Methods inherited from interface edu.washington.cs.supple.rep.SuppleBean
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

desiredWidth

protected int desiredWidth

desiredHeight

protected int desiredHeight
Constructor Detail

ImageTypeImpl

public ImageTypeImpl(int desiredWidth,
                     int desiredHeight)
Parameters:
desiredWidth -
desiredHeight -

ImageTypeImpl

public ImageTypeImpl(int desiredWidth,
                     int desiredHeight,
                     java.util.Collection likelyValues)
Parameters:
desiredWidth -
desiredHeight -
likelyValues -

ImageTypeImpl

public ImageTypeImpl(int desiredWidth,
                     int desiredHeight,
                     java.util.Collection likelyValues,
                     java.util.Collection legalValues)
Parameters:
desiredWidth -
desiredHeight -
likelyValues -
legalValues -

ImageTypeImpl

public ImageTypeImpl(int desiredWidth,
                     int desiredHeight,
                     java.lang.Object[] likelyValues,
                     java.lang.Object[] legalValues)
Parameters:
desiredWidth -
desiredHeight -
likelyValues -
legalValues -

ImageTypeImpl

public ImageTypeImpl(int desiredWidth,
                     int desiredHeight,
                     ValueBinding likelyVals,
                     ValueBinding legalVals)
Parameters:
desiredWidth -
desiredHeight -
Method Detail

getDesiredWidth

public int getDesiredWidth()
Specified by:
getDesiredWidth in interface ImageType
Returns:
the desired width (in pixels) for the rendering of this image

getDesiredHeight

public int getDesiredHeight()
Specified by:
getDesiredHeight in interface ImageType
Returns:
the desired height (in pixels) for the rendering of this image

isEnumerable

public boolean isEnumerable()
Description copied from interface: SuppleType
This method tells you if possible values for this type can be (reasonably) enumerated

Specified by:
isEnumerable in interface SuppleType
Specified by:
isEnumerable in class BaseType

hasIndex

public boolean hasIndex()
Description copied from interface: SuppleType
Index is a short unique summary of the value (which can be used for choosing present values, etc.

Specified by:
hasIndex in interface SuppleType
Overrides:
hasIndex in class SimpleValueTypeImpl

isLegalValueClass

public boolean isLegalValueClass(java.lang.Class c)
Description copied from interface: SuppleType
Check if a class is legal for this type.

Specified by:
isLegalValueClass in interface SuppleType
Parameters:
c -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class BaseType