Class AbstractTheme

    • Constructor Detail

      • AbstractTheme

        public AbstractTheme()
    • Method Detail

      • isAvailable

        public boolean isAvailable()
        Description copied from interface: Theme
        Indicates, whether this Theme is available on the platform beaTunes is currently running on.
        Specified by:
        isAvailable in interface Theme
        Returns:
        true or false
      • paintBackground

        public void paintBackground​(Graphics graphics,
                                    Container container)
        Description copied from interface: Theme
        Paints a themed background.
        Specified by:
        paintBackground in interface Theme
        Parameters:
        graphics - graphics
        container - component to paint in
      • requiresRestart

        public boolean requiresRestart()
        Description copied from interface: Theme
        Indicates that a restart is required to fully switch to or from this theme.
        Specified by:
        requiresRestart in interface Theme
        Returns:
        true or false
      • getResource

        public URL getResource​(String resourceName)
        Description copied from interface: Theme
        Used for theme specific loading of resources.
        Specified by:
        getResource in interface Theme
        Parameters:
        resourceName - name of a resource, e.g. "newplaylist.png"
        Returns:
        the resource URL or null, if the resource should be resolved by the application instead of the theme.
      • hasFocus

        protected boolean hasFocus​(Container container)
      • getBackgroundPaint

        public Paint getBackgroundPaint​(Container container)
        Description copied from interface: Theme
        Background paint.
        Specified by:
        getBackgroundPaint in interface Theme
        Parameters:
        container - component
        Returns:
        background paint
      • getFocusedBackgroundPaint

        public Paint getFocusedBackgroundPaint​(Container container)
        Description copied from interface: Theme
        Background paint. This is used for the icon in the general preferences.
        Specified by:
        getFocusedBackgroundPaint in interface Theme
        Parameters:
        container - component
        Returns:
        background paint
      • getBackgroundPaint

        public abstract Paint getBackgroundPaint​(Container container,
                                                 boolean hasFocus)
        Parameters:
        container - component to paint
        Returns:
        paint to paint the background of this component