类 Options


  • public class Options
    extends java.lang.Object
    作者:
    yaqiang
    • 构造器详细资料

      • Options

        public Options()
    • 方法详细资料

      • getTextFont

        public java.awt.Font getTextFont()
        Get text font
        返回:
        Text Font
      • setTextFont

        public void setTextFont​(java.awt.Font font)
        Set text font
        参数:
        font - Text font
      • getFileName

        public java.lang.String getFileName()
        Get file name
        返回:
        File name
      • getMainFormLocation

        public java.awt.Point getMainFormLocation()
        Get main form location
        返回:
        Main form location
      • setMainFormLocation

        public void setMainFormLocation​(java.awt.Point value)
        Set main form location
        参数:
        value - Main form location
      • getMainFormSize

        public java.awt.Dimension getMainFormSize()
        Get main form size
        返回:
        Main form size
      • setMainFormSize

        public void setMainFormSize​(java.awt.Dimension value)
        Set main form size
        参数:
        value - Main form size
      • getCurrentFolder

        public java.lang.String getCurrentFolder()
        Get current folder
        返回:
        Current folder
      • setCurrentFolder

        public void setCurrentFolder​(java.lang.String value)
        Set current folder
        参数:
        value - Current folder
      • getRecentFolders

        public java.util.List<java.lang.String> getRecentFolders()
        Get recent used folders
        返回:
        Recent used folders
      • setRecentFolders

        public void setRecentFolders​(java.util.List<java.lang.String> value)
        Set recent used folders
        参数:
        value - Recent used folders
      • getOpenedFiles

        public java.util.List<java.lang.String> getOpenedFiles()
        Get opened python files
        返回:
        Opened files
      • setOpenedFiles

        public void setOpenedFiles​(java.util.List<java.lang.String> value)
        Set opened python files
        参数:
        value - Opened files
      • getRecentFiles

        public java.util.List<java.lang.String> getRecentFiles()
        Get recent python files
        返回:
        Recent files
      • setRecentFiles

        public void setRecentFiles​(java.util.List<java.lang.String> value)
        Set recent python files
        参数:
        value - Recent files
      • getLookFeel

        public java.lang.String getLookFeel()
        Get look and feel
        返回:
        Look and feel
      • setLookFeel

        public void setLookFeel​(java.lang.String value)
        Set look and feel
        参数:
        value - look and feel
      • isDoubleBuffer

        public boolean isDoubleBuffer()
        Get if using off screen image double buffering. Using double buffering will be faster but lower view quality in high dpi screen computer.
        返回:
        Boolean
      • setDoubleBuffer

        public void setDoubleBuffer​(boolean value)
        Set using off screen image double buffering or not.
        参数:
        value - Boolean
      • isLafDecorated

        public boolean isLafDecorated()
        Get if enable look and feel decorated
        返回:
        Boolean
      • setLafDecorated

        public void setLafDecorated​(boolean value)
        Set enable or not of look and feel decorated
        参数:
        value - Boolean
      • isDockWindowDecorated

        public boolean isDockWindowDecorated()
        Get dock window decorated or not
        返回:
        Boolean
      • setDowckWindowDecorated

        public void setDowckWindowDecorated​(boolean value)
        Set dock window decorated or not
        参数:
        value - Boolean
      • addRecentFile

        public void addRecentFile​(java.lang.String fileName)
        Add a rencent opened file name
        参数:
        fileName - Recent opened file name
      • saveConfigFile

        public void saveConfigFile​(java.lang.String fileName)
                            throws javax.xml.parsers.ParserConfigurationException
        Save configure file
        参数:
        fileName - File name
        抛出:
        javax.xml.parsers.ParserConfigurationException
      • loadConfigFile

        public void loadConfigFile​(java.lang.String fileName)
                            throws javax.xml.parsers.ParserConfigurationException,
                                   org.xml.sax.SAXException,
                                   java.io.IOException
        Load configure file
        参数:
        fileName - File name
        抛出:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException