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 SummaryNested Classes Modifier and Type Class Description static classViewProperties.BITMASK_OPProperty keys control how the data is displayed.static classViewProperties.DATA_VIEW_KEYProperty keys control how the data is displayed.static classViewProperties.DataViewTypeUsed to create different DataViews for a given HObject.
- 
Field SummaryFields Modifier and Type Field Description static StringDEFAULT_COMPOUND_DATASET_TABLEVIEW_NAMEstatic StringDEFAULT_DATASET_METADATAVIEW_NAMEstatic StringDEFAULT_DATATYPE_METADATAVIEW_NAMEstatic StringDEFAULT_GROUP_METADATAVIEW_NAMEDefault MetaDataView class namesstatic StringDEFAULT_IMAGEVIEW_NAMEDefault ImageView class namesstatic StringDEFAULT_LINK_METADATAVIEW_NAMEstatic StringDEFAULT_MODULE_TEXTText for default selection of modulesstatic StringDEFAULT_PALETTEVIEW_NAMEDefault PaletteView class namesstatic StringDEFAULT_SCALAR_ATTRIBUTE_TABLEVIEW_NAMEstatic StringDEFAULT_SCALAR_DATASET_TABLEVIEW_NAMEDefault TableView class namesstatic StringDEFAULT_TREEVIEW_NAMEDefault TreeView class namesstatic StringDELIMITER_COLONname of the tab delimiterstatic StringDELIMITER_COMMAname of the tab delimiterstatic StringDELIMITER_SEMI_COLONname of the tab delimiterstatic StringDELIMITER_SPACEname of the tab delimiterstatic StringDELIMITER_TABname of the tab delimiterstatic intMAX_RECENT_FILESthe maximum number of most recent filesstatic StringORIGIN_LLimage origin: LowerLeftstatic StringORIGIN_LRimage origin: LowerRightstatic StringORIGIN_ULimage origin: UpperLeftstatic StringORIGIN_URimage origin: UpperRightstatic StringVERSIONthe version of the HDFViewerFields inherited from interface org.eclipse.jface.preference.IPreferenceStoreBOOLEAN_DEFAULT_DEFAULT, DOUBLE_DEFAULT_DEFAULT, FALSE, FLOAT_DEFAULT_DEFAULT, INT_DEFAULT_DEFAULT, LONG_DEFAULT_DEFAULT, STRING_DEFAULT_DEFAULT, TRUE
- 
Constructor SummaryConstructors Constructor Description ViewProperties(String viewRoot)Creates a property list with given root directory of the HDFView.
- 
Method SummaryModifier and Type Method Description static StringcreatePropertyFile(String userHomeFile, String userDirFile)static org.eclipse.swt.graphics.ImagegetAnimationIcon()static org.eclipse.swt.graphics.ImagegetAppsIcon()static org.eclipse.swt.graphics.ImagegetAudioIcon()static org.eclipse.swt.graphics.ImagegetAutocontrastIcon()static org.eclipse.swt.graphics.ImagegetBlankIcon()static org.eclipse.swt.graphics.ImagegetBrightIcon()static org.eclipse.swt.graphics.ImagegetChartIcon()static org.eclipse.swt.graphics.ImagegetCopyIcon()static org.eclipse.swt.graphics.ImagegetCutIcon()static StringgetDataDelimiter()static org.eclipse.swt.graphics.ImagegetDatasetIcon()static org.eclipse.swt.graphics.ImagegetDatasetIconA()static org.eclipse.swt.graphics.ImagegetDatatypeIcon()static org.eclipse.swt.graphics.ImagegetDatatypeIconA()static StringgetEarlyLib()Returns value of default lib version for the earliest.static org.eclipse.swt.graphics.ImagegetFilecloseIcon()static StringgetFileExtension()static org.eclipse.swt.graphics.ImagegetFilenewIcon()static org.eclipse.swt.graphics.ImagegetFileopenIcon()static org.eclipse.swt.graphics.ImagegetFilesaveIcon()static org.eclipse.swt.graphics.ImagegetFirstIcon()static org.eclipse.swt.graphics.ImagegetFoldercloseIcon()static org.eclipse.swt.graphics.ImagegetFoldercloseIconA()static org.eclipse.swt.graphics.ImagegetFolderopenIcon()static org.eclipse.swt.graphics.ImagegetFolderopenIconA()static intgetFontSize()static StringgetFontType()static org.eclipse.swt.graphics.ImagegetH4Icon()static org.eclipse.swt.graphics.ImagegetH4IconR()static StringgetH4toH5()static org.eclipse.swt.graphics.ImagegetH5Icon()static org.eclipse.swt.graphics.ImagegetH5IconR()static org.eclipse.swt.graphics.ImagegetHdfIcon()static org.eclipse.swt.graphics.ImagegetHelpIcon()static List<String>getHelpViewList()static org.eclipse.swt.graphics.ImagegetImageIcon()static org.eclipse.swt.graphics.ImagegetImageIconA()static StringgetImageOrigin()static List<String>getImageViewList()static StringgetIndexOrder()static StringgetIndexType()static org.eclipse.swt.graphics.ImagegetLargeHdfIcon()static org.eclipse.swt.graphics.ImagegetLastIcon()static StringgetLateLib()Returns value of default lib version for the latest.static org.eclipse.swt.graphics.ImagegetLinkIcon()static intgetMaxMembers()Current Java applications such as HDFView cannot handle files with large number of objects such as 1,000,000 objects.static intgetMaxRecentFiles()static List<String>getMetaDataViewList()static List<String>getMRF()static org.eclipse.swt.graphics.ImagegetNC3Icon()static org.eclipse.swt.graphics.ImagegetNC3IconR()static org.eclipse.swt.graphics.ImagegetNextIcon()static org.eclipse.swt.graphics.ImagegetPaletteIcon()static List<String>getPaletteList()static List<String>getPaletteViewList()static org.eclipse.swt.graphics.ImagegetPasteIcon()static org.eclipse.swt.graphics.ImagegetPdfIcon()static org.eclipse.swt.graphics.ImagegetPreviousIcon()static StringgetPropertyFile()static org.eclipse.swt.graphics.ImagegetQuestionIcon()static List<String[]>getSrbAccount()static intgetStartMembers()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.ImagegetTableIcon()static org.eclipse.swt.graphics.ImagegetTableIconA()static List<String>getTableViewList()static org.eclipse.swt.graphics.ImagegetTextIcon()static org.eclipse.swt.graphics.ImagegetTextIconA()static List<String>getTreeViewList()static org.eclipse.swt.graphics.ImagegetUrlIcon()static StringgetUsersGuide()static org.eclipse.swt.graphics.ImagegetVideoIcon()static StringgetViewRoot()static StringgetWorkDir()static org.eclipse.swt.graphics.ImagegetXlsIcon()static org.eclipse.swt.graphics.ImagegetZoominIcon()static org.eclipse.swt.graphics.ImagegetZoomoutIcon()static booleanisAutoContrast()Returns true if auto contrast is used in image processing.static booleanisConvertEnum()static booleanisIndexBase1()static booleanisReadOnly()Returns true if default file access is read only.voidload()Load user properties from property filestatic ClassLoaderloadExtClass()load module classesstatic voidloadIcons()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)static 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 voidsetH4toH5(String tool)set the path of the H4 to H5 converterstatic voidsetImageOrigin(String o)set 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 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 voidsetUsersGuide(String str)set the path of H5View User's guidestatic voidsetWorkDir(String wDir)set the path of the default work directorystatic booleanshowImageValues()Returns true if "show image values" is set.static booleanshowRegRefValues()Returns true if "show regref values" is set.Methods inherited from class org.eclipse.jface.preference.PreferenceStoreaddPropertyChangeListener, 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.EventManageraddListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
VERSIONthe version of the HDFViewer
- 
MAX_RECENT_FILESthe maximum number of most recent files- See Also:
- Constant Field Values
 
- 
DELIMITER_TABname of the tab delimiter- See Also:
- Constant Field Values
 
- 
DELIMITER_COMMAname of the tab delimiter- See Also:
- Constant Field Values
 
- 
DELIMITER_SPACEname of the tab delimiter- See Also:
- Constant Field Values
 
- 
DELIMITER_COLONname of the tab delimiter- See Also:
- Constant Field Values
 
- 
ORIGIN_ULimage origin: UpperLeft- See Also:
- Constant Field Values
 
- 
ORIGIN_LLimage origin: LowerLeft- See Also:
- Constant Field Values
 
- 
ORIGIN_URimage origin: UpperRight- See Also:
- Constant Field Values
 
- 
ORIGIN_LRimage origin: LowerRight- See Also:
- Constant Field Values
 
- 
DELIMITER_SEMI_COLONname of the tab delimiter- See Also:
- Constant Field Values
 
- 
DEFAULT_MODULE_TEXTText for default selection of modules- See Also:
- Constant Field Values
 
- 
DEFAULT_TREEVIEW_NAMEDefault TreeView class names- See Also:
- Constant Field Values
 
- 
DEFAULT_SCALAR_DATASET_TABLEVIEW_NAMEDefault 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_NAMEDefault 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_NAMEDefault ImageView class names- See Also:
- Constant Field Values
 
