com.mucommander.ui.theme
Class ThemeCache

java.lang.Object
  extended by com.mucommander.ui.theme.ThemeCache
All Implemented Interfaces:
ThemeListener

public class ThemeCache
extends java.lang.Object
implements ThemeListener

Contains cached colors and fonts for current theme.

Author:
Mariusz Jakubowski

Field Summary
static int ACTIVE
           
static java.awt.Color activeOutlineColor
           
static int ALTERNATE
           
static int ARCHIVE
           
static java.awt.Color[][] backgroundColors
           
static int FOLDER
           
static java.awt.Color[][][] foregroundColors
           
static int HIDDEN_FILE
           
static int INACTIVE
           
static java.awt.Color inactiveOutlineColor
           
static ThemeCache instance
          Theme cache instance
static int MARKED
           
static int NORMAL
           
static int PLAIN_FILE
           
static int SECONDARY
           
static int SELECTED
           
static int SYMLINK
           
static java.awt.Font tableFont
           
static java.awt.Color unmatchedBackground
           
static java.awt.Color unmatchedForeground
           
 
Method Summary
static void addThemeListener(ThemeListener listener)
           
 void colorChanged(ColorChangedEvent event)
          Receives theme color changes notifications.
 void fontChanged(FontChangedEvent event)
          Receives theme font changes notifications.
static void removeThemeListener(ThemeListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

foregroundColors

public static java.awt.Color[][][] foregroundColors

backgroundColors

public static java.awt.Color[][] backgroundColors

unmatchedForeground

public static java.awt.Color unmatchedForeground

unmatchedBackground

public static java.awt.Color unmatchedBackground

activeOutlineColor

public static java.awt.Color activeOutlineColor

inactiveOutlineColor

public static java.awt.Color inactiveOutlineColor

NORMAL

public static final int NORMAL
See Also:
Constant Field Values

SELECTED

public static final int SELECTED
See Also:
Constant Field Values

ALTERNATE

public static final int ALTERNATE
See Also:
Constant Field Values

SECONDARY

public static final int SECONDARY
See Also:
Constant Field Values

INACTIVE

public static final int INACTIVE
See Also:
Constant Field Values

ACTIVE

public static final int ACTIVE
See Also:
Constant Field Values

HIDDEN_FILE

public static final int HIDDEN_FILE
See Also:
Constant Field Values

FOLDER

public static final int FOLDER
See Also:
Constant Field Values

ARCHIVE

public static final int ARCHIVE
See Also:
Constant Field Values

SYMLINK

public static final int SYMLINK
See Also:
Constant Field Values

MARKED

public static final int MARKED
See Also:
Constant Field Values

PLAIN_FILE

public static final int PLAIN_FILE
See Also:
Constant Field Values

tableFont

public static java.awt.Font tableFont

instance

public static final ThemeCache instance
Theme cache instance

Method Detail

addThemeListener

public static void addThemeListener(ThemeListener listener)

removeThemeListener

public static void removeThemeListener(ThemeListener listener)

colorChanged

public void colorChanged(ColorChangedEvent event)
Receives theme color changes notifications.

Specified by:
colorChanged in interface ThemeListener

fontChanged

public void fontChanged(FontChangedEvent event)
Receives theme font changes notifications.

Specified by:
fontChanged in interface ThemeListener


This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard