Package com.tagtraum.beatunes.plaf
Class TiledBackgroundTheme
- java.lang.Object
-
- com.tagtraum.beatunes.plaf.AbstractTheme
-
- com.tagtraum.beatunes.plaf.TiledBackgroundTheme
-
- All Implemented Interfaces:
Theme
public class TiledBackgroundTheme extends AbstractTheme
Tiled Background Theme.- Author:
- Hendrik Schreiber
-
-
Field Summary
-
Fields inherited from interface com.tagtraum.beatunes.plaf.Theme
PAINT_FANCY_BACKGROUND, PAINT_PLAIN_BACKGROUND
-
-
Constructor Summary
Constructors Constructor Description TiledBackgroundTheme(BeaTunes beaTunes)
-
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, boolean hasFocus)StringgetDescription()Short description.StringgetId()Persistent ID.inthashCode()voidsetDescription(String description)voidsetImagePath(String path)StringtoString()-
Methods inherited from class com.tagtraum.beatunes.plaf.AbstractTheme
getBackgroundPaint, getFocusedBackgroundPaint, getLocalizedString, getResource, getRootPaneContainer, hasFocus, isAvailable, paintBackground, paintBackground, requiresRestart
-
-
-
-
Constructor Detail
-
TiledBackgroundTheme
public TiledBackgroundTheme(BeaTunes beaTunes)
-
-
Method Detail
-
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
-
setImagePath
public void setImagePath(String path)
-
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
-
setDescription
public void setDescription(String description)
-
getDescription
public String getDescription()
Description copied from interface:ThemeShort description. Used in preferences.- Returns:
- description
-
getId
public String getId()
Description copied from interface:ThemePersistent ID. Used in general preferences.- Returns:
- unique, persistent id for this instance
-
-