dog.gui
Class DTheme

java.lang.Object
  |
  +--dog.gui.DTheme
Direct Known Subclasses:
DTheme.SystemTheme

public class DTheme
extends java.lang.Object

This class defines a set of colours and fonts used as a basis for rendering components. The default theme looks a lot like Swing's default Metal theme, except for highlights.


Inner Class Summary
 class DTheme.SystemTheme
           
 
Field Summary
protected  java.awt.Color black
           
protected  java.awt.Image controlBackgroundImage
           
protected  java.awt.Font controlFont
           
protected  java.awt.Color highlight
           
protected  java.awt.Color highlightText
           
protected  java.awt.Font monospacedFont
           
protected  java.awt.Color primary1
           
protected  java.awt.Color primary2
           
protected  java.awt.Color primary3
           
protected  java.awt.Color secondary1
           
protected  java.awt.Color secondary2
           
protected  java.awt.Color secondary3
           
protected  java.awt.Font smallFont
           
protected  java.awt.Font systemFont
           
protected  java.awt.Image userBackgroundImage
           
protected  java.awt.Font userFont
           
protected  java.awt.Color white
           
protected  java.awt.Font windowTitleFont
           
 
Constructor Summary
DTheme()
           
DTheme(java.awt.Image controlBackgroundImage)
           
DTheme(java.awt.Image controlBackgroundImage, java.awt.Image userBackgroundImage)
           
 
Method Summary
 java.awt.Color getAcceleratorForeground()
           
 java.awt.Color getAcceleratorSelectedForeground()
           
protected  java.awt.Color getBlack()
           
 java.awt.Color getCaretColor()
           
 java.awt.Color getControl()
           
 java.awt.Image getControlBackgroundImage()
           
 java.awt.Color getControlDarkShadow()
           
 java.awt.Color getControlDisabled()
           
 java.awt.Color getControlHighlight()
           
 java.awt.Color getControlInfo()
           
 java.awt.Color getControlShadow()
           
 java.awt.Color getControlTextColor()
           
 java.awt.Font getControlTextFont()
           
 java.awt.Color getDesktopColor()
           
 java.awt.Color getFocusColor()
           
 java.awt.Color getHighlightedTextColor()
           
 java.awt.Color getInactiveControlTextColor()
           
 java.awt.Color getInactiveSystemTextColor()
           
 java.awt.Color getMenuBackground()
           
 java.awt.Color getMenuDisabledForeground()
           
 java.awt.Color getMenuForeground()
           
 java.awt.Color getMenuSelectedBackground()
           
 java.awt.Color getMenuSelectedForeground()
           
 java.awt.Font getMenuTextFont()
           
 java.awt.Font getMonospacedFont()
           
protected  java.awt.Color getPrimary1()
           
protected  java.awt.Color getPrimary2()
           
protected  java.awt.Color getPrimary3()
           
 java.awt.Color getPrimaryControl()
           
 java.awt.Color getPrimaryControlDarkShadow()
           
 java.awt.Color getPrimaryControlHighlight()
           
 java.awt.Color getPrimaryControlInfo()
           
 java.awt.Color getPrimaryControlShadow()
           
protected  java.awt.Color getSecondary1()
           
protected  java.awt.Color getSecondary2()
           
protected  java.awt.Color getSecondary3()
           
protected  java.awt.Color getSelectedBackground()
           
protected  java.awt.Color getSelectedForeground()
           
 java.awt.Color getSeparatorBackground()
           
 java.awt.Color getSeparatorForeground()
           
 java.awt.Font getSubTextFont()
           
 java.awt.Color getSystemTextColor()
           
 java.awt.Font getSystemTextFont()
           
 java.awt.Color getTextHighlightColor()
           
static DTheme getTheme()
           
 java.awt.Image getUserBackgroundImage()
           
 java.awt.Color getUserTextColor()
           
 java.awt.Font getUserTextFont()
           
protected  java.awt.Color getWhite()
           
 java.awt.Color getWindowBackground()
           
 java.awt.Color getWindowTitleBackground()
           
 java.awt.Font getWindowTitleFont()
           
 java.awt.Color getWindowTitleForeground()
           
 java.awt.Color getWindowTitleInactiveBackground()
           
 java.awt.Color getWindowTitleInactiveForeground()
           
static void setTheme(DTheme theme)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

black

protected java.awt.Color black

white

protected java.awt.Color white

primary1

protected java.awt.Color primary1

primary2

protected java.awt.Color primary2

primary3

protected java.awt.Color primary3

secondary1

protected java.awt.Color secondary1

secondary2

protected java.awt.Color secondary2

secondary3

protected java.awt.Color secondary3

highlight

