ncsa.hdf.view
Class ViewProperties

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended byncsa.hdf.view.ViewProperties
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class ViewProperties
extends java.util.Properties

The ViewProperties holds all the HDFView static information.

See Also:
Serialized Form

Field Summary
static java.lang.String DELIMITER_COLON
          name of the tab delimiter
static java.lang.String DELIMITER_COMMA
          name of the tab delimiter
static java.lang.String DELIMITER_SEMI_COLON
          name of the tab delimiter
static java.lang.String DELIMITER_SPACE
          name of the tab delimiter
static java.lang.String DELIMITER_TAB
          name of the tab delimiter
static int MAX_RECENT_FILES
          the maximum number of most recent files
static java.lang.String VERSION
          the version of the HDFViewer
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
ViewProperties(java.lang.String viewRoot)
          Creates a property list with given root directory of the HDFView.
 
Method Summary
static javax.swing.Icon getAnimationIcon()
           
static javax.swing.Icon getBlankIcon()
           
static javax.swing.Icon getChartIcon()
           
static javax.swing.Icon getCopyIcon()
           
static javax.swing.Icon getCutIcon()
           
static java.lang.String getDataDelimiter()
          returns the delimiter of data values
static javax.swing.Icon getDatasetIcon()
           
static javax.swing.Icon getDatasetIconA()
           
static javax.swing.Icon getDatatypeIcon()
           
static javax.swing.Icon getDatatypeIconA()
           
static javax.swing.Icon getFilecloseIcon()
           
static java.lang.String getFileExtension()
          gets the file extensions of supported file formats
static javax.swing.Icon getFilenewIcon()
           
static javax.swing.Icon getFileopenIcon()
           
static javax.swing.Icon getFilesaveIcon()
           
static javax.swing.Icon getFirstIcon()
           
static javax.swing.Icon getFoldercloseIcon()
           
static javax.swing.Icon getFoldercloseIconA()
           
static javax.swing.Icon getFolderopenIcon()
           
static javax.swing.Icon getFolderopenIconA()
           
static int getFontSize()
          returns the font size
static java.lang.String getFontType()
          returns the font type
static javax.swing.Icon getH4Icon()
           
static java.lang.String getH4toH5()
          returns the path of the H5toH5 converter
static javax.swing.Icon getH5Icon()
           
static javax.swing.Icon getHdfIcon()
           
static javax.swing.Icon getHelpIcon()
           
static java.util.Vector getHelpViewList()
          returns a list of helpview modules
static javax.swing.Icon getImageIcon()
           
static javax.swing.Icon getImageIconA()
           
static java.util.Vector getImageViewList()
          returns a list of imageview modules
static javax.swing.Icon getLargeHdfIcon()
           
static javax.swing.Icon getLastIcon()
           
static javax.swing.Icon getLinkIcon()
           
static int getMaxMembers()
          Current Java application such as HDFView cannot handle files with large number of objects such 1,000,000 objects.
static int getMaxRecentFiles()
          returns the maximum number of the most recent file
static java.util.Vector getMetaDataViewList()
          returns a list of metadataview modules
static java.util.Vector getMRF()
          returns the list of most recent files
static javax.swing.Icon getNextIcon()
           
static javax.swing.Icon getPaletteIcon()
           
static java.util.Vector getPaletteViewList()
          returns a list of paletteview modules
static javax.swing.Icon getPasteIcon()
           
static javax.swing.Icon getPreviousIcon()
           
static java.lang.String getPropertyFile()
          returns the name of the user property file
static java.util.Vector getSrbAccount()
           
static int getStartMembers()
          Current Java application such as HDFView cannot handle files with large number of objects such 1,000,000 objects.
static javax.swing.Icon getTableIcon()
           
static javax.swing.Icon getTableIconA()
           
static java.util.Vector getTableViewList()
          returns a list of tableview modules
static javax.swing.Icon getTextIcon()
           
static javax.swing.Icon getTextIconA()
           
static java.util.Vector getTextViewList()
          returns a list of textview modules
static java.util.Vector getTreeViewList()
          returns a list of treeview modules
static java.lang.String getUsersGuide()
          return the path of the H5View uers guide
static java.lang.String getViewRoot()
          returns the root directory where the HDFView is installed.
