Package hdf.view

Class ViewProperties

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
  • Field Details

  • Constructor Details

    • ViewProperties

      public ViewProperties​(String viewRoot)
      Creates a property list with given root directory of the HDFView.
      Parameters:
      viewRoot - the root directory of the HDFView
  • Method Details

    • createPropertyFile

      public static String createPropertyFile​(String userHomeFile, String userDirFile)
    • loadExtClass

      public static ClassLoader loadExtClass()
      load module classes
      Returns:
      the ClassLoader
    • getFoldercloseIcon

      public static org.eclipse.swt.graphics.Image getFoldercloseIcon()
    • getFoldercloseIconA

      public static org.eclipse.swt.graphics.Image getFoldercloseIconA()
    • getFolderopenIcon

      public static org.eclipse.swt.graphics.Image getFolderopenIcon()
    • getFolderopenIconA

      public static org.eclipse.swt.graphics.Image getFolderopenIconA()
    • getHdfIcon

      public static org.eclipse.swt.graphics.Image getHdfIcon()
    • getH4Icon

      public static org.eclipse.swt.graphics.Image getH4Icon()
    • getH4IconR

      public static org.eclipse.swt.graphics.Image getH4IconR()
    • getH5Icon

      public static org.eclipse.swt.graphics.Image getH5Icon()
    • getH5IconR

      public static org.eclipse.swt.graphics.Image getH5IconR()
    • getNC3Icon

      public static org.eclipse.swt.graphics.Image getNC3Icon()
    • getNC3IconR

      public static org.eclipse.swt.graphics.Image getNC3IconR()
    • getDatasetIcon

      public static org.eclipse.swt.graphics.Image getDatasetIcon()
    • getDatasetIconA

      public static org.eclipse.swt.graphics.Image getDatasetIconA()
    • getDatatypeIcon

      public static org.eclipse.swt.graphics.Image getDatatypeIcon()
    • getDatatypeIconA

      public static org.eclipse.swt.graphics.Image getDatatypeIconA()
    • getLinkIcon

      public static org.eclipse.swt.graphics.Image getLinkIcon()
    • getFileopenIcon

      public static org.eclipse.swt.graphics.Image getFileopenIcon()
    • getFilesaveIcon

      public static org.eclipse.swt.graphics.Image getFilesaveIcon()
    • getFilenewIcon

      public static org.eclipse.swt.graphics.Image getFilenewIcon()
    • getFilecloseIcon

      public static org.eclipse.swt.graphics.Image getFilecloseIcon()
    • getPaletteIcon

      public static org.eclipse.swt.graphics.Image getPaletteIcon()
    • getBrightIcon

      public static org.eclipse.swt.graphics.Image getBrightIcon()
    • getAutocontrastIcon

      public static org.eclipse.swt.graphics.Image getAutocontrastIcon()
    • getImageIcon

      public static org.eclipse.swt.graphics.Image getImageIcon()
    • getTableIcon

      public static org.eclipse.swt.graphics.Image getTableIcon()
    • getTextIcon

      public static org.eclipse.swt.graphics.Image getTextIcon()
    • getImageIconA

      public static org.eclipse.swt.graphics.Image getImageIconA()
    • getTableIconA

      public static org.eclipse.swt.graphics.Image getTableIconA()
    • getTextIconA

      public static org.eclipse.swt.graphics.Image getTextIconA()
    • getZoominIcon

      public static org.eclipse.swt.graphics.Image getZoominIcon()
    • getZoomoutIcon

      public static org.eclipse.swt.graphics.Image getZoomoutIcon()
    • getBlankIcon

      public static org.eclipse.swt.graphics.Image getBlankIcon()
    • getHelpIcon

      public static org.eclipse.swt.graphics.Image getHelpIcon()
    • getCopyIcon

      public static org.eclipse.swt.graphics.Image getCopyIcon()
    • getCutIcon

      public static org.eclipse.swt.graphics.Image getCutIcon()
    • getPasteIcon

      public static org.eclipse.swt.graphics.Image getPasteIcon()
    • getLargeHdfIcon

      public static org.eclipse.swt.graphics.Image getLargeHdfIcon()
    • getPreviousIcon

      public static org.eclipse.swt.graphics.Image getPreviousIcon()
    • getNextIcon

      public static org.eclipse.swt.graphics.Image getNextIcon()
    • getFirstIcon

      public static org.eclipse.swt.graphics.Image getFirstIcon()
    • getLastIcon

      public static org.eclipse.swt.graphics.Image getLastIcon()
    • getChartIcon

      public static org.eclipse.swt.graphics.Image getChartIcon()
    • getAnimationIcon

      public static org.eclipse.swt.graphics.Image getAnimationIcon()
    • getAppsIcon

      public static org.eclipse.swt.graphics.Image getAppsIcon()
    • getUrlIcon

      public static org.eclipse.swt.graphics.Image getUrlIcon()
    • getVideoIcon

      public static org.eclipse.swt.graphics.Image getVideoIcon()
    • getXlsIcon

      public static org.eclipse.swt.graphics.Image getXlsIcon()
    • getPdfIcon

      public static org.eclipse.swt.graphics.Image getPdfIcon()
    • getAudioIcon

      public static org.eclipse.swt.graphics.Image getAudioIcon()
    • getQuestionIcon

      public static org.eclipse.swt.graphics.Image getQuestionIcon()
    • loadIcons

      public static void loadIcons()
    • load

      public void load() throws IOException
      Load user properties from property file
      Overrides:
      load in class org.eclipse.jface.preference.PreferenceStore
      Throws:
      IOException - if a failure occurred
    • save

      public void save() throws IOException
      Save user properties into property file
      Specified by:
      save in interface org.eclipse.jface.preference.IPersistentPreferenceStore
      Overrides:
      save in class org.eclipse.jface.preference.PreferenceStore
      Throws:
      IOException - if a failure occurred
    • getPropertyFile

      public static String getPropertyFile()
      Returns:
      the name of the user property file
    • getViewRoot

      public static String getViewRoot()
      Returns:
      the root directory where the HDFView is installed.
    • getWorkDir

      public static String getWorkDir()
      Returns:
      the default work directory, where the open file starts.
    • getMaxRecentFiles

      public static int getMaxRecentFiles()
      Returns:
      the maximum number of the most recent file
    • getUsersGuide

      public static String getUsersGuide()
      Returns:
      the path of the HDFView users guide
    • getDataDelimiter

      public static String getDataDelimiter()
      Returns:
      the delimiter of data values
    • getImageOrigin

      public static String getImageOrigin()
      Returns:
      the image origin
    • getIndexType

      public static String getIndexType()
      Returns:
      the default index type for display
    • getIndexOrder

      public static String getIndexOrder()
      Returns:
      the default index order for display
    • getFontSize

      public static int getFontSize()
      Returns:
      the font size
    • getFontType

      public static String getFontType()
      Returns:
      the font type
    • getFileExtension

      public static String getFileExtension()
      Returns:
      the file extensions of supported file formats
    • setFontSize

      public static void setFontSize​(int fsize)
      sets the font size
      Parameters:
      fsize - the font size
    • setFontType

      public static void setFontType​(String ftype)
      sets the font type
      Parameters:
      ftype - the font type
    • getH4toH5

      public static String getH4toH5()
      Returns:
      the path of the H5toH5 converter
    • getMRF

      public static List<String> getMRF()
      Returns:
      the list of most recent files
    • getPaletteList

      public static List<String> getPaletteList()
      Returns:
      the list of palette files
    • getSrbAccount

      public static List<String[]> getSrbAccount()
    • getTreeViewList

      public static List<String> getTreeViewList()
      Returns:
      a list of treeview modules
    • getMetaDataViewList

      public static List<String> getMetaDataViewList()
      Returns:
      a list of metadataview modules
    • getTableViewList

      public static List<String> getTableViewList()
      Returns:
      a list of tableview modules
    • getImageViewList

      public static List<String> getImageViewList()
      Returns:
      a list of imageview modules
    • getPaletteViewList

      public static List<String> getPaletteViewList()
      Returns:
      a list of paletteview modules
    • getHelpViewList

      public static List<String> getHelpViewList()
      Returns:
      a list of helpview modules
    • setUsersGuide

      public static void setUsersGuide​(String str)
      set the path of H5View User's guide
      Parameters:
      str - the path
    • setH4toH5

      public static void setH4toH5​(String tool)
      set the path of the H4 to H5 converter
      Parameters:
      tool - the path of the H4 to H5 converter
    • setRootDir

      public static void setRootDir​(String rDir)
      set the path of the default root directory
      Parameters:
      rDir - the default root directory
    • setWorkDir

      public static void setWorkDir​(String wDir)
      set the path of the default work directory
      Parameters:
      wDir - the default work directory
    • setFileExtension

      public static void setFileExtension​(String ext)
      set the file extension
      Parameters:
      ext - the file extension
    • setDataDelimiter

      public static void setDataDelimiter​(String delim)
      set the delimiter of data values
      Parameters:
      delim - the delimiter of data values
    • setImageOrigin

      public static void setImageOrigin​(String o)
      set the image origin
      Parameters:
      o - the image origin
    • setIndexType

      public static void setIndexType​(String idxType)
      set the index type
      Parameters:
      idxType - the index type
    • setIndexOrder

      public static void setIndexOrder​(String idxOrder)
      set the index order
      Parameters:
      idxOrder - the index order
    • setMaxMembers

      public 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. 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

      public 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. 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

      public static int 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

      public static int 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

      public static boolean 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

      public static boolean showImageValues()
      Returns true if "show image values" is set.
      Returns:
      true if "show image values" is set; otherwise, returns false.
    • setAutoContrast

      public static void setAutoContrast​(boolean b)
      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

      public static void setShowImageValue​(boolean b)
      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

      public static boolean isReadOnly()
      Returns true if default file access is read only.
      Returns:
      true if default file access is read only; otherwise, returns false.
    • setReadOnly

      public static void setReadOnly​(boolean b)
      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

      public static String getEarlyLib()
      Returns value of default lib version for the earliest.
      Returns:
      value of default lib version for the earliest.
    • setEarlyLib

      public static void setEarlyLib​(String vers)
      Set the value of default lib version for the earliest.
      Parameters:
      vers - the value of default lib version for the earliest.
    • getLateLib

      public static String getLateLib()
      Returns value of default lib version for the latest.
      Returns:
      value of default lib version for the latest.
    • setLateLib

      public static void setLateLib​(String vers)
      Set the value of default lib version for the latest.
      Parameters:
      vers - the value of default lib version for the latest.
    • isConvertEnum

      public static boolean isConvertEnum()
      Returns:
      the convertEnum
    • showRegRefValues

      public static boolean showRegRefValues()
      Returns true if "show regref values" is set.
      Returns:
      true if "show regref values" is set; otherwise, returns false.
    • isIndexBase1

      public static boolean isIndexBase1()
      Returns:
      the isIndexBase1
    • setConvertEnum

      public static void setConvertEnum​(boolean convertEnum)
      Parameters:
      convertEnum - the convertEnum to set
    • setShowRegRefValue

      public static void setShowRegRefValue​(boolean b)
      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

      public static void setIndexBase1​(boolean b)
      Set the flag to indicate if IndexBase should start at 1.
      Parameters:
      b - the flag to indicate if IndexBase should start at 1.
    • setRecentFiles

      public static void setRecentFiles​(ArrayList<String> recentFilesList)
      Sets the list of most recently accessed files.
      Parameters:
      recentFilesList - The list of most recently accessed files.