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
Modifier and TypeClassDescriptionstatic enum
Property keys control how the data is displayed.static enum
Property keys control how the data is displayed.static enum
Used to create different DataViews for a given HObject. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default Compound TableView class namesstatic final String
Default Dataset MetaDataView class namesstatic final String
Default Datatype MetaDataView class namesstatic final String
Default Group MetaDataView class namesstatic final String
Default ImageView class namesstatic final String
Default Link MetaDataView class namesstatic final String
Text for default selection of modulesstatic final String
Default PaletteView class namesstatic final String
Default Scalar TableView class namesstatic final String
Default TreeView class namesstatic final String
name of the tab delimiterstatic final String
name of the tab delimiterstatic final String
name of the tab delimiterstatic final String
name of the tab delimiterstatic final String
name of the tab delimiterstatic final int
the maximum number of most recent filesstatic final String
image origin: LowerLeftstatic final String
image origin: LowerRightstatic final String
image origin: UpperLeftstatic final String
image origin: UpperRightstatic final String
the 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
ConstructorDescriptionViewProperties
(String viewRoot, String viewStart) Creates a property list with given root directory of the HDFView. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createPropertyFile
(String userHomeFile, String userDirFile) Creates a property list file in a directory.static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static String
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static String
Returns value of default lib version for the earliest.static org.eclipse.swt.graphics.Image
static String
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static int
static String
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static String
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static String
static String
static String
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static String
Returns value of default lib version for the latest.static org.eclipse.swt.graphics.Image
static int
Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static int
getMRF()
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static String
static org.eclipse.swt.graphics.Image
static int
Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static int
static org.eclipse.swt.graphics.Image
static String
static org.eclipse.swt.graphics.Image
static String
static String
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static org.eclipse.swt.graphics.Image
static boolean
Returns true if auto contrast is used in image processing.static boolean
static boolean
static boolean
Returns true if default file access is read only.static boolean
Returns true if default file access is read SWMR.void
load()
Load user properties from property filestatic ClassLoader
load module classesstatic void
Load the Iconsvoid
save()
Save user properties into property filestatic 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
(String delim) set the delimiter of data valuesstatic void
setEarlyLib
(String vers) Set the value of default lib version for the earliest.static void
setFileExtension
(String ext) set the file extensionstatic void
setFontSize
(int fsize) sets the font sizestatic void
setFontType
(String ftype) sets the font typestatic void
set the path of the H4 to H5 converterstatic void
set the image originstatic void
setIndexBase1
(boolean b) Set the flag to indicate if IndexBase should start at 1.static void
setIndexOrder
(String idxOrder) set the index orderstatic void
setIndexType
(String idxType) set the index typestatic void
setLateLib
(String vers) Set the value of default lib version for the latest.static void
setMaxMembers
(int n) Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static void
setReadOnly
(boolean b) Set the flag to indicate if default file access is read only.static void
setReadSWMR
(boolean b) Set the flag to indicate if default file access is read SWMR.static void
setRecentFiles
(ArrayList<String> recentFilesList) Sets the list of most recently accessed files.static void
setRootDir
(String rDir) set the path of the default root directorystatic 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 applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static void
setTimerRefresh
(int trefresh) sets the timer refreshstatic void
setUsersGuide
(String str) set the path of H5View User's guidestatic void
setWorkDir
(String wDir) set the path of the default work directorystatic boolean
Returns true if "show image values" is set.static boolean
Returns 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, setValue
Methods 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
- Returns:
- the Folder Close Icon
-
getFoldercloseIconA
- Returns:
- the Folder Close with Attribute Icon
-
getFolderopenIcon
- Returns:
- the Folder Open Icon
-
getFolderopenIconA
- Returns:
- the Folder Open with Attribute Icon
-
getHdfIcon
- Returns:
- the HDF Icon
-
getH4Icon
- Returns:
- the HDF4 Icon
-
getH4IconR
- Returns:
- the read-only HDF4 Icon
-
getH5Icon
- Returns:
- the HDF5 Icon
-
getH5IconR
- Returns:
- the read-only HDF5 Icon
-
getNC3Icon
- Returns:
- the netcdf Icon
-
getNC3IconR
- Returns:
- the read-only netcdf Icon
-
getDatasetIcon
- Returns:
- the Dataset Icon
-
getDatasetIconA
- Returns:
- the Dataset with Attribute Icon
-
getDatatypeIcon
- Returns:
- the Datatype Icon
-
getDatatypeIconA
- Returns:
- the Datatype with Attribute Icon
-
getLinkIcon
- Returns:
- the Link Icon
-
getFileopenIcon
- Returns:
- the File Open Icon
-
getFilesaveIcon
- Returns:
- the File Save Icon
-
getFilenewIcon
- Returns:
- the File New Icon
-
getFilecloseIcon
- Returns:
- the File Close Icon
-
getPaletteIcon
- Returns:
- the Palette Icon
-
getBrightIcon
- Returns:
- the Bright Icon
-
getAutocontrastIcon
- Returns:
- the Autocontrast Icon
-
getImageIcon
- Returns:
- the Image Icon
-
getTableIcon
- Returns:
- the Table Icon
-
getTextIcon
- Returns:
- the Text Icon
-
getImageIconA
- Returns:
- the Image with Attribute Icon
-
getTableIconA
- Returns:
- the Table with Attribute Icon
-
getTextIconA
- Returns:
- the Text with Attribute Icon
-
getZoominIcon
- Returns:
- the Zoom In Icon
-
getZoomoutIcon
- Returns:
- the Zoom Out Icon
-
getBlankIcon
- Returns:
- the Blank Icon
-
getHelpIcon
- Returns:
- the Help Icon
-
getCopyIcon
- Returns:
- the Copy Icon
-
getCutIcon
- Returns:
- the Cut Icon
-
getPasteIcon
- Returns:
- the Paste Icon
-
getLargeHdfIcon
- Returns:
- the Large HDF Icon
-
getPreviousIcon
- Returns:
- the Previous Icon
-
getNextIcon
- Returns:
- the Next Icon
-
getFirstIcon
- Returns:
- the First Icon
-
getLastIcon
- Returns:
- the Last Icon
-
getChartIcon
- Returns:
- the Chart Icon
-
getAnimationIcon
- Returns:
- the Animation Icon
-
getAppsIcon
- Returns:
- the Apps Icon
-
getUrlIcon
- Returns:
- the Url Icon
-
getVideoIcon
- Returns:
- the Video Icon
-
getXlsIcon
- Returns:
- the Xls Icon
-
getPdfIcon
- Returns:
- the Pdf Icon
-
getAudioIcon
- Returns:
- the Audio Icon
-
getQuestionIcon
- Returns:
- the Question Icon
-
loadIcons
Load the Icons -
load
Load user properties from property file- Overrides:
load
in classorg.eclipse.jface.preference.PreferenceStore
- Throws:
IOException
- if a failure occurred
-
save
Save user properties into property file- Specified by:
save
in interfaceorg.eclipse.jface.preference.IPersistentPreferenceStore
- Overrides:
save
in classorg.eclipse.jface.preference.PreferenceStore
- Throws:
IOException
- if a failure occurred
-
getPropertyFile
- Returns:
- the name of the user property file
-
getViewRoot
- Returns:
- the root directory where the HDFView is installed.
-
getWorkDir
- Returns:
- the default work directory, where the open file starts.
-
getMaxRecentFiles
- Returns:
- the maximum number of the most recent file
-
getUsersGuide
- Returns:
- the path of the HDFView users guide
-
getDataDelimiter
- Returns:
- the delimiter of data values
-
getImageOrigin
- Returns:
- the image origin
-
getIndexType
- Returns:
- the default index type for display
-
getIndexOrder
- Returns:
- the default index order for display
-
getTimerRefresh
- Returns:
- the timer refresh size
-
setTimerRefresh
sets the timer refresh- Parameters:
trefresh
- the timer refresh
-
getFontSize
- Returns:
- the font size
-
getFontType
- Returns:
- the font type
-
getFileExtension
- 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
- Returns:
- the path of the H5toH5 converter
-
getMRF
- Returns:
- the list of most recent files
-
getPaletteList
- Returns:
- the list of palette files
-
getSrbAccount
- Returns:
- the SRB account list
-
getTreeViewList
- Returns:
- a list of treeview modules
-
getMetaDataViewList
- Returns:
- a list of metadataview modules
-
getTableViewList
- Returns:
- a list of tableview modules
-
getImageViewList
- Returns:
- a list of imageview modules
-
getPaletteViewList
- Returns:
- a list of paletteview modules
-
getHelpViewList
- 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
-
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
- Returns:
- the convertEnum
-
showRegRefValues
Returns true if "show regref values" is set.- Returns:
- true if "show regref values" is set; otherwise, returns false.
-
isIndexBase1
- Returns:
- the isIndexBase1
-
setConvertEnum
- Parameters:
convertEnum
- the convertEnum to set
-
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.
-