static java.lang.String getWorkDir()
          returns the default work directory, where the open file starts.
static javax.swing.Icon getZoominIcon()
           
static javax.swing.Icon getZoomoutIcon()
           
 java.util.Enumeration keys()
           
 void load()
          Load user properties from property file
static java.lang.ClassLoader loadExtClass()
          load module classes
static void loadIcons(java.lang.String rootPath)
           
 void save()
          Save user properties into property file
static void setDataDelimiter(java.lang.String delim)
          set the delimiter of data values
static void setFileExtension(java.lang.String ext)
          set the file extension
static void setFontSize(int fsize)
          sets the font size
static void setFontType(java.lang.String ftype)
          sets the font size
static void setH4toH5(java.lang.String tool)
          set the path of the H5to H5 converter
static void setMaxMembers(int n)
          Current Java application such as HDFView cannot handle files with large number of objects such 1,000,000 objects.
static void setStartMembers(int idx)
          Current Java application such as HDFView cannot handle files with large number of objects such 1,000,000 objects.
static void setUsersGuide(java.lang.String str)
          set the path of H5View User's guide
static void setWorkDir(java.lang.String wDir)
          set the path of the default work directory
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
the version of the HDFViewer

See Also:
Constant Field Values

MAX_RECENT_FILES

public static final int MAX_RECENT_FILES
the maximum number of most recent files

See Also:
Constant Field Values

DELIMITER_TAB

public static final java.lang.String DELIMITER_TAB
name of the tab delimiter

See Also:
Constant Field Values

DELIMITER_COMMA

public static final java.lang.String DELIMITER_COMMA
name of the tab delimiter

See Also:
Constant Field Values

DELIMITER_SPACE

public static final java.lang.String DELIMITER_SPACE
name of the tab delimiter

See Also:
Constant Field Values

DELIMITER_COLON

public static final java.lang.String DELIMITER_COLON
name of the tab delimiter

See Also:
Constant Field Values

DELIMITER_SEMI_COLON

public static final java.lang.String DELIMITER_SEMI_COLON
name of the tab delimiter

See Also:
Constant Field Values
Constructor Detail

ViewProperties

public ViewProperties(java.lang.String viewRoot)
Creates a property list with given root directory of the HDFView.

Method Detail

keys

public java.util.Enumeration keys()

loadExtClass

public static java.lang.ClassLoader loadExtClass()
load module classes


getViewRoot

public static java.lang.String getViewRoot()
returns the root directory where the HDFView is installed.


getFoldercloseIcon

public static javax.swing.Icon getFoldercloseIcon()

getFoldercloseIconA

public static javax.swing.Icon getFoldercloseIconA()

getFolderopenIcon

public static javax.swing.Icon getFolderopenIcon()

getFolderopenIconA

public static javax.swing.Icon getFolderopenIconA()

getHdfIcon

public static javax.swing.Icon getHdfIcon()

getH4Icon

public static javax.swing.Icon getH4Icon()

getH5Icon

public static javax.swing.Icon getH5Icon()

getDatasetIcon

public static javax.swing.Icon getDatasetIcon()

getDatasetIconA

public static javax.swing.Icon getDatasetIconA()

getDatatypeIcon

public static javax.swing.Icon getDatatypeIcon()

getDatatypeIconA

public static javax.swing.Icon getDatatypeIconA()

getLinkIcon

public static javax.swing.Icon getLinkIcon()

getFileopenIcon

public static javax.swing.Icon getFileopenIcon()

getFilesaveIcon

public static javax.swing.Icon getFilesaveIcon()

getFilenewIcon

public static javax.swing.Icon getFilenewIcon()

getFilecloseIcon

public static javax.swing.Icon getFilecloseIcon()

getPaletteIcon

public static javax.swing.Icon getPaletteIcon()

getImageIcon

public static javax.swing.Icon getImageIcon()

getTableIcon

public static javax.swing.Icon getTableIcon()

getTextIcon

public static javax.swing.Icon getTextIcon()

getImageIconA

public static javax.swing.Icon getImageIconA()

getTableIconA

public static javax.swing.Icon getTableIconA()

getTextIconA

public static javax.swing.Icon getTextIconA()

getZoominIcon

public static javax.swing.Icon getZoominIcon()

