public class VirtualTuple extends VirtualData
| Constructor and Description |
|---|
VirtualTuple()
Constructs from nothing.
|
VirtualTuple(VirtualData data)
Constructs from a virtual data object.
|
VirtualTuple(VirtualData[] datas)
Constructs from a 1-D array of virtual data objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(VirtualData data)
Adds a component to this tuple.
|
void |
clear()
Clears this instance.
|
Object |
clone()
Clones this instance.
|
VirtualData |
get(int index)
Gets a component of this tuple.
|
DataImpl |
getData(Context context)
Gets the VisAD data object of this tuple, in context.
|
DataFactory |
getDataFactory()
Returns the factory used to create VisAD data objects.
|
MathType |
getType()
Gets the VisAD MathType of this virtual tuple.
|
void |
replace(int index,
VirtualData data)
Replaces a component of this tuple.
|
void |
setDataFactory(DataFactory factory)
Sets the factory used to create the VisAD data object corresponding to
this tuple and contained elements.
|
int |
size()
Returns the number of components in this tuple.
|
getData, toStringpublic VirtualTuple()
public VirtualTuple(VirtualData data)
data - A virtual data object.public VirtualTuple(VirtualData[] datas)
datas - A 1-D array of virtual data objects.public int size()
public void add(VirtualData data)
data - The component to be added.public MathType getType() throws VisADException
getType in class VirtualDatanull if no data items.VisADException - VisAD failure.public VirtualData get(int index) throws ArrayIndexOutOfBoundsException
index - The index of the component to get.index-th component.ArrayIndexOutOfBoundsExceptionpublic void replace(int index,
VirtualData data)
throws ArrayIndexOutOfBoundsException
index - The index of the component to replace.data - The new component.ArrayIndexOutOfBoundsExceptionpublic DataImpl getData(Context context) throws VisADException, RemoteException, IOException
getData in class VirtualDatacontext - The context for retrieving the data object.null
if there is no data.VisADException - Couldn't create necessary VisAD object.RemoteException - Remote access failure.IOException - I/0 failure.public void clear()
public Object clone()
clone in class VirtualDatapublic void setDataFactory(DataFactory factory)
setDataFactory in class VirtualDatafactory - The factory for creating VisAD data objects.public DataFactory getDataFactory()
getDataFactory in class VirtualDataCopyright © 1996–2023 The SSEC Visualization Project. All rights reserved.