Package noaa.coastwatch.gui
Class EarthDataViewFactory
java.lang.Object
noaa.coastwatch.gui.EarthDataViewFactory
The
EarthDataViewFactory
uses an EarthDataReader
and variable name to create an EarthDataView
for displaying a view of the variable data.- Since:
- 3.2.0
- Author:
- Peter Hollemans
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EarthDataView
create
(EarthDataReader reader, String varName) Creates a new data view.void
setSubsetSize
(int subsetSize) Sets the grid subset size.
-
Constructor Details
-
EarthDataViewFactory
public EarthDataViewFactory()
-
-
Method Details
-
setSubsetSize
public void setSubsetSize(int subsetSize) Sets the grid subset size. If theEarthDataReader
passed tocreate(noaa.coastwatch.io.EarthDataReader, java.lang.String)
is capable of reading grid subsets via theGridSubsetReader
interface, the specified grid subset dimension will be used to limit the total size of grid data read. The default subset size is set at 256, which is appropriate for previewing grid data.- Parameters:
subsetSize
- the grid subset size.
-
create
Creates a new data view.- Parameters:
reader
- the reader to use for variable data.varName
- the variable name to view.- Returns:
- a new view of the data variable, or null on error.
-