Object
org.eclipse.core.commands.common.EventManager
org.eclipse.jface.preference.PreferenceStore
hdf.view.ViewProperties
- All Implemented Interfaces:
org.eclipse.jface.preference.IPersistentPreferenceStore,org.eclipse.jface.preference.IPreferenceStore
A class to maintain the list of preferences for data and display
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumProperty keys control how the data is displayed.static enumProperty keys control how the data is displayed.static enumUsed to create different DataViews for a given HObject. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault Compound TableView class namesstatic final StringDefault Dataset MetaDataView class namesstatic final StringDefault Datatype MetaDataView class namesstatic final StringDefault Group MetaDataView class namesstatic final StringDefault ImageView class namesstatic final StringDefault Link MetaDataView class namesstatic final StringText for default selection of modulesstatic final StringDefault PaletteView class namesstatic final StringDefault Scalar TableView class namesstatic final StringDefault TreeView class namesstatic final Stringname of the tab delimiterstatic final Stringname of the tab delimiterstatic final Stringname of the tab delimiterstatic final Stringname of the tab delimiterstatic final Stringname of the tab delimiterstatic final intthe maximum number of most recent filesstatic final Stringimage origin: LowerLeftstatic final Stringimage origin: LowerRightstatic final Stringimage origin: UpperLeftstatic final Stringimage origin: UpperRightstatic final Stringthe version of the HDFViewerFields inherited from interface org.eclipse.jface.preference.IPreferenceStore
BOOLEAN_DEFAULT_DEFAULT, DOUBLE_DEFAULT_DEFAULT, FALSE, FLOAT_DEFAULT_DEFAULT, INT_DEFAULT_DEFAULT, LONG_DEFAULT_DEFAULT, STRING_DEFAULT_DEFAULT, TRUE -
Constructor Summary
ConstructorsConstructorDescriptionViewProperties(String viewRoot, String viewStart) Creates a property list with given root directory of the HDFView. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendPluginPath(String pluginPath) Appends the plugin path.static StringcreatePropertyFile(String userHomeFile, String userDirFile) Creates a property list file in a directory.static voiddeletePluginPath(int pathIndex) Removes the plugin path.static org.eclipse.swt.graphics.ImageGet the Animation Iconstatic org.eclipse.swt.graphics.ImageGet the Apps Iconstatic org.eclipse.swt.graphics.ImageGet the Audio Iconstatic org.eclipse.swt.graphics.ImageGet the Autocontrast Iconstatic org.eclipse.swt.graphics.ImageGet the Blank Iconstatic org.eclipse.swt.graphics.ImageGet the Bright Iconstatic org.eclipse.swt.graphics.ImageGet the Chart Iconstatic org.eclipse.swt.graphics.ImageGet the Copy Iconstatic org.eclipse.swt.graphics.ImageGet the Cut Iconstatic StringGet the delimiter of data valuesstatic org.eclipse.swt.graphics.ImageGet the Dataset Iconstatic org.eclipse.swt.graphics.ImageGet the Dataset with Attribute Iconstatic org.eclipse.swt.graphics.ImageGet the Datatype Iconstatic org.eclipse.swt.graphics.ImageGet the Datatype with Attribute Iconstatic StringReturns value of default lib version for the earliest.static org.eclipse.swt.graphics.ImageGet the File Close Iconstatic StringGet the file extensions of supported file formatsstatic org.eclipse.swt.graphics.ImageGet the File New Iconstatic org.eclipse.swt.graphics.ImageGet the File Open Iconstatic org.eclipse.swt.graphics.ImageGet the File Save Iconstatic org.eclipse.swt.graphics.ImageGet the First Iconstatic org.eclipse.swt.graphics.ImageGet the Folder Close Iconstatic org.eclipse.swt.graphics.ImageGet the Folder Close with Attribute Iconstatic org.eclipse.swt.graphics.ImageGet the Folder Open Iconstatic org.eclipse.swt.graphics.ImageGet the Folder Open with Attribute Iconstatic intGet the font sizestatic StringGet the font typestatic org.eclipse.swt.graphics.ImageGet the HDF4 Iconstatic org.eclipse.swt.graphics.ImageGet the read-only HDF4 Iconstatic StringGet the path of the H5toH5 converterstatic org.eclipse.swt.graphics.ImageGet the HDF5 Iconstatic org.eclipse.swt.graphics.ImageGet the read-only HDF5 Iconstatic org.eclipse.swt.graphics.ImageGet the HDF Iconstatic org.eclipse.swt.graphics.Image[]Get the HDF Iconsstatic org.eclipse.swt.graphics.ImageGet the HDFView Iconstatic org.eclipse.swt.graphics.ImageGet the Help IconGet a list of helpview modulesstatic org.eclipse.swt.graphics.ImageGet the Image Iconstatic org.eclipse.swt.graphics.ImageGet the Image with Attribute Iconstatic StringGet the image originGet a list of imageview modulesstatic StringGet the default index order for displaystatic StringGet the default index type for displaystatic org.eclipse.swt.graphics.ImageGet the Large HDF Iconstatic org.eclipse.swt.graphics.ImageGet the Last Iconstatic StringReturns value of default lib version for the latest.static org.eclipse.swt.graphics.ImageGet the Link Iconstatic intCurrent Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static intGet the maximum number of the most recent fileGet a list of metadataview modulesgetMRF()Get the list of most recent filesstatic org.eclipse.swt.graphics.ImageGet the netcdf Iconstatic org.eclipse.swt.graphics.ImageGet the read-only netcdf Iconstatic org.eclipse.swt.graphics.ImageGet the Next Iconstatic org.eclipse.swt.graphics.ImageGet the Palette IconGet the list of palette filesGet a list of paletteview modulesstatic org.eclipse.swt.graphics.ImageGetthe Paste Iconstatic org.eclipse.swt.graphics.ImageGet the Pdf Iconstatic String[]Get the plugin path liststatic org.eclipse.swt.graphics.ImageGet the Previous Iconstatic StringGet the name of the user property filestatic org.eclipse.swt.graphics.ImageGet the Question IconGet the SRB account liststatic intCurrent Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static org.eclipse.swt.graphics.ImageGet the Table Iconstatic org.eclipse.swt.graphics.ImageGet the Table with Attribute IconGet a list of tableview modulesstatic org.eclipse.swt.graphics.ImageGet the Text Iconstatic org.eclipse.swt.graphics.ImageGet the Text with Attribute Iconstatic intGet the timer refresh sizeGet a list of treeview modulesstatic org.eclipse.swt.graphics.ImageGet the Url Iconstatic StringGet the path of the HDFView users guidestatic org.eclipse.swt.graphics.ImageGet the Video Iconstatic StringGet the root directory where the HDFView is installed.static StringGet the default work directory, where the open file starts.static org.eclipse.swt.graphics.ImageGet the Xls Iconstatic org.eclipse.swt.graphics.ImageGet the Zoom In Iconstatic org.eclipse.swt.graphics.ImageGet the Zoom Out Iconstatic voidinsertPluginPath(String pluginPath, int pathIndex) Inserts the plugin path.static booleanReturns true if auto contrast is used in image processing.static booleanCheck if the enum value is to be convertedstatic booleanCheck if the data index starts at 1static booleanReturns true if default file access is read only.static booleanReturns true if default file access is read SWMR.voidload()Load user properties from property filestatic ClassLoaderload module classesstatic voidLoad the Iconsstatic String[]Load the paths of the default plugin directoriesstatic voidprependPluginPath(String pluginPath) Prepends the plugin path.voidsave()Save user properties into property filestatic voidsetAutoContrast(boolean b) Set the flag to indicate if auto contrast is used in image process.static voidsetConvertEnum(boolean convertEnum) Set enum data to be convertedstatic voidsetDataDelimiter(String delim) set the delimiter of data valuesstatic voidsetEarlyLib(String vers) Set the value of default lib version for the earliest.static voidsetFileExtension(String ext) set the file extensionstatic voidsetFontSize(int fsize) sets the font sizestatic voidsetFontType(String ftype) sets the font typestatic voidset the path of the H4 to H5 converterstatic voidset the image originstatic voidsetIndexBase1(boolean b) Set the flag to indicate if IndexBase should start at 1.static voidsetIndexOrder(String idxOrder) set the index orderstatic voidsetIndexType(String idxType) set the index typestatic voidsetLateLib(String vers) Set the value of default lib version for the latest.static voidsetMaxMembers(int n) Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static voidsetReadOnly(boolean b) Set the flag to indicate if default file access is read only.static voidsetReadSWMR(boolean b) Set the flag to indicate if default file access is read SWMR.static voidsetRecentFiles(ArrayList<String> recentFilesList) Sets the list of most recently accessed files.static voidsetRootDir(String rDir) set the path of the default root directorystatic voidsetShowImageValue(boolean b) Set the flag to indicate if "show image values" is set.static voidsetShowRegRefValue(boolean b) Set the flag to indicate if "show RegRef values" is set.static voidsetStartMembers(int idx) Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static voidsetTimerRefresh(int trefresh) sets the timer refreshstatic voidsetUsersGuide(String str) set the path of H5View User's guidestatic voidsetWorkDir(String wDir) set the path of the default work directorystatic booleanReturns true if "show image values" is set.static booleanReturns true if "show regref values" is set.Methods inherited from class org.eclipse.jface.preference.PreferenceStore
addPropertyChangeListener, contains, firePropertyChangeEvent, getBoolean, getDefaultBoolean, getDefaultDouble, getDefaultFloat, getDefaultInt, getDefaultLong, getDefaultString, getDouble, getFloat, getInt, getLong, getString, isDefault, list, list, load, needsSaving, preferenceNames, putValue, removePropertyChangeListener, save, setDefault, setDefault, setDefault, setDefault, setDefault, setDefault, setFilename, setToDefault, setValue, setValue, setValue, setValue, setValue, setValueMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
-
Field Details
-
VERSION
the version of the HDFViewer -
MAX_RECENT_FILES
the maximum number of most recent files- See Also:
-
DELIMITER_TAB
name of the tab delimiter- See Also:
-
DELIMITER_COMMA
name of the tab delimiter- See Also:
-
DELIMITER_SPACE
name of the tab delimiter- See Also:
-
DELIMITER_COLON
name of the tab delimiter- See Also:
-
ORIGIN_UL
image origin: UpperLeft- See Also:
-
ORIGIN_LL
image origin: LowerLeft- See Also:
-
ORIGIN_UR
image origin: UpperRight- See Also:
-
ORIGIN_LR
image origin: LowerRight- See Also:
-
DELIMITER_SEMI_COLON
name of the tab delimiter- See Also:
-
DEFAULT_MODULE_TEXT
Text for default selection of modules- See Also:
-
DEFAULT_TREEVIEW_NAME
Default TreeView class names- See Also:
-
DEFAULT_SCALAR_DATASET_TABLEVIEW_NAME
Default Scalar TableView class names- See Also:
-
DEFAULT_COMPOUND_DATASET_TABLEVIEW_NAME
Default Compound TableView class names- See Also:
-
DEFAULT_GROUP_METADATAVIEW_NAME
Default Group MetaDataView class names- See Also:
-
DEFAULT_DATASET_METADATAVIEW_NAME
Default Dataset MetaDataView class names- See Also:
-
DEFAULT_DATATYPE_METADATAVIEW_NAME
Default Datatype MetaDataView class names- See Also:
-
DEFAULT_LINK_METADATAVIEW_NAME
Default Link MetaDataView class names- See Also:
-
DEFAULT_IMAGEVIEW_NAME
Default ImageView class names- See Also:
-
DEFAULT_PALETTEVIEW_NAME
Default PaletteView class names- See Also:
-
-
Constructor Details
-
ViewProperties
Creates a property list with given root directory of the HDFView.- Parameters:
viewRoot- the root directory of the HDFViewviewStart- the starting directory for file searches
-
-
Method Details
-
createPropertyFile
Creates a property list file in a directory.- Parameters:
userHomeFile- the user home directoryuserDirFile- the user directory- Returns:
- property list file
-
loadExtClass
load module classes- Returns:
- the ClassLoader
-
getFoldercloseIcon
Get the Folder Close Icon- Returns:
- the Folder Close Icon
-
getFoldercloseIconA
Get the Folder Close with Attribute Icon- Returns:
- the Folder Close with Attribute Icon
-
getFolderopenIcon
Get the Folder Open Icon- Returns:
- the Folder Open Icon
-
getFolderopenIconA
Get the Folder Open with Attribute Icon- Returns:
- the Folder Open with Attribute Icon
-
getHdfIcon
Get the HDF Icon- Returns:
- the HDF Icon
-
getHdfIcons
Get the HDF Icons- Returns:
- the HDF Icons
-
getH4Icon
Get the HDF4 Icon- Returns:
- the HDF4 Icon
-
getH4IconR
Get the read-only HDF4 Icon- Returns:
- the read-only HDF4 Icon
-
getH5Icon
Get the HDF5 Icon- Returns:
- the HDF5 Icon
-
getH5IconR
Get the read-only HDF5 Icon- Returns:
- the read-only HDF5 Icon
-
getNC3Icon
Get the netcdf Icon- Returns:
- the netcdf Icon
-
getNC3IconR
Get the read-only netcdf Icon- Returns:
- the read-only netcdf Icon
-
getDatasetIcon
Get the Dataset Icon- Returns:
- the Dataset Icon
-
getDatasetIconA
Get the Dataset with Attribute Icon- Returns:
- the Dataset with Attribute Icon
-
getDatatypeIcon
Get the Datatype Icon- Returns:
- the Datatype Icon
-
getDatatypeIconA
Get the Datatype with Attribute Icon- Returns:
- the Datatype with Attribute Icon
-
getLinkIcon
Get the Link Icon- Returns:
- the Link Icon
-
getFileopenIcon
Get the File Open Icon- Returns:
- the File Open Icon
-
getFilesaveIcon
Get the File Save Icon- Returns:
- the File Save Icon
-
getFilenewIcon
Get the File New Icon- Returns:
- the File New Icon
-
getFilecloseIcon
Get the File Close Icon- Returns:
- the File Close Icon
-
getPaletteIcon
Get the Palette Icon- Returns:
- the Palette Icon
-
getBrightIcon
Get the Bright Icon- Returns:
- the Bright Icon
-
getAutocontrastIcon
Get the Autocontrast Icon- Returns:
- the Autocontrast Icon
-
getImageIcon
Get the Image Icon- Returns:
- the Image Icon
-
getTableIcon
Get the Table Icon- Returns:
- the Table Icon
-
getTextIcon
Get the Text Icon- Returns:
- the Text Icon
-
getImageIconA
Get the Image with Attribute Icon- Returns:
- the Image with Attribute Icon
-
getTableIconA
Get the Table with Attribute Icon- Returns:
- the Table with Attribute Icon
-
getTextIconA
Get the Text with Attribute Icon- Returns:
- the Text with Attribute Icon
-
getZoominIcon
Get the Zoom In Icon- Returns:
- the Zoom In Icon
-
getZoomoutIcon
Get the Zoom Out Icon- Returns:
- the Zoom Out Icon
-
getBlankIcon
Get the Blank Icon- Returns:
- the Blank Icon
-
getHelpIcon
Get the Help Icon- Returns:
- the Help Icon
-
getCopyIcon
Get the Copy Icon- Returns:
- the Copy Icon
-
getCutIcon
Get the Cut Icon- Returns:
- the Cut Icon
-
getPasteIcon
Getthe Paste Icon- Returns:
- the Paste Icon
-
getHDFViewIcon
Get the HDFView Icon- Returns:
- the HDFView Icon
-
getLargeHdfIcon
Get the Large HDF Icon- Returns:
- the Large HDF Icon
-
getPreviousIcon
Get the Previous Icon- Returns:
- the Previous Icon
-
getNextIcon
Get the Next Icon- Returns:
- the Next Icon
-
getFirstIcon
Get the First Icon- Returns:
- the First Icon
-
getLastIcon
Get the Last Icon- Returns:
- the Last Icon
-
getChartIcon
Get the Chart Icon- Returns:
- the Chart Icon
-
getAnimationIcon
Get the Animation Icon- Returns:
- the Animation Icon
-
getAppsIcon
Get the Apps Icon- Returns:
- the Apps Icon
-
getUrlIcon
Get the Url Icon- Returns:
- the Url Icon
-
getVideoIcon
Get the Video Icon- Returns:
- the Video Icon
-
getXlsIcon
Get the Xls Icon- Returns:
- the Xls Icon
-
getPdfIcon
Get the Pdf Icon- Returns:
- the Pdf Icon
-
getAudioIcon
Get the Audio Icon- Returns:
- the Audio Icon
-
getQuestionIcon
Get the Question Icon- Returns:
- the Question Icon
-
loadIcons
Load the Icons -
load
Load user properties from property file- Overrides:
loadin classorg.eclipse.jface.preference.PreferenceStore- Throws:
IOException- if a failure occurred
-
save
Save user properties into property file- Specified by:
savein interfaceorg.eclipse.jface.preference.IPersistentPreferenceStore- Overrides:
savein classorg.eclipse.jface.preference.PreferenceStore- Throws:
IOException- if a failure occurred
-
getPropertyFile
Get the name of the user property file- Returns:
- the name of the user property file
-
getViewRoot
Get the root directory where the HDFView is installed.- Returns:
- the root directory where the HDFView is installed.
-
getWorkDir
Get the default work directory, where the open file starts.- Returns:
- the default work directory, where the open file starts.
-
getMaxRecentFiles
Get the maximum number of the most recent file- Returns:
- the maximum number of the most recent file
-
getUsersGuide
Get the path of the HDFView users guide- Returns:
- the path of the HDFView users guide
-
getDataDelimiter
Get the delimiter of data values- Returns:
- the delimiter of data values
-
getImageOrigin
Get the image origin- Returns:
- the image origin
-
getIndexType
Get the default index type for display- Returns:
- the default index type for display
-
getIndexOrder
Get the default index order for display- Returns:
- the default index order for display
-
getTimerRefresh
Get the timer refresh size- Returns:
- the timer refresh size
-
setTimerRefresh
sets the timer refresh- Parameters:
trefresh- the timer refresh
-
getFontSize
Get the font size- Returns:
- the font size
-
getFontType
Get the font type- Returns:
- the font type
-
getFileExtension
Get the file extensions of supported file formats- Returns:
- the file extensions of supported file formats
-
setFontSize
sets the font size- Parameters:
fsize- the font size
-
setFontType
sets the font type- Parameters:
ftype- the font type
-
getH4toH5
Get the path of the H5toH5 converter- Returns:
- the path of the H5toH5 converter
-
getMRF
Get the list of most recent files- Returns:
- the list of most recent files
-
getPaletteList
Get the list of palette files- Returns:
- the list of palette files
-
getPluginPaths
Get the plugin path list- Returns:
- the plugin path list
-
getSrbAccount
Get the SRB account list- Returns:
- the SRB account list
-
getTreeViewList
Get a list of treeview modules- Returns:
- a list of treeview modules
-
getMetaDataViewList
Get a list of metadataview modules- Returns:
- a list of metadataview modules
-
getTableViewList
Get a list of tableview modules- Returns:
- a list of tableview modules
-
getImageViewList
Get a list of imageview modules- Returns:
- a list of imageview modules
-
getPaletteViewList
Get a list of paletteview modules- Returns:
- a list of paletteview modules
-
getHelpViewList
Get a list of helpview modules- Returns:
- a list of helpview modules
-
setUsersGuide
set the path of H5View User's guide- Parameters:
str- the path
-
setH4toH5
set the path of the H4 to H5 converter- Parameters:
tool- the path of the H4 to H5 converter
-
setRootDir
set the path of the default root directory- Parameters:
rDir- the default root directory
-
setWorkDir
set the path of the default work directory- Parameters:
wDir- the default work directory
-
loadPluginPaths
Load the paths of the default plugin directories- Returns:
- the array of paths
-
insertPluginPath
Inserts the plugin path.- Parameters:
pluginPath- The plugin path.pathIndex- The index to insert the plugin path.
-
prependPluginPath
Prepends the plugin path.- Parameters:
pluginPath- The plugin path.
-
appendPluginPath
Appends the plugin path.- Parameters:
pluginPath- The plugin path.
-
deletePluginPath
Removes the plugin path.- Parameters:
pathIndex- The index to remove the plugin path.
-
setFileExtension
set the file extension- Parameters:
ext- the file extension
-
setDataDelimiter
set the delimiter of data values- Parameters:
delim- the delimiter of data values
-
setImageOrigin
set the image origin- Parameters:
o- the image origin
-
setIndexType
set the index type- Parameters:
idxType- the index type
-
setIndexOrder
set the index order- Parameters:
idxOrder- the index order
-
setMaxMembers
Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects. setMaxMembers() sets the maximum number of objects that will be loaded into memory.- Parameters:
n- the maximum number of objects to load into memory
-
setStartMembers
Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects. setStartMember() sets the starting index of objects that will be loaded into memory.- Parameters:
idx- the maximum number of objects to load into memory
-
getMaxMembers
Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects. getMaxMembers() returns the maximum number of objects that will be loaded into memory.- Returns:
- the maximum members
-
getStartMembers
Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects. getStartMembers() returns the starting index of objects that will be loaded into memory.- Returns:
- the start members
-
isAutoContrast
Returns true if auto contrast is used in image processing.- Returns:
- true if auto contrast is used in image processing; otherwise, returns false.
-
showImageValues
Returns true if "show image values" is set.- Returns:
- true if "show image values" is set; otherwise, returns false.
-
setAutoContrast
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.
-
setShowImageValue
Set the flag to indicate if "show image values" is set.- Parameters:
b- the flag to indicate if if "show image values" is set.
-
isReadOnly
Returns true if default file access is read only.- Returns:
- true if default file access is read only; otherwise, returns false.
-
setReadOnly
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.
-
isReadSWMR
Returns true if default file access is read SWMR.- Returns:
- true if default file access is read SWMR; otherwise, returns false.
-
setReadSWMR
Set the flag to indicate if default file access is read SWMR.- Parameters:
b- the flag to indicate if default file access is read SWMR.
-
getEarlyLib
Returns value of default lib version for the earliest.- Returns:
- value of default lib version for the earliest.
-
setEarlyLib
Set the value of default lib version for the earliest.- Parameters:
vers- the value of default lib version for the earliest.
-
getLateLib
Returns value of default lib version for the latest.- Returns:
- value of default lib version for the latest.
-
setLateLib
Set the value of default lib version for the latest.- Parameters:
vers- the value of default lib version for the latest.
-
isConvertEnum
Check if the enum value is to be converted- Returns:
- true if the enum value is to be converted
-
showRegRefValues
Returns true if "show regref values" is set.- Returns:
- true if "show regref values" is set; otherwise, returns false.
-
isIndexBase1
Check if the data index starts at 1- Returns:
- true if the data index starts at 1
-
setConvertEnum
Set enum data to be converted- Parameters:
convertEnum- true to set enum data conversion
-
setShowRegRefValue
Set the flag to indicate if "show RegRef values" is set.- Parameters:
b- the flag to indicate if if "show RegRef values" is set.
-
setIndexBase1
Set the flag to indicate if IndexBase should start at 1.- Parameters:
b- the flag to indicate if IndexBase should start at 1.
-
setRecentFiles
Sets the list of most recently accessed files.- Parameters:
recentFilesList- The list of most recently accessed files.
-