ncsa.hdf.view
Class ViewProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by ncsa.hdf.view.ViewProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class ViewProperties
extends java.util.Properties

The ViewProperties holds all the HDFView static information.

Version:
2.4 9/6/2007
Author:
Peter X. Cao
See Also:
Serialized Form

Nested Class Summary
static class ViewProperties.DATA_VIEW_KEY
          Property keys how how the data is displayed.
 
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 long serialVersionUID
           
static java.lang.String VERSION
          the version of the HDFViewer
 
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.ImageIcon getAppsIcon()
           
static javax.swing.ImageIcon getAudioIcon()
           
static javax.swing.Icon getAutocontrastIcon()
           
static javax.swing.Icon getBlankIcon()
           
static javax.swing.Icon getBrightIcon()
           
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<java.lang.String> getHelpViewList()
          returns a list of helpview modules
static javax.swing.Icon getImageIcon()
           
static javax.swing.Icon getImageIconA()
           
static java.util.Vector<java.lang.String> 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<java.lang.String> getMetaDataViewList()
          returns a list of metadataview modules
static java.util.Vector<java.lang.String> getMRF()
          returns the list of most recent files
static javax.swing.Icon getNextIcon()
           
static javax.swing.Icon getPaletteIcon()
           
static java.util.Vector<java.lang.String> getPaletteList()
          returns the list of palette files
static java.util.Vector<java.lang.String> getPaletteViewList()
          returns a list of paletteview modules
static javax.swing.Icon getPasteIcon()
           
static javax.swing.ImageIcon getPdfIcon()
           
static javax.swing.Icon getPreviousIcon()
           
static java.lang.String getPropertyFile()
          returns the name of the user property file
static javax.swing.Icon getQuestionIcon()
           
static java.util.Vector<java.lang.String[]> 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<java.lang.String> getTableViewList()
          returns a list of tableview modules
static javax.swing.Icon getTextIcon()
           
static javax.swing.Icon getTextIconA()
           
static java.util.Vector<java.lang.String> getTextViewList()
          returns a list of textview modules
static java.util.Vector<java.lang.String> getTreeViewList()
          returns a list of treeview modules
static javax.swing.ImageIcon getUrlIcon()
           
static java.lang.String getUsersGuide()
          return the path of the H5View uers guide
static javax.swing.ImageIcon getVideoIcon()
           
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.ImageIcon getXlsIcon()
           
static javax.swing.Icon getZoominIcon()
           
static javax.swing.Icon getZoomoutIcon()
           
static boolean isAutoContrast()
          Returns true if auto contrast is used in image process.
static boolean isConvertEnum()
           
static boolean isReadOnly()
          Returns true if default file access is read only.
 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 setAutoContrast(boolean b)
          Set the flag to indicate if auto contrast is used in image process.
static void setConvertEnum(boolean convertEnum)
           
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 setReadOnly(boolean b)
          Set the flag to indicate if default file access is read only.
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, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values

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()
Overrides:
keys in class java.util.Hashtable<java.lang.Object,java.lang.Object>

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()

getBrightIcon

public static javax.swing.Icon getBrightIcon()

getAutocontrastIcon

public static javax.swing.Icon getAutocontrastIcon()

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()

getAppsIcon

public static javax.swing.ImageIcon getAppsIcon()

getUrlIcon

public static javax.swing.ImageIcon getUrlIcon()

getVideoIcon

public static javax.swing.ImageIcon getVideoIcon()

getXlsIcon

public static javax.swing.ImageIcon getXlsIcon()

getPdfIcon

public static javax.swing.ImageIcon getPdfIcon()

getAudioIcon

public static javax.swing.ImageIcon getAudioIcon()

getQuestionIcon

public static javax.swing.Icon getQuestionIcon()

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<java.lang.String> getMRF()
returns the list of most recent files


getPaletteList

public static java.util.Vector<java.lang.String> getPaletteList()
returns the list of palette files


getSrbAccount

public static java.util.Vector<java.lang.String[]> getSrbAccount()

getTreeViewList

public static java.util.Vector<java.lang.String> getTreeViewList()
returns a list of treeview modules


getMetaDataViewList

public static java.util.Vector<java.lang.String> getMetaDataViewList()
returns a list of metadataview modules


getTextViewList

public static java.util.Vector<java.lang.String> getTextViewList()
returns a list of textview modules


getTableViewList

public static java.util.Vector<java.lang.String> getTableViewList()
returns a list of tableview modules


getImageViewList

public static java.util.Vector<java.lang.String> getImageViewList()
returns a list of imageview modules


getPaletteViewList

public static java.util.Vector<java.lang.String> getPaletteViewList()
returns a list of paletteview modules


getHelpViewList

public static java.util.Vector<java.lang.String> 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.

Parameters:
idx - the maximum number of objects to load 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.


isAutoContrast

public static boolean isAutoContrast()
Returns true if auto contrast is used in image process.

Returns:
true if auto contrast is used in image process; otherwise, returns false.

setAutoContrast

public static void setAutoContrast(boolean b)
Set the flag to indicate if auto contrast is used in image process.

Parameters:
b - the flag to indicate if auto contrast is used in image process.

isReadOnly

public static boolean isReadOnly()
Returns true if default file access is read only.

Returns:
true if default file access is read only; otherwise, returns false.

setReadOnly

public static void setReadOnly(boolean b)
Set the flag to indicate if default file access is read only.

Parameters:
b - the flag to indicate if default file access is read only.

isConvertEnum

public static boolean isConvertEnum()
Returns:
the convertEnum

setConvertEnum

public static void setConvertEnum(boolean convertEnum)
Parameters:
convertEnum - the convertEnum to set