public class ViewProperties
extends java.util.Properties
Modifier and Type | Class and Description |
---|---|
static class |
ViewProperties.BITMASK_OP
Property keys how how the data is displayed.
|
static class |
ViewProperties.DATA_VIEW_KEY
Property keys how how the data is displayed.
|
Modifier and Type | Field and Description |
---|---|
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 |
ORIGIN_LL
image origin: LowerLeft
|
static java.lang.String |
ORIGIN_LR
image origin: LowerRight
|
static java.lang.String |
ORIGIN_UL
image origin: UpperLeft
|
static java.lang.String |
ORIGIN_UR
image origin: UpperRight
|
static java.lang.String |
VERSION
the version of the HDFViewer
|
Constructor and Description |
---|
ViewProperties(java.lang.String viewRoot)
Creates a property list with given root directory of the HDFView.
|
Modifier and Type | Method and Description |
---|---|
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.lang.String |
getImageOrigin()
returns the image origin
|
static java.util.Vector<java.lang.String> |
getImageViewList()
returns a list of imageview modules
|
static java.lang.String |
getIndexOrder()
returns the default index order for display
|
static java.lang.String |
getIndexType()
returns the default index type for display
|
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 |
isEarlyLib()
Returns true if default lib version is the earliest.
|
static boolean |
isIndexBase1() |
static boolean |
isReadOnly()
Returns true if default file access is read only.
|
java.util.Enumeration<java.lang.Object> |
keys() |
void |
load()
Load user properties from property file
|
static java.lang.ClassLoader |
loadExtClass()
load module classes
|
static void |
loadIcons() |
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 |
setEarlyLib(boolean b)
Set the flag to indicate if default lib version is the earliest.
|
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 |
setImageOrigin(java.lang.String o)
set the image origin
|
static void |
setIndexBase1(boolean b)
Set the flag to indicate if IndexBase should start at 1.
|
static void |
setIndexOrder(java.lang.String idxOrder)
set the index order
|
static void |
setIndexType(java.lang.String idxType)
set the index type
|
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 |
setShowImageValue(boolean b)
Set the flag to indicate if "show image values" is set.
|
static void |
setShowRegRefValue(boolean b)
Set the flag to indicate if "show RegRef values" is set.
|
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
|
static boolean |
showImageValues()
Returns true if "show image values" is set.
|
static boolean |
showRegRefValues()
Returns true if "show regref values" is set.
|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
public static final java.lang.String VERSION
public static final int MAX_RECENT_FILES
public static final java.lang.String DELIMITER_TAB
public static final java.lang.String DELIMITER_COMMA
public static final java.lang.String DELIMITER_SPACE
public static final java.lang.String DELIMITER_COLON
public static final java.lang.String ORIGIN_UL
public static final java.lang.String ORIGIN_LL
public static final java.lang.String ORIGIN_UR
public static final java.lang.String ORIGIN_LR
public static final java.lang.String DELIMITER_SEMI_COLON
public ViewProperties(java.lang.String viewRoot)
public java.util.Enumeration<java.lang.Object> keys()
keys
in class java.util.Hashtable<java.lang.Object,java.lang.Object>
public static java.lang.ClassLoader loadExtClass()
public static java.lang.String getViewRoot()
public static javax.swing.Icon getFoldercloseIcon()
public static javax.swing.Icon getFoldercloseIconA()
public static javax.swing.Icon getFolderopenIcon()
public static javax.swing.Icon getFolderopenIconA()
public static javax.swing.Icon getHdfIcon()
public static javax.swing.Icon getH4Icon()
public static javax.swing.Icon getH5Icon()
public static javax.swing.Icon getDatasetIcon()
public static javax.swing.Icon getDatasetIconA()
public static javax.swing.Icon getDatatypeIcon()
public static javax.swing.Icon getDatatypeIconA()
public static javax.swing.Icon getLinkIcon()
public static javax.swing.Icon getFileopenIcon()
public static javax.swing.Icon getFilesaveIcon()
public static javax.swing.Icon getFilenewIcon()
public static javax.swing.Icon getFilecloseIcon()
public static javax.swing.Icon getPaletteIcon()
public static javax.swing.Icon getBrightIcon()
public static javax.swing.Icon getAutocontrastIcon()
public static javax.swing.Icon getImageIcon()
public static javax.swing.Icon getTableIcon()
public static javax.swing.Icon getTextIcon()
public static javax.swing.Icon getImageIconA()
public static javax.swing.Icon getTableIconA()
public static javax.swing.Icon getTextIconA()
public static javax.swing.Icon getZoominIcon()
public static javax.swing.Icon getZoomoutIcon()
public static javax.swing.Icon getBlankIcon()
public static javax.swing.Icon getHelpIcon()
public static javax.swing.Icon getCopyIcon()
public static javax.swing.Icon getCutIcon()
public static javax.swing.Icon getPasteIcon()
public static javax.swing.Icon getLargeHdfIcon()
public static javax.swing.Icon getPreviousIcon()
public static javax.swing.Icon getNextIcon()
public static javax.swing.Icon getFirstIcon()
public static javax.swing.Icon getLastIcon()
public static javax.swing.Icon getChartIcon()
public static javax.swing.Icon getAnimationIcon()
public static javax.swing.ImageIcon getAppsIcon()
public static javax.swing.ImageIcon getUrlIcon()
public static javax.swing.ImageIcon getVideoIcon()
public static javax.swing.ImageIcon getXlsIcon()
public static javax.swing.ImageIcon getPdfIcon()
public static javax.swing.ImageIcon getAudioIcon()
public static javax.swing.Icon getQuestionIcon()
public static void loadIcons()
public void load() throws java.lang.Exception
java.lang.Exception
public void save()
public static java.lang.String getPropertyFile()
public static java.lang.String getWorkDir()
public static int getMaxRecentFiles()
public static java.lang.String getUsersGuide()
public static java.lang.String getDataDelimiter()
public static java.lang.String getImageOrigin()
public static java.lang.String getIndexType()
public static java.lang.String getIndexOrder()
public static int getFontSize()
public static java.lang.String getFontType()
public static java.lang.String getFileExtension()
public static void setFontSize(int fsize)
public static void setFontType(java.lang.String ftype)
public static java.lang.String getH4toH5()
public static java.util.Vector<java.lang.String> getMRF()
public static java.util.Vector<java.lang.String> getPaletteList()
public static java.util.Vector<java.lang.String[]> getSrbAccount()
public static java.util.Vector<java.lang.String> getTreeViewList()
public static java.util.Vector<java.lang.String> getMetaDataViewList()
public static java.util.Vector<java.lang.String> getTextViewList()
public static java.util.Vector<java.lang.String> getTableViewList()
public static java.util.Vector<java.lang.String> getImageViewList()
public static java.util.Vector<java.lang.String> getPaletteViewList()
public static java.util.Vector<java.lang.String> getHelpViewList()
public static void setUsersGuide(java.lang.String str)
public static void setH4toH5(java.lang.String tool)
public static void setWorkDir(java.lang.String wDir)
public static void setFileExtension(java.lang.String ext)
public static void setDataDelimiter(java.lang.String delim)
public static void setImageOrigin(java.lang.String o)
public static void setIndexType(java.lang.String idxType)
public static void setIndexOrder(java.lang.String idxOrder)
public static void setMaxMembers(int n)
n
- the maximum number of objects to load into memorypublic static void setStartMembers(int idx)
idx
- the maximum number of objects to load into memorypublic static int getMaxMembers()
public static int getStartMembers()
public static boolean isAutoContrast()
public static boolean showImageValues()
public static void setAutoContrast(boolean b)
b
- the flag to indicate if auto contrast is used in image
process.public static void setShowImageValue(boolean b)
b
- the flag to indicate if if "show image values" is set.public static boolean isReadOnly()
public static void setReadOnly(boolean b)
b
- the flag to indicate if default file access is read only.public static boolean isEarlyLib()
public static void setEarlyLib(boolean b)
b
- the flag to indicate if default lib version is the earliest.public static boolean isConvertEnum()
public static boolean showRegRefValues()
public static boolean isIndexBase1()
public static void setConvertEnum(boolean convertEnum)
convertEnum
- the convertEnum to setpublic static void setShowRegRefValue(boolean b)
b
- the flag to indicate if if "show RegRef values" is set.public static void setIndexBase1(boolean b)
b
- the flag to indicate if IndexBase should start at 1.