|
Whole document tree
java.awt.image.renderable
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
protected Vector |
parameters
A Vector of non-source parameters, stored as arbitrary Objects. |
protected Vector |
sources
A Vector of sources, stored as arbitrary Objects. |
| Constructor Summary | |
ParameterBlock()
A dummy constructor. |
|
ParameterBlock(Vector sources)
Constructs a ParameterBlock with a given Vector
of sources. |
|
ParameterBlock(Vector sources,
Vector parameters)
Constructs a ParameterBlock with a given Vector of sources and
Vector of parameters. |
|
| Method Summary | |
ParameterBlock |
add(byte b)
Adds a Byte to the list of parameters. |
ParameterBlock |
add(char c)
Adds a Character to the list of parameters. |
ParameterBlock |
add(double d)
Adds a Double to the list of parameters. |
ParameterBlock |
add(float f)
Adds a Float to the list of parameters. |
ParameterBlock |
add(int i)
Adds a Integer to the list of parameters. |
ParameterBlock |
add(long l)
Adds a Long to the list of parameters. |
ParameterBlock |
add(Object obj)
Adds an object to the list of parameters. |
ParameterBlock |
add(short s)
Adds a Short to the list of parameters. |
ParameterBlock |
addSource(Object source)
Adds an image to end of the list of sources. |
Object |
clone()
Creates a copy of a ParameterBlock. |
byte |
getByteParameter(int index)
A convenience method to return a parameter as a byte. |
char |
getCharParameter(int index)
A convenience method to return a parameter as a char. |
double |
getDoubleParameter(int index)
A convenience method to return a parameter as a double. |
float |
getFloatParameter(int index)
A convenience method to return a parameter as a float. |
int |
getIntParameter(int index)
A convenience method to return a parameter as an int. |
long |
getLongParameter(int index)
A convenience method to return a parameter as a long. |
int |
getNumParameters()
Returns the number of parameters (not including source images). |
int |
getNumSources()
Returns the number of source images. |
Object |
getObjectParameter(int index)
Gets a parameter as an object. |
Class[] |
getParamClasses()
Returns an array of Class objects describing the types of the parameters. |
Vector |
getParameters()
Returns the entire Vector of parameters. |
RenderableImage |
getRenderableSource(int index)
A convenience method to return a source as a RenderableImage. |
RenderedImage |
getRenderedSource(int index)
A convenience method to return a source as a RenderedImage. |
short |
getShortParameter(int index)
A convenience method to return a parameter as a short. |
Object |
getSource(int index)
Returns a source as a general Object. |
Vector |
getSources()
Returns the entire Vector of sources. |
void |
removeParameters()
Clears the list of parameters. |
void |
removeSources()
Clears the list of source images. |
ParameterBlock |
set(byte b,
int index)
Replaces an Object in the list of parameters with a Byte. |
ParameterBlock |
set(char c,
int index)
Replaces an Object in the list of parameters with a Character. |
ParameterBlock |
set(double d,
int index)
Replaces an Object in the list of parameters with a Double. |
ParameterBlock |
set(float f,
int index)
Replaces an Object in the list of parameters with a Float. |
ParameterBlock |
set(int i,
int index)
Replaces an Object in the list of parameters with an Integer. |
ParameterBlock |
set(long l,
int index)
Replaces an Object in the list of parameters with a Long. |
ParameterBlock |
set(Object obj,
int index)
Replaces an Object in the list of parameters. |
ParameterBlock |
set(short s,
int index)
Replaces an Object in the list of parameters with a Short. |
void |
setParameters(Vector parameters)
Sets the entire Vector of parameters to a given Vector. |
ParameterBlock |
setSource(Object source,
int index)
Replaces an entry in the list of source with a new source. |
void |
setSources(Vector sources)
Sets the entire Vector of sources to a given Vector. |
Object |
shallowClone()
Creates a shallow copy of a ParameterBlock. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Vector sources
protected Vector parameters
| Constructor Detail |
public ParameterBlock()
public ParameterBlock(Vector sources)
ParameterBlock with a given Vector
of sources.public ParameterBlock(Vector sources, Vector parameters)
ParameterBlock with a given Vector of sources and
Vector of parameters.| Method Detail |
public Object shallowClone()
ParameterBlock. The source and
parameter Vectors are copied by reference -- additions or
changes will be visible to both versions.ParameterBlock.public Object clone()
ParameterBlock. The source and parameter
Vectors are cloned, but the actual sources and parameters are
copied by reference. This allows modifications to the order
and number of sources and parameters in the clone to be invisible
to the original ParameterBlock. Changes to the shared sources or
parameters themselves will still be visible.ParameterBlock.public ParameterBlock addSource(Object source)
source - an image object to be stored in the source list.public Object getSource(int index)
index - the index of the source to be returned.public ParameterBlock setSource(Object source, int index)
public RenderedImage getRenderedSource(int index)
index - the index of the source to be returned.public RenderableImage getRenderableSource(int index)
index - the index of the source to be returned.public int getNumSources()
public Vector getSources()
public void setSources(Vector sources)
public void removeSources()
public int getNumParameters()
public Vector getParameters()
public void setParameters(Vector parameters)
public void removeParameters()
public ParameterBlock add(Object obj)
public ParameterBlock add(byte b)
public ParameterBlock add(char c)
public ParameterBlock add(short s)
public ParameterBlock add(int i)
public ParameterBlock add(long l)
public ParameterBlock add(float f)
public ParameterBlock add(double d)
public ParameterBlock set(Object obj, int index)
public ParameterBlock set(byte b, int index)
public ParameterBlock set(char c, int index)
public ParameterBlock set(short s, int index)
public ParameterBlock set(int i, int index)
public ParameterBlock set(long l, int index)
public ParameterBlock set(float f, int index)
public ParameterBlock set(double d, int index)
public Object getObjectParameter(int index)
public byte getByteParameter(int index)
null or not a Byte.index - the index of the parameter to be returned.byte value.ClassCastException - if the parameter at the
specified index is not a ByteNullPointerException - if the parameter at the specified
index is nullArrayIndexOutOfBoundsException - if index
is negative or not less than the current size of this
ParameterBlock objectpublic char getCharParameter(int index)
null or not a Character.index - the index of the parameter to be returned.char value.ClassCastException - if the parameter at the
specified index is not a CharacterNullPointerException - if the parameter at the specified
index is nullArrayIndexOutOfBoundsException - if index
is negative or not less than the current size of this
ParameterBlock objectpublic short getShortParameter(int index)
null or not a Short.index - the index of the parameter to be returned.short value.ClassCastException - if the parameter at the
specified index is not a ShortNullPointerException - if the parameter at the specified
index is nullArrayIndexOutOfBoundsException - if index
is negative or not less than the current size of this
ParameterBlock objectpublic int getIntParameter(int index)
null or not an Integer.index - the index of the parameter to be returned.int value.ClassCastException - if the parameter at the
specified index is not a IntegerNullPointerException - if the parameter at the specified
index is nullArrayIndexOutOfBoundsException - if index
is negative or not less than the current size of this
ParameterBlock objectpublic long getLongParameter(int index)
null or not a Long.index - the index of the parameter to be returned.long value.ClassCastException - if the parameter at the
specified index is not a LongNullPointerException - if the parameter at the specified
index is nullArrayIndexOutOfBoundsException - if index
is negative or not less than the current size of this
ParameterBlock objectpublic float getFloatParameter(int index)
null or not a Float.index - the index of the parameter to be returned.float value.ClassCastException - if the parameter at the
specified index is not a FloatNullPointerException - if the parameter at the specified
index is nullArrayIndexOutOfBoundsException - if index
is negative or not less than the current size of this
ParameterBlock objectpublic double getDoubleParameter(int index)
null or not a Double.index - the index of the parameter to be returned.double value.ClassCastException - if the parameter at the
specified index is not a DoubleNullPointerException - if the parameter at the specified
index is nullArrayIndexOutOfBoundsException - if index
is negative or not less than the current size of this
ParameterBlock objectpublic Class[] getParamClasses()
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.