Package com.tagtraum.beatunes.plaf
Class GradientBackgroundTheme
- java.lang.Object
-
- com.tagtraum.beatunes.plaf.AbstractTheme
-
- com.tagtraum.beatunes.plaf.GradientBackgroundTheme
-
- All Implemented Interfaces:
Theme
public class GradientBackgroundTheme extends AbstractTheme
Gradient Background Theme.- Author:
- Hendrik Schreiber
-
-
Field Summary
Fields Modifier and Type Field Description static ColorVERY_LIGHT_GRAY-
Fields inherited from interface com.tagtraum.beatunes.plaf.Theme
PAINT_FANCY_BACKGROUND, PAINT_PLAIN_BACKGROUND
-
-
Constructor Summary
Constructors Constructor Description GradientBackgroundTheme()GradientBackgroundTheme(Color toColor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()Is called by the system, when the Theme is activated.voidcustomize(Container container)Is called by the systems for a number of different components and give this theme a chance to customize them.voiddeactivate()Is called by the system when the Theme is de-activated.booleanequals(Object o)PaintgetBackgroundPaint(Container container)Background paint.PaintgetBackgroundPaint(Container container, boolean hasFocus)StringgetDescription()Short description.PaintgetFocusedBackgroundPaint(Container container)Background paint.StringgetId()Persistent ID.inthashCode()voidpaintBackground(Graphics graphics, Container container, Paint paint)voidsetDescription(String description)voidsetToColor(String color)StringtoString()-
Methods inherited from class com.tagtraum.beatunes.plaf.AbstractTheme
getLocalizedString, getResource, getRootPaneContainer, hasFocus, isAvailable, paintBackground, requiresRestart
-
-
-
-
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:ThemeIs called by the system, when the Theme is activated.
-
deactivate
public void deactivate()
Description copied from interface:ThemeIs 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:ThemeIs called by the systems for a number of different components and give this theme a chance to customize them.- Parameters:
container- component to customize
-
getFocusedBackgroundPaint
public Paint getFocusedBackgroundPaint(Container container)
Description copied from interface:ThemeBackground paint. This is used for the icon in the general preferences.- Specified by:
getFocusedBackgroundPaintin interfaceTheme- Overrides:
getFocusedBackgroundPaintin classAbstractTheme- Parameters:
container- component- Returns:
- background paint
-
getBackgroundPaint
public Paint getBackgroundPaint(Container container, boolean hasFocus)
- Specified by:
getBackgroundPaintin classAbstractTheme- Parameters:
container- component to paint- Returns:
- paint to paint the background of this component
-
paintBackground
public void paintBackground(Graphics graphics, Container container, Paint paint)
- Overrides:
paintBackgroundin classAbstractTheme
-
getBackgroundPaint
public Paint getBackgroundPaint(Container container)
Description copied from interface:ThemeBackground paint.- Specified by:
getBackgroundPaintin interfaceTheme- Overrides:
getBackgroundPaintin classAbstractTheme- Parameters:
container- component- Returns:
- background paint
-
getDescription
public String getDescription()
Description copied from interface:ThemeShort description. Used in preferences.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getId
public String getId()
Description copied from interface:ThemePersistent ID. Used in general preferences.- Returns:
- unique, persistent id for this instance
-
-