Class GradientBackgroundTheme

    • Field Detail

      • VERY_LIGHT_GRAY

        public static final Color VERY_LIGHT_GRAY
    • Constructor Detail

      • GradientBackgroundTheme

        public GradientBackgroundTheme​(Color toColor)
      • GradientBackgroundTheme

        public GradientBackgroundTheme()
    • Method Detail

      • setToColor

        public void setToColor​(String color)
      • activate

        public void activate()
        Description copied from interface: Theme
        Is called by the system, when the Theme is activated.
      • deactivate

        public void deactivate()
        Description copied from interface: Theme
        Is called by the system when the Theme is de-activated. The Theme is expected to return any UI defaults etc. to their original state.
      • customize

        public void customize​(Container container)
        Description copied from interface: Theme
        Is called by the systems for a number of different components and give this theme a chance to customize them.
        Parameters:
        container - component to customize
      • getBackgroundPaint

        public Paint getBackgroundPaint​(Container container,
                                        boolean hasFocus)
        Specified by:
        getBackgroundPaint in class AbstractTheme
        Parameters:
        container - component to paint
        Returns:
        paint to paint the background of this component
      • getDescription

        public String getDescription()
        Description copied from interface: Theme
        Short description. Used in preferences.
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
      • getId

        public String getId()
        Description copied from interface: Theme
        Persistent ID. Used in general preferences.
        Returns:
        unique, persistent id for this instance
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object