kiwi.ui
Class ColorTheme
java.lang.Object
javax.swing.plaf.metal.MetalTheme
javax.swing.plaf.metal.DefaultMetalTheme
kiwi.ui.ColorTheme
- public class ColorTheme
- extends javax.swing.plaf.metal.DefaultMetalTheme
A color theme object that can be constructed from a Config
object. This allows themes to be read from data files.
- Author:
- Mark Lindner, PING Software Group
Nested classes inherited from class javax.swing.plaf.metal.DefaultMetalTheme |
|
Fields inherited from class javax.swing.plaf.metal.DefaultMetalTheme |
|
Fields inherited from class javax.swing.plaf.metal.MetalTheme |
|
Methods inherited from class javax.swing.plaf.metal.DefaultMetalTheme |
|
Methods inherited from class javax.swing.plaf.metal.MetalTheme |
addCustomEntriesToTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private java.lang.String name
primary1
private javax.swing.plaf.ColorUIResource primary1
primary2
private javax.swing.plaf.ColorUIResource primary2
primary3
private javax.swing.plaf.ColorUIResource primary3
secondary1
private javax.swing.plaf.ColorUIResource secondary1
secondary2
private javax.swing.plaf.ColorUIResource secondary2
secondary3
private javax.swing.plaf.ColorUIResource secondary3
black
private javax.swing.plaf.ColorUIResource black
white
private javax.swing.plaf.ColorUIResource white
acceleratorForegroundColor
private javax.swing.plaf.ColorUIResource acceleratorForegroundColor
acceleratorSelectedForegroundColor
private javax.swing.plaf.ColorUIResource acceleratorSelectedForegroundColor
controlColor
private javax.swing.plaf.ColorUIResource controlColor
controlDarkShadowColor
private javax.swing.plaf.ColorUIResource controlDarkShadowColor
controlDisabledColor
private javax.swing.plaf.ColorUIResource controlDisabledColor
controlHighlightColor
private javax.swing.plaf.ColorUIResource controlHighlightColor
controlInfoColor
private javax.swing.plaf.ColorUIResource controlInfoColor
controlShadowColor
private javax.swing.plaf.ColorUIResource controlShadowColor
controlTextColor
private javax.swing.plaf.ColorUIResource controlTextColor
desktopColor
private javax.swing.plaf.ColorUIResource desktopColor
focusColor
private javax.swing.plaf.ColorUIResource focusColor
highlightedTextColor
private javax.swing.plaf.ColorUIResource highlightedTextColor
inactiveControlTextColor
private javax.swing.plaf.ColorUIResource inactiveControlTextColor
inactiveSystemTextColor
private javax.swing.plaf.ColorUIResource inactiveSystemTextColor
menuBackgroundColor
private javax.swing.plaf.ColorUIResource menuBackgroundColor
menuDisabledForegroundColor
private javax.swing.plaf.ColorUIResource menuDisabledForegroundColor
menuForegroundColor
private javax.swing.plaf.ColorUIResource menuForegroundColor
menuSelectedBackgroundColor
private javax.swing.plaf.ColorUIResource menuSelectedBackgroundColor
menuSelectedForegroundColor
private javax.swing.plaf.ColorUIResource menuSelectedForegroundColor
primaryControlColor
private javax.swing.plaf.ColorUIResource primaryControlColor
primaryControlDarkShadowColor
private javax.swing.plaf.ColorUIResource primaryControlDarkShadowColor
primaryControlHighlightColor
private javax.swing.plaf.ColorUIResource primaryControlHighlightColor
primaryControlInfoColor
private javax.swing.plaf.ColorUIResource primaryControlInfoColor
primaryControlShadowColor
private javax.swing.plaf.ColorUIResource primaryControlShadowColor
separatorBackgroundColor
private javax.swing.plaf.ColorUIResource separatorBackgroundColor
separatorForegroundColor
private javax.swing.plaf.ColorUIResource separatorForegroundColor
systemTextColor
private javax.swing.plaf.ColorUIResource systemTextColor
textHighlightColor
private javax.swing.plaf.ColorUIResource textHighlightColor
userTextColor
private javax.swing.plaf.ColorUIResource userTextColor
windowBackgroundColor
private javax.swing.plaf.ColorUIResource windowBackgroundColor
windowTitleBackgroundColor
private javax.swing.plaf.ColorUIResource windowTitleBackgroundColor
windowTitleForegroundColor
private javax.swing.plaf.ColorUIResource windowTitleForegroundColor
windowTitleInactiveBackgroundColor
private javax.swing.plaf.ColorUIResource windowTitleInactiveBackgroundColor
windowTitleInactiveForegroundColor
private javax.swing.plaf.ColorUIResource windowTitleInactiveForegroundColor
controlTextFont
private javax.swing.plaf.FontUIResource controlTextFont
menuTextFont
private javax.swing.plaf.FontUIResource menuTextFont
subTextFont
private javax.swing.plaf.FontUIResource subTextFont
systemTextFont
private javax.swing.plaf.FontUIResource systemTextFont
userTextFont
private javax.swing.plaf.FontUIResource userTextFont
windowTitleFont
private javax.swing.plaf.FontUIResource windowTitleFont
ColorTheme
public ColorTheme(Config config)
- Construct a new
ColorTheme
.
- Parameters:
config
- The Config
object from which color and font
properties will be read.
getName
public java.lang.String getName()
- Get the name of this color theme.
- Returns:
- The name of the theme.
getPrimary1
protected javax.swing.plaf.ColorUIResource getPrimary1()
getPrimary2
protected javax.swing.plaf.ColorUIResource getPrimary2()
getPrimary3
protected javax.swing.plaf.ColorUIResource getPrimary3()
getSecondary1
protected javax.swing.plaf.ColorUIResource getSecondary1()
getSecondary2
protected javax.swing.plaf.ColorUIResource getSecondary2()
getSecondary3
protected javax.swing.plaf.ColorUIResource getSecondary3()
getBlack
protected javax.swing.plaf.ColorUIResource getBlack()
getWhite
protected javax.swing.plaf.ColorUIResource getWhite()
getAcceleratorForeground
public javax.swing.plaf.ColorUIResource getAcceleratorForeground()
getAcceleratorSelectedForeground
public javax.swing.plaf.ColorUIResource getAcceleratorSelectedForeground()
getControl
public javax.swing.plaf.ColorUIResource getControl()
getControlDarkShadow
public javax.swing.plaf.ColorUIResource getControlDarkShadow()
getControlDisabled
public javax.swing.plaf.ColorUIResource getControlDisabled()
getControlHighlight
public javax.swing.plaf.ColorUIResource getControlHighlight()
getControlInfo
public javax.swing.plaf.ColorUIResource getControlInfo()
getControlShadow
public javax.swing.plaf.ColorUIResource getControlShadow()
getControlTextColor
public javax.swing.plaf.ColorUIResource getControlTextColor()
getDesktopColor
public javax.swing.plaf.ColorUIResource getDesktopColor()
getFocusColor
public javax.swing.plaf.ColorUIResource getFocusColor()
getHighlightedTextColor
public javax.swing.plaf.ColorUIResource getHighlightedTextColor()
getInactiveControlTextColor
public javax.swing.plaf.ColorUIResource getInactiveControlTextColor()
getInactiveSystemTextColor
public javax.swing.plaf.ColorUIResource getInactiveSystemTextColor()
getMenuBackground
public javax.swing.plaf.ColorUIResource getMenuBackground()
getMenuDisabledForeground
public javax.swing.plaf.ColorUIResource getMenuDisabledForeground()
getMenuForeground
public javax.swing.plaf.ColorUIResource getMenuForeground()
getMenuSelectedBackground
public javax.swing.plaf.ColorUIResource getMenuSelectedBackground()
getMenuSelectedForeground
public javax.swing.plaf.ColorUIResource getMenuSelectedForeground()
getPrimaryControl
public javax.swing.plaf.ColorUIResource getPrimaryControl()
getPrimaryControlDarkShadow
public javax.swing.plaf.ColorUIResource getPrimaryControlDarkShadow()
getPrimaryControlHighlight
public javax.swing.plaf.ColorUIResource getPrimaryControlHighlight()
getPrimaryControlInfo
public javax.swing.plaf.ColorUIResource getPrimaryControlInfo()
getPrimaryControlShadow
public javax.swing.plaf.ColorUIResource getPrimaryControlShadow()
getSeparatorBackground
public javax.swing.plaf.ColorUIResource getSeparatorBackground()
getSeparatorForeground
public javax.swing.plaf.ColorUIResource getSeparatorForeground()
getSystemTextColor
public javax.swing.plaf.ColorUIResource getSystemTextColor()
getTextHighlightColor
public javax.swing.plaf.ColorUIResource getTextHighlightColor()
getUserTextColor
public javax.swing.plaf.ColorUIResource getUserTextColor()
getWindowBackground
public javax.swing.plaf.ColorUIResource getWindowBackground()
getWindowTitleBackground
public javax.swing.plaf.ColorUIResource getWindowTitleBackground()
getWindowTitleForeground
public javax.swing.plaf.ColorUIResource getWindowTitleForeground()
getWindowTitleInactiveBackground
public javax.swing.plaf.ColorUIResource getWindowTitleInactiveBackground()
getWindowTitleInactiveForeground
public javax.swing.plaf.ColorUIResource getWindowTitleInactiveForeground()
getControlTextFont
public javax.swing.plaf.FontUIResource getControlTextFont()
getMenuTextFont
public javax.swing.plaf.FontUIResource getMenuTextFont()
getSubTextFont
public javax.swing.plaf.FontUIResource getSubTextFont()
getSystemTextFont
public javax.swing.plaf.FontUIResource getSystemTextFont()
getUserTextFont
public javax.swing.plaf.FontUIResource getUserTextFont()
getWindowTitleFont
public javax.swing.plaf.FontUIResource getWindowTitleFont()
init
private void init(Config config)