public class HDFView extends Object implements ViewManager
The HDFView is designed in such a way that it does not have direct access to the HDF library. All the HDF library access is done through HDF objects. Therefore, the HDFView package depends on the object package but not the library package. The source code of the view package (hdf.view) should be compiled with the library package (hdf.hdflib and hdf.hdf5lib).
Constructor and Description |
---|
HDFView(String root)
Constructs HDFView with a given root directory, where the HDFView is
installed, and opens the given files in the viewer.
|
Modifier and Type | Method and Description |
---|---|
void |
addDataView(DataView dataView)
Data content is displayed, add the dataview to the main windows
|
void |
closeFile(FileFormat theFile) |
DataView |
getDataView(HObject dataObject)
Returns DataView that contains the specified data object.
|
static List<String> |
getListOfImageViews() |
static List<?> |
getListOfMetaDataViews() |
static List<?> |
getListOfPaletteViews() |
static List<?> |
getListOfTableViews() |
static List<String> |
getListOfTreeViews() |
boolean |
getTestState() |
hdf.view.TreeView.TreeView |
getTreeView() |
org.eclipse.swt.widgets.Combo |
getUrlBar() |
static void |
main(String[] args)
The starting point of this application.
|
org.eclipse.swt.widgets.Shell |
openMainWindow(List<File> flist,
int width,
int height,
int x,
int y)
Creates HDFView with a given size, and opens the given files in the viewer.
|
void |
removeDataView(DataView dataView)
Data content is closed, remove the dataview from the main window
|
void |
runMainWindow() |
void |
setTestState(boolean testing)
Set the testing state that determines if HDFView
is being executed for GUI testing.
|
void |
showMetaData(HObject obj) |
void |
showStatus(String msg)
Display feedback message.
|
void |
writeDataToFile(FileFormat theFile)
Write the change of data to the given file.
|
public HDFView(String root)
root
- the directory where the HDFView is installed.public org.eclipse.swt.widgets.Shell openMainWindow(List<File> flist, int width, int height, int x, int y)
flist
- a list of files to open.width
- the width of the app in pixelsheight
- the height of the app in pixelsx
- the coord x of the app in pixelsy
- the coord y of the app in pixelspublic void runMainWindow()
public static final List<String> getListOfTreeViews()
public static final List<String> getListOfImageViews()
public static final List<?> getListOfTableViews()
public static final List<?> getListOfMetaDataViews()
public static final List<?> getListOfPaletteViews()
public hdf.view.TreeView.TreeView getTreeView()
getTreeView
in interface ViewManager
public org.eclipse.swt.widgets.Combo getUrlBar()
public void showStatus(String msg)
showStatus
in interface ViewManager
msg
- the message to display.public void showMetaData(HObject obj)
public void closeFile(FileFormat theFile)
public void writeDataToFile(FileFormat theFile)
theFile
- The file to be updated.public void addDataView(DataView dataView)
ViewManager
addDataView
in interface ViewManager
dataView
- the dataView whose presence in the main view is to be added.public void removeDataView(DataView dataView)
ViewManager
removeDataView
in interface ViewManager
dataView
- the dataView whose presence in the main view is to be removed.public DataView getDataView(HObject dataObject)
ViewManager
getDataView
in interface ViewManager
dataObject
- the object whose presence in the main view is to be tested.public void setTestState(boolean testing)
testing
- Provides SWTBot native dialog compatibility
workarounds if set to true.public boolean getTestState()
public static void main(String[] args)
Usage: java(w) -Dhdf.hdf5lib.H5.hdf5lib="your HDF5 library path" -Dhdf.hdflib.HDFLibrary.hdflib="your HDF4 library path" -root "the directory where the HDFView is installed" [filename] "the file to open"
args
- the command line argumentsCopyright © 2018. All Rights Reserved.