|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--javax.media.jai.ParameterListImpl
A concrete implementation of the ParameterList
interface. The number, names, Class types and default values are
specified via the associated ParameterListDescriptor
which should be supplied at construction time. This
default implementation should be sufficient for most
ParameterLists and normally need not be sub-classed.
ParameterList,
ParameterListDescriptor,
ParameterListDescriptorImpl, Serialized Form| Constructor Summary | |
ParameterListImpl(ParameterListDescriptor descriptor)
Creates a ParameterListImpl using the specified
ParameterListDescriptor. |
|
| Method Summary | |
boolean |
getBooleanParameter(String paramName)
A convenience method to return a parameter as a boolean. |
byte |
getByteParameter(String paramName)
A convenience method to return a parameter as a byte. |
char |
getCharParameter(String paramName)
A convenience method to return a parameter as a char. |
double |
getDoubleParameter(String paramName)
A convenience method to return a parameter as a double. |
float |
getFloatParameter(String paramName)
A convenience method to return a parameter as a float. |
int |
getIntParameter(String paramName)
A convenience method to return a parameter as an int. |
long |
getLongParameter(String paramName)
A convenience method to return a parameter as a long. |
Object |
getObjectParameter(String paramName)
Gets a named parameter as an Object. |
ParameterListDescriptor |
getParameterListDescriptor()
Returns the associated ParameterListDescriptor. |
short |
getShortParameter(String paramName)
A convenience method to return a parameter as a short. |
ParameterList |
setParameter(String paramName,
boolean b)
Sets a named parameter to a boolean value. |
ParameterList |
setParameter(String paramName,
byte b)
Sets a named parameter to a byte value. |
ParameterList |
setParameter(String paramName,
char c)
Sets a named parameter to a char value. |
ParameterList |
setParameter(String paramName,
double d)
Sets a named parameter to a double value. |
ParameterList |
setParameter(String paramName,
float f)
Sets a named parameter to a float value. |
ParameterList |
setParameter(String paramName,
int i)
Sets a named parameter to an int value. |
ParameterList |
setParameter(String paramName,
long l)
Sets a named parameter to a long value. |
ParameterList |
setParameter(String paramName,
Object obj)
Sets a named parameter to an Object value. |
ParameterList |
setParameter(String paramName,
short s)
Sets a named parameter to a short value. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ParameterListImpl(ParameterListDescriptor descriptor)
ParameterListImpl using the specified
ParameterListDescriptor. Initializes the
parameters to the defaults (could be
ParameterListDescriptor.NO_PARAMETER_DEFAULT)
specified by descriptordescriptor - a ParameterListDescriptor describing
the parameter names, defaults etc.null| Method Detail |
public ParameterListDescriptor getParameterListDescriptor()
ParameterListDescriptor.
public ParameterList setParameter(String paramName,
byte b)
byte value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.b - a byte value for the parameter.Byte
public ParameterList setParameter(String paramName,
boolean b)
boolean value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.b - a boolean value for the parameter.Boolean
public ParameterList setParameter(String paramName,
char c)
char value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.c - a char value for the parameter.Character
public ParameterList setParameter(String paramName,
short s)
short value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.s - a short value for the parameter.- Throws:
- IllegalArgumentException - if paramName is null.
- IllegalArgumentException - if there is no parameter with the
specified name.
- IllegalArgumentException - if the class type of parameter
pointed to by the paramName is not a
Short- IllegalArgumentException - if the parameter value is invalid.
public ParameterList setParameter(String paramName,
int i)
int value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.i - an int value for the parameter.Integer
public ParameterList setParameter(String paramName,
long l)
long value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.l - a long value for the parameter.Long
public ParameterList setParameter(String paramName,
float f)
float value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.f - a float value for the parameter.Float
public ParameterList setParameter(String paramName,
double d)
double value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.d - a double value for the parameter.Double
public ParameterList setParameter(String paramName,
Object obj)
Object value.
Checks are made to verify that the parameter is of the right
Class type and that the value is valid.paramName - a String naming a parameter.obj - an Object value for the parameter.public Object getObjectParameter(String paramName)
Object. Parameters
belonging to a primitive type, such as int, will be returned as a
member of the corresponding wrapper class, such as
IntegerparamName - the name of the parameter to be returned.public byte getByteParameter(String paramName)
byte.paramName - the name of the parameter to be returned.public boolean getBooleanParameter(String paramName)
boolean.paramName - the name of the parameter to be returned.public char getCharParameter(String paramName)
char.paramName - the name of the parameter to be returned.public short getShortParameter(String paramName)
short.paramName - the name of the parameter to be returned.public int getIntParameter(String paramName)
int.paramName - the name of the parameter to be returned.public long getLongParameter(String paramName)
long.paramName - the name of the parameter to be returned.public float getFloatParameter(String paramName)
float.paramName - the name of the parameter to be returned.public double getDoubleParameter(String paramName)
double.paramName - the name of the parameter to be returned.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||