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
public class ViewProperties extends org.eclipse.jface.preference.PreferenceStore
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ViewProperties.BITMASK_OP
Property keys control how the data is displayed.static class
ViewProperties.DATA_VIEW_KEY
Property keys control how the data is displayed.static class
ViewProperties.DataViewType
Used to create different DataViews for a given HObject. -
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_COMPOUND_DATASET_TABLEVIEW_NAME
static String
DEFAULT_DATASET_METADATAVIEW_NAME
static String
DEFAULT_DATATYPE_METADATAVIEW_NAME
static String
DEFAULT_GROUP_METADATAVIEW_NAME
Default MetaDataView class namesstatic String
DEFAULT_IMAGEVIEW_NAME
Default ImageView class namesstatic String
DEFAULT_LINK_METADATAVIEW_NAME
static String
DEFAULT_MODULE_TEXT
Text for default selection of modulesstatic String
DEFAULT_PALETTEVIEW_NAME
Default PaletteView class namesstatic String
DEFAULT_SCALAR_ATTRIBUTE_TABLEVIEW_NAME
static String
DEFAULT_SCALAR_DATASET_TABLEVIEW_NAME
Default TableView class namesstatic String
DEFAULT_TREEVIEW_NAME
Default TreeView class namesstatic String
DELIMITER_COLON
name of the tab delimiterstatic String
DELIMITER_COMMA
name of the tab delimiterstatic String
DELIMITER_SEMI_COLON
name of the tab delimiterstatic String
DELIMITER_SPACE
name of the tab delimiterstatic String
DELIMITER_TAB
name of the tab delimiterstatic int
MAX_RECENT_FILES
the maximum number of most recent filesstatic String
ORIGIN_LL
image origin: LowerLeftstatic String
ORIGIN_LR
image origin: LowerRightstatic String
ORIGIN_UL
image origin: UpperLeftstatic String
ORIGIN_UR
image origin: UpperRightstatic String
VERSION
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
Constructors Constructor Description ViewProperties(String viewRoot)
Creates a property list with given root directory of the HDFView. -
Method Summary
Modifier and Type Method Description static String
createPropertyFile(String userHomeFile, String userDirFile)
static org.eclipse.swt.graphics.Image
getAnimationIcon()
static org.eclipse.swt.graphics.Image
getAppsIcon()
static org.eclipse.swt.graphics.Image
getAudioIcon()
static org.eclipse.swt.graphics.Image
getAutocontrastIcon()
static org.eclipse.swt.graphics.Image
getBlankIcon()
static org.eclipse.swt.graphics.Image
getBrightIcon()
static org.eclipse.swt.graphics.Image
getChartIcon()
static org.eclipse.swt.graphics.Image
getCopyIcon()
static org.eclipse.swt.graphics.Image
getCutIcon()
static String
getDataDelimiter()
static org.eclipse.swt.graphics.Image
getDatasetIcon()
static org.eclipse.swt.graphics.Image
getDatasetIconA()
static org.eclipse.swt.graphics.Image
getDatatypeIcon()
static org.eclipse.swt.graphics.Image
getDatatypeIconA()
static String
getEarlyLib()
Returns value of default lib version for the earliest.static org.eclipse.swt.graphics.Image
getFilecloseIcon()
static String
getFileExtension()
static org.eclipse.swt.graphics.Image
getFilenewIcon()
static org.eclipse.swt.graphics.Image
getFileopenIcon()
static org.eclipse.swt.graphics.Image
getFilesaveIcon()
static org.eclipse.swt.graphics.Image
getFirstIcon()
static org.eclipse.swt.graphics.Image
getFoldercloseIcon()
static org.eclipse.swt.graphics.Image
getFoldercloseIconA()
static org.eclipse.swt.graphics.Image
getFolderopenIcon()
static org.eclipse.swt.graphics.Image
getFolderopenIconA()
static int
getFontSize()
static String
getFontType()
static org.eclipse.swt.graphics.Image
getH4Icon()
static org.eclipse.swt.graphics.Image
getH4IconR()
static String
getH4toH5()
static org.eclipse.swt.graphics.Image
getH5Icon()
static org.eclipse.swt.graphics.Image
getH5IconR()
static org.eclipse.swt.graphics.Image
getHdfIcon()
static org.eclipse.swt.graphics.Image
getHelpIcon()
static List<String>
getHelpViewList()
static org.eclipse.swt.graphics.Image
getImageIcon()
static org.eclipse.swt.graphics.Image
getImageIconA()
static String
getImageOrigin()
static List<String>
getImageViewList()
static String
getIndexOrder()
static String
getIndexType()
static org.eclipse.swt.graphics.Image
getLargeHdfIcon()
static org.eclipse.swt.graphics.Image
getLastIcon()
static String
getLateLib()
Returns value of default lib version for the latest.static org.eclipse.swt.graphics.Image
getLinkIcon()
static int
getMaxMembers()
Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static int
getMaxRecentFiles()
static List<String>
getMetaDataViewList()
static List<String>
getMRF()
static org.eclipse.swt.graphics.Image
getNC3Icon()
static org.eclipse.swt.graphics.Image
getNC3IconR()
static org.eclipse.swt.graphics.Image
getNextIcon()
static org.eclipse.swt.graphics.Image
getPaletteIcon()
static List<String>
getPaletteList()
static List<String>
getPaletteViewList()
static org.eclipse.swt.graphics.Image
getPasteIcon()
static org.eclipse.swt.graphics.Image
getPdfIcon()
static org.eclipse.swt.graphics.Image
getPreviousIcon()
static String
getPropertyFile()
static org.eclipse.swt.graphics.Image
getQuestionIcon()
static List<String[]>
getSrbAccount()
static int
getStartMembers()
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
getTableIcon()
static org.eclipse.swt.graphics.Image
getTableIconA()
static List<String>
getTableViewList()
static org.eclipse.swt.graphics.Image
getTextIcon()
static org.eclipse.swt.graphics.Image
getTextIconA()
static List<String>
getTreeViewList()
static org.eclipse.swt.graphics.Image
getUrlIcon()
static String
getUsersGuide()
static org.eclipse.swt.graphics.Image
getVideoIcon()
static String
getViewRoot()
static String
getWorkDir()
static org.eclipse.swt.graphics.Image
getXlsIcon()
static org.eclipse.swt.graphics.Image
getZoominIcon()
static org.eclipse.swt.graphics.Image
getZoomoutIcon()
static boolean
isAutoContrast()
Returns true if auto contrast is used in image processing.static boolean
isConvertEnum()
static boolean
isIndexBase1()
static boolean
isReadOnly()
Returns true if default file access is read only.void
load()
Load user properties from property filestatic ClassLoader
loadExtClass()
load module classesstatic void
loadIcons()
void
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
setH4toH5(String tool)
set the path of the H4 to H5 converterstatic void
setImageOrigin(String o)
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
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
setUsersGuide(String str)
set the path of H5View User's guidestatic void
setWorkDir(String wDir)
set the path of the default work directorystatic boolean
showImageValues()
Returns true if "show image values" is set.static boolean
showRegRefValues()
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
VERSION
the version of the HDFViewer -
MAX_RECENT_FILES
the maximum number of most recent files- See Also:
- Constant Field Values
-
DELIMITER_TAB
name of the tab delimiter- See Also:
- Constant Field Values
-
DELIMITER_COMMA
name of the tab delimiter- See Also:
- Constant Field Values
-
DELIMITER_SPACE
name of the tab delimiter- See Also:
- Constant Field Values
-
DELIMITER_COLON
name of the tab delimiter- See Also:
- Constant Field Values
-
ORIGIN_UL
image origin: UpperLeft- See Also:
- Constant Field Values
-
ORIGIN_LL
image origin: LowerLeft- See Also:
- Constant Field Values
-
ORIGIN_UR
image origin: UpperRight- See Also:
- Constant Field Values
-
ORIGIN_LR
image origin: LowerRight- See Also:
- Constant Field Values
-
DELIMITER_SEMI_COLON
name of the tab delimiter- See Also:
- Constant Field Values
-
DEFAULT_MODULE_TEXT
Text for default selection of modules- See Also:
- Constant Field Values
-
DEFAULT_TREEVIEW_NAME
Default TreeView class names- See Also:
- Constant Field Values
-
DEFAULT_SCALAR_DATASET_TABLEVIEW_NAME
Default TableView class names- See Also:
- Constant Field Values
-
DEFAULT_SCALAR_ATTRIBUTE_TABLEVIEW_NAME
- See Also:
- Constant Field Values
-
DEFAULT_COMPOUND_DATASET_TABLEVIEW_NAME
- See Also:
- Constant Field Values
-
DEFAULT_GROUP_METADATAVIEW_NAME
Default MetaDataView class names- See Also:
- Constant Field Values
-
DEFAULT_DATASET_METADATAVIEW_NAME
- See Also:
- Constant Field Values
-
DEFAULT_DATATYPE_METADATAVIEW_NAME
- See Also:
- Constant Field Values
-
DEFAULT_LINK_METADATAVIEW_NAME
- See Also:
- Constant Field Values
-
DEFAULT_IMAGEVIEW_NAME
Default ImageView class names- See Also:
- Constant Field Values
-
DEFAULT_PALETTEVIEW_NAME
Default PaletteView class names- See Also:
- Constant Field Values
-
-
Constructor Details
-
ViewProperties
Creates a property list with given root directory of the HDFView.- Parameters:
viewRoot
- the root directory of the HDFView
-
-
Method Details
-
createPropertyFile
-
loadExtClass
load module classes- Returns:
- the ClassLoader
-
getFoldercloseIcon
-
getFoldercloseIconA
-
getFolderopenIcon
-
getFolderopenIconA
-
getHdfIcon
-
getH4Icon
-
getH4IconR
-
getH5Icon
-
getH5IconR
-
getNC3Icon
-
getNC3IconR
-
getDatasetIcon
-
getDatasetIconA
-
getDatatypeIcon
-
getDatatypeIconA
-
getLinkIcon
-
getFileopenIcon
-
getFilesaveIcon
-
getFilenewIcon
-
getFilecloseIcon
-
getPaletteIcon
-
getBrightIcon
-
getAutocontrastIcon
-
getImageIcon
-
getTableIcon
-
getTextIcon
-
getImageIconA
-
getTableIconA
-
getTextIconA
-
getZoominIcon
-
getZoomoutIcon
-
getBlankIcon
-
getHelpIcon
-
getCopyIcon
-
getCutIcon
-
getPasteIcon
-
getLargeHdfIcon
-
getPreviousIcon
-
getNextIcon
-
getFirstIcon
-
getLastIcon
-
getChartIcon
-
getAnimationIcon
-
getAppsIcon
-
getUrlIcon
-
getVideoIcon
-
getXlsIcon
-
getPdfIcon
-
getAudioIcon
-
getQuestionIcon
-
loadIcons
-
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
-
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
-
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.
-
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.
-