java.awt.image.renderable
Class ParameterBlock
java.lang.Object
java.awt.image.renderable.ParameterBlock
- All Implemented Interfaces:
- Serializable, Cloneable
public class ParameterBlock
- extends Object
- implements Cloneable, Serializable
- See Also:
- Serialized Form
sources
protected Vector<Object> sources
parameters
protected Vector<Object> parameters
ParameterBlock
public ParameterBlock()
ParameterBlock
public ParameterBlock(Vector<Object> sources)
ParameterBlock
public ParameterBlock(Vector<Object> sources,
Vector<Object> parameters)
shallowClone
public Object shallowClone()
clone
public Object clone()
- Description copied from class:
Object
- This method may be called to create a new copy of the
Object. The typical behavior is as follows:
o == o.clone()
is false
o.getClass() == o.clone().getClass()
is true
o.equals(o)
is true
However, these are not strict requirements, and may
be violated if necessary. Of the three requirements, the
last is the most commonly violated, particularly if the
subclass does not override Object.equals(Object)
.
If the Object you call clone() on does not implement
Cloneable
(which is a placeholder interface), then
a CloneNotSupportedException is thrown. Notice that
Object does not implement Cloneable; this method exists
as a convenience for subclasses that do.
Object's implementation of clone allocates space for the
new Object using the correct class, without calling any
constructors, and then fills in all of the new field values
with the old field values. Thus, it is a shallow copy.
However, subclasses are permitted to make a deep copy.
All array types implement Cloneable, and override
this method as follows (it should never fail):
public Object clone()
{
try
{
super.clone();
}
catch (CloneNotSupportedException e)
{
throw new InternalError(e.getMessage());
}
}
- Overrides:
clone
in class Object
- Returns:
- a copy of the Object
- See Also:
Cloneable
addSource
public ParameterBlock addSource(Object source)
getSource
public Object getSource(int index)
setSource
public ParameterBlock setSource(Object source,
int index)
getRenderedSource
public RenderedImage getRenderedSource(int index)
getRenderableSource
public RenderableImage getRenderableSource(int index)
getNumSources
public int getNumSources()
getSources
public Vector<Object> getSources()
setSources
public void setSources(Vector<Object> sources)
removeSources
public void removeSources()
getNumParameters
public int getNumParameters()
getParameters
public Vector<Object> getParameters()
setParameters
public void setParameters(Vector<Object> parameters)
removeParameters
public void removeParameters()
add
public ParameterBlock add(Object o)
add
public ParameterBlock add(byte b)
add
public ParameterBlock add(char c)
add
public ParameterBlock add(short s)
add
public ParameterBlock add(int i)
add
public ParameterBlock add(long l)
add
public ParameterBlock add(float f)
add
public ParameterBlock add(double d)
set
public ParameterBlock set(Object o,
int index)
set
public ParameterBlock set(byte b,
int index)
set
public ParameterBlock set(char c,
int index)
set
public ParameterBlock set(short s,
int index)
set
public ParameterBlock set(int i,
int index)
set
public ParameterBlock set(long l,
int index)
set
public ParameterBlock set(float f,
int index)
set
public ParameterBlock set(double d,
int index)
getObjectParameter
public Object getObjectParameter(int index)
getByteParameter
public byte getByteParameter(int index)
getCharParameter
public char getCharParameter(int index)
getShortParameter
public short getShortParameter(int index)
getIntParameter
public int getIntParameter(int index)
getLongParameter
public long getLongParameter(int index)
getFloatParameter
public float getFloatParameter(int index)
getDoubleParameter
public double getDoubleParameter(int index)
getParamClasses
public Class[] getParamClasses()