Methods Summary |
---|
public java.awt.image.renderable.ParameterBlock | add(short s)Wraps the short value in a Short and adds it to the parameter block.
return add(new Short(s));
|
public java.awt.image.renderable.ParameterBlock | add(long l)Wraps the long value in a Long and adds it to the parameter block.
return add(new Long(l));
|
public java.awt.image.renderable.ParameterBlock | add(int i)Wraps the integer value in an Integer and adds it to the parameter block.
return add(new Integer(i));
|
public java.awt.image.renderable.ParameterBlock | add(float f)Wraps the float value in a Float and adds it to the parameter block.
return add(new Float(f));
|
public java.awt.image.renderable.ParameterBlock | add(double d)Wraps the double value in a Double and adds it to the parameter block.
return add(new Double(d));
|
public java.awt.image.renderable.ParameterBlock | add(char c)Wraps the char value in a Character and adds it to the parameter block.
return add(new Character(c));
|
public java.awt.image.renderable.ParameterBlock | add(byte b)Wraps the byte value in a Byte and adds it to the parameter block.
return add(new Byte(b));
|
public java.awt.image.renderable.ParameterBlock | add(java.lang.Object obj)Adds the object to the vector of parameter values
parameters.addElement(obj);
return this;
|
public java.awt.image.renderable.ParameterBlock | addSource(java.lang.Object source)Adds a source to the vector of sources.
sources.addElement(source);
return this;
|
public java.lang.Object | clone()Returns a copy of this ParameterBlock instance.
ParameterBlock replica;
try {
replica = (ParameterBlock)super.clone();
} catch (Exception e) {
return null;
}
if (sources != null) {
replica.setSources((Vector<Object>)(sources.clone()));
}
if (parameters != null) {
replica.setParameters((Vector<Object>)(parameters.clone()));
}
return replica;
|
public byte | getByteParameter(int index)Gets the byte-valued parameter found at the desired index in the vector
of parameter values.
return ((Byte)parameters.elementAt(index)).byteValue();
|
public char | getCharParameter(int index)Gets the char-valued parameter found at the desired index in the vector
of parameter values.
return ((Character)parameters.elementAt(index)).charValue();
|
public double | getDoubleParameter(int index)Gets the double-valued parameter found at the desired index in the vector
of parameter values.
return ((Double)parameters.elementAt(index)).doubleValue();
|
public float | getFloatParameter(int index)Gets the float-valued parameter found at the desired index in the vector
of parameter values.
return ((Float)parameters.elementAt(index)).floatValue();
|
public int | getIntParameter(int index)Gets the integer-valued parameter found at the desired index in the
vector of parameter values.
return ((Integer)parameters.elementAt(index)).intValue();
|
public long | getLongParameter(int index)Gets the long-valued parameter found at the desired index in the vector
of parameter values.
return ((Long)parameters.elementAt(index)).longValue();
|
public int | getNumParameters()Gets the number of elements in the vector of parameters.
return parameters.size();
|
public int | getNumSources()Gets the number of elements in the vector of sources.
return sources.size();
|
public java.lang.Object | getObjectParameter(int index)Gets the object parameter found at the specified index.
return parameters.elementAt(index);
|
public java.lang.Class[] | getParamClasses()Gets an array of classes corresponding to all of the parameter values
found in the array of parameters, in order.
int count = parameters.size();
Class paramClasses[] = new Class[count];
for (int i = 0; i < count; i++) {
paramClasses[i] = parameters.elementAt(i).getClass();
}
return paramClasses;
|
public java.util.Vector | getParameters()Gets the vector of parameters.
return parameters;
|
public java.awt.image.renderable.RenderableImage | getRenderableSource(int index)Gets the renderable source image found at the specified index in the
source array.
return (RenderableImage)sources.elementAt(index);
|
public java.awt.image.RenderedImage | getRenderedSource(int index)Gets the RenderedImage at the specified index from the vector of source
images.
return (RenderedImage)sources.elementAt(index);
|
public short | getShortParameter(int index)Gets the short-valued parameter found at the desired index in the vector
of parameter values.
return ((Short)parameters.elementAt(index)).shortValue();
|
public java.lang.Object | getSource(int index)Gets the source at the specified index.
return sources.elementAt(index);
|
public java.util.Vector | getSources()Gets the vector of sources.
return sources;
|
public void | removeParameters()Clears the vector of parameters.
parameters.removeAllElements();
|
public void | removeSources()Clears the vector of sources.
sources.removeAllElements();
|
public java.awt.image.renderable.ParameterBlock | set(short s, int index)Wraps the short value in a Short and places it in the parameter block at
the specified index.
return set(new Short(s), index);
|
public java.awt.image.renderable.ParameterBlock | set(long l, int index)Wraps the long value in a Long and places it in the parameter block at
the specified index.
return set(new Long(l), index);
|
public java.awt.image.renderable.ParameterBlock | set(int i, int index)Wraps the integer value in an Integer and places it in the parameter
block at the specified index.
return set(new Integer(i), index);
|
public java.awt.image.renderable.ParameterBlock | set(float f, int index)Wraps the float value in a Float and places it in the parameter block at
the specified index.
return set(new Float(f), index);
|
public java.awt.image.renderable.ParameterBlock | set(double d, int index)Wraps the double value in a Double and places it in the parameter block
at the specified index.
return set(new Double(d), index);
|
public java.awt.image.renderable.ParameterBlock | set(char c, int index)Wraps the char value in a Character and places it in the parameter block
at the specified index.
return set(new Character(c), index);
|
public java.awt.image.renderable.ParameterBlock | set(byte b, int index)Wraps the byte value in a Byte and places it in the parameter block at
the specified index.
return set(new Byte(b), index);
|
public java.awt.image.renderable.ParameterBlock | set(java.lang.Object obj, int index)Sets the parameter value object at the specified index.
if (parameters.size() < index + 1) {
parameters.setSize(index + 1);
}
parameters.setElementAt(obj, index);
return this;
|
public void | setParameters(java.util.Vector parameters)Sets the vector of parameters, replacing the existing vector of
parameters, if any.
this.parameters = parameters;
|
public java.awt.image.renderable.ParameterBlock | setSource(java.lang.Object source, int index)Sets the source image at the specified index.
if (sources.size() < index + 1) {
sources.setSize(index + 1);
}
sources.setElementAt(source, index);
return this;
|
public void | setSources(java.util.Vector sources)Sets the vector of sources, replacing the existing vector of sources, if
any.
this.sources = sources;
|
public java.lang.Object | shallowClone()Shallow clone (clones using the superclass clone method).
try {
return super.clone();
} catch (Exception e) {
return null;
}
|