visad.data.netcdf.in
Class VirtualText
java.lang.Object
visad.data.netcdf.in.VirtualData
visad.data.netcdf.in.VirtualScalar
visad.data.netcdf.in.VirtualText
public class VirtualText
- extends VirtualScalar
Provides support for a virtual VisAD Scalar.
Constructor Summary |
VirtualText(ScalarType type,
ucar.netcdf.Variable var)
Constructs from a scalar type and a 2-D char netCDF variable |
Methods inherited from class visad.data.netcdf.in.VirtualScalar |
getData, getDataFactory, getDoubles, getRangeSet, getScalarType, getType, getUnit, getVariable, getVetter, isReal, setDataFactory |
VirtualText
public VirtualText(ScalarType type,
ucar.netcdf.Variable var)
- Constructs from a scalar type and a 2-D char netCDF variable
- Parameters:
type
- The type of the nested scalar.var
- The 1-D netCDF variable.
getScalar
protected Scalar getScalar(Context context)
throws VisADException,
InvalidContextException,
IOException
- Gets the Scalar object corresponding to this virtual, data
object.
- Specified by:
getScalar
in class VirtualScalar
- Returns:
- The VisAD Scalar corresponding to this
virtual, data object.
- Throws:
InvalidContextException
- if the indicial context is invalid.
VisADException
- Couldn't create necessary VisAD object.
RemoteException
- if a Java RMI failure occurs.
IOException
- I/O failure.
clone
public Object clone()
- Clones this instance.
- Specified by:
clone
in class VirtualData
- Returns:
- A (deep) clone of this instance.