Class InstalledTheme

    • Constructor Detail

      • InstalledTheme

        public InstalledTheme​(PluginBundle bundle,
                              java.lang.String className)
                       throws java.io.IOException,
                              PluginException
        Creates a new InstalledTheme instance that describes the theme with the given className.
        Parameters:
        bundle - the bundle that the theme class is stored in, or null for built in themes
        className - the class used to instantiate the theme
        Throws:
        PluginException - if the theme is unavailable or there is an exception while extracting the theme information
        java.lang.NullPointerException - if className is null
        java.io.IOException
    • Method Detail

      • getThemeClass

        public java.lang.String getThemeClass()
        Returns the fully qualified name of the class that must be instantiated to install this theme (that is, the Theme subclass).
        Returns:
        the name of the Theme subclass
      • getName

        public java.lang.String getName()
        Returns the theme's human-friendly name.
        Specified by:
        getName in class InstalledBundleObject
        Returns:
        a short name for the theme
      • getDescription

        public java.lang.String getDescription()
        Description copied from class: InstalledBundleObject
        Returns a description of the plug-in (or other bundle object). If necessary, a new instance of the plug-in will be created temporarily in order to get this information.
        Specified by:
        getDescription in class InstalledBundleObject
        Returns:
        the description reported by the plug-in
      • getLargeIcon

        public ThemedIcon getLargeIcon()
        Returns a large icon for the theme.
        Returns:
        a large icon
      • getScreenshotUrl

        public java.net.URL getScreenshotUrl()
        Returns a URL for the location of a screenshot image if one is available, otherwise returns null.
        Returns:
        the preview screenshot URL for the theme, or null
      • getScreenshot

        public java.awt.image.BufferedImage getScreenshot()
        Returns a screenshot of the theme if one is available, otherwise returns null.
        Returns:
        the preview screenshot for the theme, or null
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object