public class ViewProperties extends org.eclipse.jface.preference.PreferenceStore
Modifier and Type | Class and 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.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_COMPOUND_ATTRIBUTE_TABLEVIEW_NAME |
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 names
|
static String |
DEFAULT_IMAGEVIEW_NAME
Default ImageView class names
|
static String |
DEFAULT_LINK_METADATAVIEW_NAME |
static String |
DEFAULT_MODULE_TEXT
Text for default selection of modules
|
static String |
DEFAULT_PALETTEVIEW_NAME
Default PaletteView class names
|
static String |
DEFAULT_SCALAR_ATTRIBUTE_TABLEVIEW_NAME |
static String |
DEFAULT_SCALAR_DATASET_TABLEVIEW_NAME
Default TableView class names
|
static String |
DEFAULT_TREEVIEW_NAME
Default TreeView class names
|
static String |
DELIMITER_COLON
name of the tab delimiter
|
static String |
DELIMITER_COMMA
name of the tab delimiter
|
static String |
DELIMITER_SEMI_COLON
name of the tab delimiter
|
static String |
DELIMITER_SPACE
name of the tab delimiter
|
static String |
DELIMITER_TAB
name of the tab delimiter
|
static int |
MAX_RECENT_FILES
the maximum number of most recent files
|
static String |
ORIGIN_LL
image origin: LowerLeft
|
static String |
ORIGIN_LR
image origin: LowerRight
|
static String |
ORIGIN_UL
image origin: UpperLeft
|
static String |
ORIGIN_UR
image origin: UpperRight
|
static String |
VERSION
the version of the HDFViewer
|
Constructor and Description |
---|
ViewProperties(String viewRoot)
Creates a property list with given root directory of the HDFView.
|
Modifier and Type | Method and Description |
---|---|
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 Vector<String> |
getHelpViewList() |
static org.eclipse.swt.graphics.Image |
getImageIcon() |
static org.eclipse.swt.graphics.Image |
getImageIconA() |
static String |
getImageOrigin() |
static Vector<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 Vector<String> |
getMetaDataViewList() |
static Vector<String> |
getMRF() |
static org.eclipse.swt.graphics.Image |
getNextIcon() |
static org.eclipse.swt.graphics.Image |
getPaletteIcon() |
static Vector<String> |
getPaletteList() |
static Vector<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 Vector<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 Vector<String> |
getTableViewList() |
static org.eclipse.swt.graphics.Image |
getTextIcon() |
static org.eclipse.swt.graphics.Image |
getTextIconA() |
static Vector<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 file
|
static 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(String delim)
set the delimiter of data values
|
static void |
setEarlyLib(String vers)
Set the value of default lib version for the earliest.
|
static void |
setFileExtension(String ext)
set the file extension
|
static void |
setFontSize(int fsize)
sets the font size
|
static void |
setFontType(String ftype)
sets the font type
|
static void |
setH4toH5(String tool)
set the path of the H4 to H5 converter
|
static void |
setImageOrigin(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(String idxOrder)
set the index order
|
static void |
setIndexType(String idxType)
set the index type
|
static 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(Vector<String> recentFilesList)
Sets the list of most recently accessed files.
|
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 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 guide
|
static void |
setWorkDir(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.
|
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
public static final String VERSION
public static final int MAX_RECENT_FILES
public static final String DELIMITER_TAB
public static final String DELIMITER_COMMA
public static final String DELIMITER_SPACE
public static final String DELIMITER_COLON
public static final String ORIGIN_UL
public static final String ORIGIN_LL
public static final String ORIGIN_UR
public static final String ORIGIN_LR
public static final String DELIMITER_SEMI_COLON
public static final String DEFAULT_MODULE_TEXT
public static final String DEFAULT_TREEVIEW_NAME
public static final String DEFAULT_SCALAR_DATASET_TABLEVIEW_NAME
public static final String DEFAULT_SCALAR_ATTRIBUTE_TABLEVIEW_NAME
public static final String DEFAULT_COMPOUND_DATASET_TABLEVIEW_NAME
public static final String DEFAULT_COMPOUND_ATTRIBUTE_TABLEVIEW_NAME
public static final String DEFAULT_GROUP_METADATAVIEW_NAME
public static final String DEFAULT_DATASET_METADATAVIEW_NAME
public static final String DEFAULT_DATATYPE_METADATAVIEW_NAME
public static final String DEFAULT_LINK_METADATAVIEW_NAME
public static final String DEFAULT_IMAGEVIEW_NAME
public static final String DEFAULT_PALETTEVIEW_NAME
public ViewProperties(String viewRoot)
viewRoot
- the root directory of the HDFViewpublic static ClassLoader loadExtClass()
public static String getViewRoot()
public static org.eclipse.swt.graphics.Image getFoldercloseIcon()
public static org.eclipse.swt.graphics.Image getFoldercloseIconA()
public static org.eclipse.swt.graphics.Image getFolderopenIcon()
public static org.eclipse.swt.graphics.Image getFolderopenIconA()
public static org.eclipse.swt.graphics.Image getHdfIcon()
public static org.eclipse.swt.graphics.Image getH4Icon()
public static org.eclipse.swt.graphics.Image getH4IconR()
public static org.eclipse.swt.graphics.Image getH5Icon()
public static org.eclipse.swt.graphics.Image getH5IconR()
public static org.eclipse.swt.graphics.Image getDatasetIcon()
public static org.eclipse.swt.graphics.Image getDatasetIconA()
public static org.eclipse.swt.graphics.Image getDatatypeIcon()
public static org.eclipse.swt.graphics.Image getDatatypeIconA()
public static org.eclipse.swt.graphics.Image getLinkIcon()
public static org.eclipse.swt.graphics.Image getFileopenIcon()
public static org.eclipse.swt.graphics.Image getFilesaveIcon()
public static org.eclipse.swt.graphics.Image getFilenewIcon()
public static org.eclipse.swt.graphics.Image getFilecloseIcon()
public static org.eclipse.swt.graphics.Image getPaletteIcon()
public static org.eclipse.swt.graphics.Image getBrightIcon()
public static org.eclipse.swt.graphics.Image getAutocontrastIcon()
public static org.eclipse.swt.graphics.Image getImageIcon()
public static org.eclipse.swt.graphics.Image getTableIcon()
public static org.eclipse.swt.graphics.Image getTextIcon()
public static org.eclipse.swt.graphics.Image getImageIconA()
public static org.eclipse.swt.graphics.Image getTableIconA()
public static org.eclipse.swt.graphics.Image getTextIconA()
public static org.eclipse.swt.graphics.Image getZoominIcon()
public static org.eclipse.swt.graphics.Image getZoomoutIcon()
public static org.eclipse.swt.graphics.Image getBlankIcon()
public static org.eclipse.swt.graphics.Image getHelpIcon()
public static org.eclipse.swt.graphics.Image getCopyIcon()
public static org.eclipse.swt.graphics.Image getCutIcon()
public static org.eclipse.swt.graphics.Image getPasteIcon()
public static org.eclipse.swt.graphics.Image getLargeHdfIcon()
public static org.eclipse.swt.graphics.Image getPreviousIcon()
public static org.eclipse.swt.graphics.Image getNextIcon()
public static org.eclipse.swt.graphics.Image getFirstIcon()
public static org.eclipse.swt.graphics.Image getLastIcon()
public static org.eclipse.swt.graphics.Image getChartIcon()
public static org.eclipse.swt.graphics.Image getAnimationIcon()
public static org.eclipse.swt.graphics.Image getAppsIcon()
public static org.eclipse.swt.graphics.Image getUrlIcon()
public static org.eclipse.swt.graphics.Image getVideoIcon()
public static org.eclipse.swt.graphics.Image getXlsIcon()
public static org.eclipse.swt.graphics.Image getPdfIcon()
public static org.eclipse.swt.graphics.Image getAudioIcon()
public static org.eclipse.swt.graphics.Image getQuestionIcon()
public static void loadIcons()
public void load() throws IOException
load
in class org.eclipse.jface.preference.PreferenceStore
IOException
- if a failure occurredpublic void save() throws IOException
save
in interface org.eclipse.jface.preference.IPersistentPreferenceStore
save
in class org.eclipse.jface.preference.PreferenceStore
IOException
- if a failure occurredpublic static String getPropertyFile()
public static String getWorkDir()
public static int getMaxRecentFiles()
public static String getUsersGuide()
public static String getDataDelimiter()
public static String getImageOrigin()
public static String getIndexType()
public static String getIndexOrder()
public static int getFontSize()
public static String getFontType()
public static String getFileExtension()
public static void setFontSize(int fsize)
fsize
- the font sizepublic static void setFontType(String ftype)
ftype
- the font typepublic static String getH4toH5()
public static Vector<String> getMRF()
public static Vector<String> getPaletteList()
public static Vector<String[]> getSrbAccount()
public static Vector<String> getTreeViewList()
public static Vector<String> getMetaDataViewList()
public static Vector<String> getTableViewList()
public static Vector<String> getImageViewList()
public static Vector<String> getPaletteViewList()
public static Vector<String> getHelpViewList()
public static void setUsersGuide(String str)
str
- the pathpublic static void setH4toH5(String tool)
tool
- the path of the H4 to H5 converterpublic static void setWorkDir(String wDir)
wDir
- the default work directorypublic static void setFileExtension(String ext)
ext
- the file extensionpublic static void setDataDelimiter(String delim)
delim
- the delimiter of data valuespublic static void setImageOrigin(String o)
o
- the image originpublic static void setIndexType(String idxType)
idxType
- the index typepublic static void setIndexOrder(String idxOrder)
idxOrder
- the index orderpublic 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 String getEarlyLib()
public static void setEarlyLib(String vers)
vers
- the value of default lib version for the earliest.public static String getLateLib()
public static void setLateLib(String vers)
vers
- the value of default lib version for the latest.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.public static void setRecentFiles(Vector<String> recentFilesList)
recentFilesList
- The list of most recently accessed files.Copyright © 2018. All Rights Reserved.