Package com.tagtraum.beatunes.plaf
Class ColorTheme
- java.lang.Object
-
- com.tagtraum.beatunes.plaf.AbstractTheme
-
- com.tagtraum.beatunes.plaf.ColorTheme
-
- All Implemented Interfaces:
Theme
public class ColorTheme extends AbstractTheme
Color 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 ColorTheme()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activate()
Is called by the system, when the Theme is activated.void
customize(Container container)
Is called by the systems for a number of different components and give this theme a chance to customize them.void
deactivate()
Is called by the system when the Theme is de-activated.boolean
equals(Object o)
Paint
getBackgroundPaint(Container container, boolean hasFocus)
String
getDescription()
Short description.String
getId()
Persistent ID.int
hashCode()
void
setColor(String color)
void
setDescription(String description)
String
toString()
-
Methods inherited from class com.tagtraum.beatunes.plaf.AbstractTheme
getBackgroundPaint, getFocusedBackgroundPaint, getLocalizedString, getResource, getRootPaneContainer, hasFocus, isAvailable, paintBackground, paintBackground, requiresRestart
-
-
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:Theme
Short description. Used in preferences.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
setColor
public void setColor(String color)
-
getId
public String getId()
Description copied from interface:Theme
Persistent ID. Used in general preferences.- Returns:
- unique, persistent id for this instance
-
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 classAbstractTheme
- Parameters:
container
- component to paint- Returns:
- paint to paint the background of this component
-
-