All Packages Class Hierarchy This Package Previous Next Index
Class ncsa.hdf.jhv.JHV
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----ncsa.hdf.jhv.JHV
- public class JHV
- extends Applet
- implements ActionListener, ItemListener
JHV displays the HDF tree structure and data content
Modifications:
1. Keep track of current HDF directory, and the selected HDF file will be
located under previous selected HDF file directory. Also improve the
"Load File" and let it do more work than "Open file". 08/08/97 xlu
2. Support lagre HDF file access, more changes. 09/06/97 xlu
3. Separate hdf file access from the UI. 01/14/98, Peter Cao
4. Support remote file access. 01/14/98, Peter Cao
5. Add documentation. 01/14/98, Peter Cao
- Version:
- 1.00 8/10/97
- Author:
- Xinjian LU, HDF Group, NCSA
-
ANIMATION
- animation view selection
-
DEFAULT
- default view selection
-
DEVELOPER
- the developer's display level
-
dispLevel
-
-
hdf
- the generic hdf object
-
hdfObjQueue
- the queue to store the hdf object
-
HOSTHEADER
- the host header in the configuration file
-
LAYER
- layer view selection
-
nl
- new line feed plus carrage return
-
NL
- the new line charactor
-
USER
- the user's display level
-
JHV()
-
-
actionPerformed(ActionEvent)
- handles the viewer action events.
-
addHostMenuItems()
-
-
createDisplayPanel()
- create the new display panel for JHV
-
createFileMenu(String)
- create a open menu by provided title
-
createHdbMenuBar()
- create menubar for jhv viewer
-
createHelpMenu(String)
- create a help menu with specific menu title
-
createOptionMenu(String)
- create an option menu with specific menu title
-
createViewMenu(String)
- create a view menu by provided title
-
extractHdfObj(Queue, Vector)
- extract the HDF object node into Vector
-
getFrame()
-
-
getHDFObject(HDFObjectNode)
- get the HDFObject from server
-
getHDFObject(String, int, String, HDFObjectNode)
- get the HDFObject from server
-
getHostList()
-
-
getTree()
- Returns the HDFTree
-
init(String)
- Initialize jhv with specified hdf file
-
isDirectory(String)
-
-
isFile(String)
- Determines whether the specified string is a local file
-
isLocal()
- Is local access
-
isMac()
- Is the current platform MacOS
-
itemStateChanged(ItemEvent)
- java.awt.event.ItemListener stuff
-
main(String[])
- It is called automatically by the system the application is started.
-
openFile()
- opens a local file
-
openFile(String, String)
- open a file from a remote machine
-
readHosts(String)
-
reads server host list from jhv configuration file
-
removeHostMenuItems()
-
-
setHostList(List)
-
-
setJHVFrame(Frame)
-
-
setup(String)
- reset the viewer and display the HDF hierarchy
when a new file is selected.
-
updateServerHosts(List)
- updates the current host list and change the configuration file
-
writeHosts(String, List)
- writes the server host list into the jhv configuration file
which also deletes the old host list from the configuration file
USER
public static final int USER
- the user's display level
DEVELOPER
public static final int DEVELOPER
- the developer's display level
DEFAULT
public static final int DEFAULT
- default view selection
ANIMATION
public static final int ANIMATION
- animation view selection
LAYER
public static final int LAYER
- layer view selection
nl
public static char nl[]
- new line feed plus carrage return
NL
public static String NL
- the new line charactor
HOSTHEADER
public static String HOSTHEADER
- the host header in the configuration file
hdfObjQueue
public Queue hdfObjQueue
- the queue to store the hdf object
hdf
public HDFLibrary hdf
- the generic hdf object
dispLevel
public int dispLevel
JHV
public JHV()
main
public static void main(String args[])
- It is called automatically by the system the application is started.
init
public void init(String hdffile)
- Initialize jhv with specified hdf file
- Parameters:
- hdffile - the name of hdf file
actionPerformed
public void actionPerformed(ActionEvent e)
- handles the viewer action events.
modified by Peter Cao (xcao@ncsa.uiuc.edu) on Jan. 13, 1998
setup
public void setup(String hdfFileName)
- reset the viewer and display the HDF hierarchy
when a new file is selected.
- Parameters:
- hdfFileName - the name of the hdf file
createDisplayPanel
public Panel createDisplayPanel()
- create the new display panel for JHV
- Returns:
- the panel for HDF Browser
isMac
public boolean isMac()
- Is the current platform MacOS
isLocal
public boolean isLocal()
- Is local access
getTree
public HDFTree getTree()
- Returns the HDFTree
extractHdfObj
public void extractHdfObj(Queue hdfQueue,
Vector vec)
- extract the HDF object node into Vector
- Parameters:
- hdfQueue - the HDF object node Queue
- vec - the vector to store the HDF object node sequencely
createHdbMenuBar
public MenuBar createHdbMenuBar()
- create menubar for jhv viewer
createFileMenu
public Menu createFileMenu(String menuTitle)
- create a open menu by provided title
- Parameters:
- menuTitle - the menu title
createOptionMenu
public Menu createOptionMenu(String title)
- create an option menu with specific menu title
- Parameters:
- title - the menu title
- Returns:
- the option menu
createViewMenu
public Menu createViewMenu(String menuTitle)
- create a view menu by provided title
- Parameters:
- menuTitle - the menu title
createHelpMenu
public Menu createHelpMenu(String title)
- create a help menu with specific menu title
- Parameters:
- title - the menu title
- Returns:
- the option menu
isFile
public boolean isFile(String str)
- Determines whether the specified string is a local file
- Parameters:
- str - the file string
- Returns:
- true if str is a file, otherwise false
isDirectory
public boolean isDirectory(String str)
openFile
public void openFile(String location,
String afilename)
- open a file from a remote machine
- Parameters:
- location - the remote machine
- afilename - the requested hdf file
openFile
public void openFile()
- opens a local file
setJHVFrame
public void setJHVFrame(Frame f)
getFrame
public Frame getFrame()
itemStateChanged
public void itemStateChanged(ItemEvent e)
- java.awt.event.ItemListener stuff
setHostList
public void setHostList(List list)
getHostList
public List getHostList()
addHostMenuItems
public void addHostMenuItems()
removeHostMenuItems
public void removeHostMenuItems()
updateServerHosts
public void updateServerHosts(List list)
- updates the current host list and change the configuration file
- Parameters:
- list - the new list of server hosts
readHosts
public List readHosts(String filename)
- reads server host list from jhv configuration file
- Parameters:
- filename - The name of the configuration file
- config - The configurations except the server hosts
- Returns:
- The list of server hosts
writeHosts
public void writeHosts(String filename,
List hosts)
- writes the server host list into the jhv configuration file
which also deletes the old host list from the configuration file
- Parameters:
- filename - The name of the configuration file
- hosts - The list of server hosts
getHDFObject
public HDFObject getHDFObject(HDFObjectNode node)
- get the HDFObject from server
- Parameters:
- node - The selected node in the hdf hierarchy tree
- Returns:
- The HDFObject containing the requested data
getHDFObject
public HDFObject getHDFObject(String host,
int port,
String filename,
HDFObjectNode node)
- get the HDFObject from server
- Parameters:
- host - The name of the remote machine
- port - The port number of the server
- filename - The hdf file name
- node - The selected node in the hdf hierarchy tree
- Returns:
- The HDFObject containing the requested data
All Packages Class Hierarchy This Package Previous Next Index