protected java.awt.Color highlight

highlightText

protected java.awt.Color highlightText

controlFont

protected java.awt.Font controlFont

systemFont

protected java.awt.Font systemFont

windowTitleFont

protected java.awt.Font windowTitleFont

userFont

protected java.awt.Font userFont

smallFont

protected java.awt.Font smallFont

monospacedFont

protected java.awt.Font monospacedFont

controlBackgroundImage

protected java.awt.Image controlBackgroundImage

userBackgroundImage

protected java.awt.Image userBackgroundImage
Constructor Detail

DTheme

public DTheme()

DTheme

public DTheme(java.awt.Image controlBackgroundImage)

DTheme

public DTheme(java.awt.Image controlBackgroundImage,
              java.awt.Image userBackgroundImage)
Method Detail

getTheme

public static DTheme getTheme()

setTheme

public static void setTheme(DTheme theme)

getWhite

protected java.awt.Color getWhite()

getBlack

protected java.awt.Color getBlack()

getPrimary1

protected java.awt.Color getPrimary1()

getPrimary2

protected java.awt.Color getPrimary2()

getPrimary3

protected java.awt.Color getPrimary3()

getSecondary1

protected java.awt.Color getSecondary1()

getSecondary2

protected java.awt.Color getSecondary2()

getSecondary3

protected java.awt.Color getSecondary3()

getSelectedForeground

protected java.awt.Color getSelectedForeground()

getSelectedBackground

protected java.awt.Color getSelectedBackground()

getControlTextFont

public java.awt.Font getControlTextFont()

getSystemTextFont

public java.awt.Font getSystemTextFont()

getUserTextFont

public java.awt.Font getUserTextFont()

getMenuTextFont

public java.awt.Font getMenuTextFont()

getWindowTitleFont

public java.awt.Font getWindowTitleFont()

getSubTextFont

public java.awt.Font getSubTextFont()

getMonospacedFont

public java.awt.Font getMonospacedFont()

getFocusColor

public java.awt.Color getFocusColor()

getDesktopColor

public java.awt.Color getDesktopColor()

getControl

public java.awt.Color getControl()

getControlShadow

public java.awt.Color getControlShadow()

getControlDarkShadow

public java.awt.Color getControlDarkShadow()

getControlInfo

public java.awt.Color getControlInfo()

getControlHighlight

public java.awt.Color getControlHighlight()

getControlDisabled

public java.awt.Color getControlDisabled()

getPrimaryControl

public java.awt.Color getPrimaryControl()

getPrimaryControlShadow

public java.awt.Color getPrimaryControlShadow()

getPrimaryControlDarkShadow

public java.awt.Color getPrimaryControlDarkShadow()

getPrimaryControlInfo

public java.awt.Color getPrimaryControlInfo()

getPrimaryControlHighlight

public java.awt.Color getPrimaryControlHighlight()

getSystemTextColor

public java.awt.Color getSystemTextColor()

getControlTextColor

public java.awt.Color getControlTextColor()

getInactiveControlTextColor

public java.awt.Color getInactiveControlTextColor()

getInactiveSystemTextColor

public java.awt.Color getInactiveSystemTextColor()

getUserTextColor

public java.awt.Color getUserTextColor()

getTextHighlightColor

public java.awt.Color getTextHighlightColor()

getHighlightedTextColor

public java.awt.Color getHighlightedTextColor()

getCaretColor

public java.awt.Color getCaretColor()

getWindowBackground

public java.awt.Color getWindowBackground()

getWindowTitleBackground

public java.awt.Color getWindowTitleBackground()

getWindowTitleForeground

public java.awt.Color getWindowTitleForeground()

getWindowTitleInactiveBackground

public java.awt.Color getWindowTitleInactiveBackground()

getWindowTitleInactiveForeground

public java.awt.Color getWindowTitleInactiveForeground()

getMenuBackground

public java.awt.Color getMenuBackground()

getMenuForeground

public java.awt.Color getMenuForeground()

getMenuSelectedBackground

public java.awt.Color getMenuSelectedBackground()

getMenuSelectedForeground

public java.awt.Color getMenuSelectedForeground()

getMenuDisabledForeground

public java.awt.Color getMenuDisabledForeground()

getSeparatorBackground

public java.awt.Color getSeparatorBackground()

getSeparatorForeground

public java.awt.Color getSeparatorForeground()

getAcceleratorForeground

public java.awt.Color getAcceleratorForeground()

getAcceleratorSelectedForeground

public java.awt.Color getAcceleratorSelectedForeground()

getControlBackgroundImage

public java.awt.Image getControlBackgroundImage()

getUserBackgroundImage

public java.awt.Image getUserBackgroundImage()