getZoomoutIcon

public static javax.swing.Icon getZoomoutIcon()

getBlankIcon

public static javax.swing.Icon getBlankIcon()

getHelpIcon

public static javax.swing.Icon getHelpIcon()

getCopyIcon

public static javax.swing.Icon getCopyIcon()

getCutIcon

public static javax.swing.Icon getCutIcon()

getPasteIcon

public static javax.swing.Icon getPasteIcon()

getLargeHdfIcon

public static javax.swing.Icon getLargeHdfIcon()

getPreviousIcon

public static javax.swing.Icon getPreviousIcon()

getNextIcon

public static javax.swing.Icon getNextIcon()

getFirstIcon

public static javax.swing.Icon getFirstIcon()

getLastIcon

public static javax.swing.Icon getLastIcon()

getChartIcon

public static javax.swing.Icon getChartIcon()

getAnimationIcon

public static javax.swing.Icon getAnimationIcon()

loadIcons

public static void loadIcons(java.lang.String rootPath)

load

public void load()
          throws java.lang.Exception
Load user properties from property file

Throws:
java.lang.Exception

save

public void save()
Save user properties into property file


getPropertyFile

public static java.lang.String getPropertyFile()
returns the name of the user property file


getWorkDir

public static java.lang.String getWorkDir()
returns the default work directory, where the open file starts.


getMaxRecentFiles

public static int getMaxRecentFiles()
returns the maximum number of the most recent file


getUsersGuide

public static java.lang.String getUsersGuide()
return the path of the H5View uers guide


getDataDelimiter

public static java.lang.String getDataDelimiter()
returns the delimiter of data values


getFontSize

public static int getFontSize()
returns the font size


getFontType

public static java.lang.String getFontType()
returns the font type


getFileExtension

public static java.lang.String getFileExtension()
gets the file extensions of supported file formats


setFontSize

public static void setFontSize(int fsize)
sets the font size


setFontType

public static void setFontType(java.lang.String ftype)
sets the font size


getH4toH5

public static java.lang.String getH4toH5()
returns the path of the H5toH5 converter


getMRF

public static java.util.Vector getMRF()
returns the list of most recent files


getSrbAccount

public static java.util.Vector getSrbAccount()

getTreeViewList

public static java.util.Vector getTreeViewList()
returns a list of treeview modules


getMetaDataViewList

public static java.util.Vector getMetaDataViewList()
returns a list of metadataview modules


getTextViewList

public static java.util.Vector getTextViewList()
returns a list of textview modules


getTableViewList

public static java.util.Vector getTableViewList()
returns a list of tableview modules


getImageViewList

public static java.util.Vector getImageViewList()
returns a list of imageview modules


getPaletteViewList

public static java.util.Vector getPaletteViewList()
returns a list of paletteview modules


getHelpViewList

public static java.util.Vector getHelpViewList()
returns a list of helpview modules


setUsersGuide

public static void setUsersGuide(java.lang.String str)
set the path of H5View User's guide


setH4toH5

public static void setH4toH5(java.lang.String tool)
set the path of the H5to H5 converter


setWorkDir

public static void setWorkDir(java.lang.String wDir)
set the path of the default work directory


setFileExtension

public static void setFileExtension(java.lang.String ext)
set the file extension


setDataDelimiter

public static void setDataDelimiter(java.lang.String delim)
set the delimiter of data values


setMaxMembers

public static void setMaxMembers(int n)
Current Java application such as HDFView cannot handle files with large number of objects such 1,000,000 objects. setMaxMembers() sets the maximum number of objects will be loaded into memory.

Parameters:
n - the maximum number of objects to load into memory

setStartMembers

public static void setStartMembers(int idx)
Current Java application such as HDFView cannot handle files with large number of objects such 1,000,000 objects. setStartMember() sets the starting index of objects will be loaded into memory.


getMaxMembers

public static int getMaxMembers()
Current Java application such as HDFView cannot handle files with large number of objects such 1,000,000 objects. getMaxMembers() returns the maximum number of objects will be loaded into memory.


getStartMembers

public static int getStartMembers()
Current Java application such as HDFView cannot handle files with large number of objects such 1,000,000 objects. getStartMembers() returns the starting index of objects will be loaded into memory.