- 
DEFAULT_PALETTEVIEW_NAMEDefault PaletteView class names- See Also:
- Constant Field Values
 
 
- 
- 
Constructor Details- 
ViewPropertiesCreates a property list with given root directory of the HDFView.- Parameters:
- viewRoot- the root directory of the HDFView
 
 
- 
- 
Method Details- 
createPropertyFile
- 
loadExtClassload 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
- 
loadLoad user properties from property file- Overrides:
- loadin class- org.eclipse.jface.preference.PreferenceStore
- Throws:
- IOException- if a failure occurred
 
- 
saveSave user properties into property file- Specified by:
- savein interface- org.eclipse.jface.preference.IPersistentPreferenceStore
- Overrides:
- savein class- org.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
 
- 
setFontSizesets the font size- Parameters:
- fsize- the font size
 
- 
setFontTypesets 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
 
- 
setUsersGuideset the path of H5View User's guide- Parameters:
- str- the path
 
- 
setH4toH5set the path of the H4 to H5 converter- Parameters:
- tool- the path of the H4 to H5 converter
 
- 
setRootDirset the path of the default root directory- Parameters:
- rDir- the default root directory
 
- 
setWorkDirset the path of the default work directory- Parameters:
- wDir- the default work directory
 
- 
setFileExtensionset the file extension- Parameters:
- ext- the file extension
 
- 
setDataDelimiterset the delimiter of data values- Parameters:
- delim- the delimiter of data values
 
- 
setImageOriginset the image origin- Parameters:
- o- the image origin
 
- 
setIndexTypeset the index type- Parameters:
- idxType- the index type
 
- 
setIndexOrderset the index order- Parameters:
- idxOrder- the index order
 
- 
setMaxMembersCurrent 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
 
- 
setStartMembersCurrent 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
 
- 
getMaxMembersCurrent 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
 
- 
getStartMembersCurrent 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
 
- 
isAutoContrastReturns true if auto contrast is used in image processing.- Returns:
- true if auto contrast is used in image processing; otherwise, returns false.
 
- 
showImageValuesReturns true if "show image values" is set.- Returns:
- true if "show image values" is set; otherwise, returns false.
 
- 
setAutoContrastSet 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.
 
- 
setShowImageValueSet the flag to indicate if "show image values" is set.- Parameters:
- b- the flag to indicate if if "show image values" is set.
 
- 
isReadOnlyReturns true if default file access is read only.- Returns:
- true if default file access is read only; otherwise, returns false.
 
- 
setReadOnlySet the flag to indicate if default file access is read only.- Parameters:
- b- the flag to indicate if default file access is read only.
 
- 
getEarlyLibReturns value of default lib version for the earliest.- Returns:
- value of default lib version for the earliest.
 
- 
setEarlyLibSet the value of default lib version for the earliest.- Parameters:
- vers- the value of default lib version for the earliest.
 
- 
getLateLibReturns value of default lib version for the latest.- Returns:
- value of default lib version for the latest.
 
- 
setLateLibSet the value of default lib version for the latest.- Parameters:
- vers- the value of default lib version for the latest.
 
- 
isConvertEnum- Returns:
- the convertEnum
 
- 
showRegRefValuesReturns 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
 
- 
setShowRegRefValueSet the flag to indicate if "show RegRef values" is set.- Parameters:
- b- the flag to indicate if if "show RegRef values" is set.
 
- 
setIndexBase1Set the flag to indicate if IndexBase should start at 1.- Parameters:
- b- the flag to indicate if IndexBase should start at 1.
 
- 
setRecentFilesSets the list of most recently accessed files.- Parameters:
- recentFilesList- The list of most recently accessed files.
 
 
-