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
-
delimiter
- data delimiter
-
DEVELOPER
- the developer's display level
-
dispLevel
-
-
LAYER
- layer view selection
-
NL
- the new line charactor
-
nl
- new line feed plus carrage return
-
USER
- the user's display level
-
USER_PROPS
- the local property file name
-
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
-
createHelpMenu(String)
- create a help menu with specific menu title
-
createMenuBar()
- create menubar for jhv viewer
-
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()
-
-
getProperties()
-
-
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
-
isHDF()
-
-
isLocal()
- Is local access
-
isMac()
- Is the current platform MacOS
-
isWin()
- Is the current platform Windows 95/NT
-
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
-
openOnlineGuide()
- Open online user's guide
-
removeHostMenuItems()
-
-
save()
- save the data into HDF file or ASCII file
-
setHostList(String)
- set up HDF server hosts from the user properties
-
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 user property file
which also deletes the old host list the user property file
USER_PROPS
public static final String USER_PROPS
- the local property file name
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 final String NL
- the new line charactor
delimiter
public static String delimiter
- data delimiter
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
getProperties
public Properties getProperties()
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
isWin
public boolean isWin()
- Is the current platform Windows 95/NT
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
createMenuBar
public MenuBar createMenuBar()
- 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
getHostList
public List getHostList()
addHostMenuItems
public void addHostMenuItems()
removeHostMenuItems
public void removeHostMenuItems()
setHostList
public void setHostList(String hosts)
- set up HDF server hosts from the user properties
- Parameters:
- hosts - the string of hosts separated by space
updateServerHosts
public void updateServerHosts(List list)
- updates the current host list and change the configuration file
- Parameters:
- list - the new list of server hosts
writeHosts
public void writeHosts(String filename,
List hosts)
- writes the server host list into the user property file
which also deletes the old host list the user property 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
isHDF
public boolean isHDF()
save
public void save()
- save the data into HDF file or ASCII file
openOnlineGuide
public void openOnlineGuide()
- Open online user's guide
All Packages Class Hierarchy This Package Previous Next Index