Package org.kopi.vkopi.lib.ui.swing.plaf
Class KopiLookAndFeel
- java.lang.Object
-
- javax.swing.LookAndFeel
-
- javax.swing.plaf.basic.BasicLookAndFeel
-
- javax.swing.plaf.metal.MetalLookAndFeel
-
- org.kopi.vkopi.lib.ui.swing.plaf.KopiLookAndFeel
-
- All Implemented Interfaces:
java.io.Serializable
public class KopiLookAndFeel extends javax.swing.plaf.metal.MetalLookAndFeel- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKopiLookAndFeel.TopLineBorder
-
Constructor Summary
Constructors Constructor Description KopiLookAndFeel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateDefaultTheme()java.lang.StringgetDescription()java.lang.StringgetID()java.lang.StringgetName()protected voidinitClassDefaults(javax.swing.UIDefaults table)protected voidinitComponentDefaults(javax.swing.UIDefaults table)protected voidinitSystemColorDefaults(javax.swing.UIDefaults table)booleanisNativeLookAndFeel()booleanisSupportedLookAndFeel()protected voidputDefault(javax.swing.UIDefaults table, java.lang.String uiKey)static voidsetCurrentTheme(javax.swing.plaf.metal.MetalTheme theme)Sets the current color theme.-
Methods inherited from class javax.swing.plaf.metal.MetalLookAndFeel
getAcceleratorForeground, getAcceleratorSelectedForeground, getBlack, getControl, getControlDarkShadow, getControlDisabled, getControlHighlight, getControlInfo, getControlShadow, getControlTextColor, getControlTextFont, getCurrentTheme, getDefaults, getDesktopColor, getDisabledIcon, getDisabledSelectedIcon, getFocusColor, getHighlightedTextColor, getInactiveControlTextColor, getInactiveSystemTextColor, getLayoutStyle, getMenuBackground, getMenuDisabledForeground, getMenuForeground, getMenuSelectedBackground, getMenuSelectedForeground, getMenuTextFont, getPrimaryControl, getPrimaryControlDarkShadow, getPrimaryControlHighlight, getPrimaryControlInfo, getPrimaryControlShadow, getSeparatorBackground, getSeparatorForeground, getSubTextFont, getSupportsWindowDecorations, getSystemTextColor, getSystemTextFont, getTextHighlightColor, getUserTextColor, getUserTextFont, getWhite, getWindowBackground, getWindowTitleBackground, getWindowTitleFont, getWindowTitleForeground, getWindowTitleInactiveBackground, getWindowTitleInactiveForeground, provideErrorFeedback
-
Methods inherited from class javax.swing.plaf.basic.BasicLookAndFeel
createAudioAction, getAudioActionMap, initialize, loadSystemColors, playSound, uninitialize
-
-
-
-
Method Detail
-
getID
public java.lang.String getID()
- Overrides:
getIDin classjavax.swing.plaf.metal.MetalLookAndFeel
-
getName
public java.lang.String getName()
- Overrides:
getNamein classjavax.swing.plaf.metal.MetalLookAndFeel
-
getDescription
public java.lang.String getDescription()
- Overrides:
getDescriptionin classjavax.swing.plaf.metal.MetalLookAndFeel
-
isNativeLookAndFeel
public boolean isNativeLookAndFeel()
- Overrides:
isNativeLookAndFeelin classjavax.swing.plaf.metal.MetalLookAndFeel
-
isSupportedLookAndFeel
public boolean isSupportedLookAndFeel()
- Overrides:
isSupportedLookAndFeelin classjavax.swing.plaf.metal.MetalLookAndFeel
-
initClassDefaults
protected void initClassDefaults(javax.swing.UIDefaults table)
- Overrides:
initClassDefaultsin classjavax.swing.plaf.metal.MetalLookAndFeel
-
initSystemColorDefaults
protected void initSystemColorDefaults(javax.swing.UIDefaults table)
- Overrides:
initSystemColorDefaultsin classjavax.swing.plaf.metal.MetalLookAndFeel
-
initComponentDefaults
protected void initComponentDefaults(javax.swing.UIDefaults table)
- Overrides:
initComponentDefaultsin classjavax.swing.plaf.metal.MetalLookAndFeel
-
putDefault
protected void putDefault(javax.swing.UIDefaults table, java.lang.String uiKey)
-
setCurrentTheme
public static void setCurrentTheme(javax.swing.plaf.metal.MetalTheme theme)
Sets the current color theme. This works exactly as with the MetalLookAndFeel. Note that for customizing the gradients the method setCurrentGradientTheme() must be used.
-
createDefaultTheme
protected void createDefaultTheme()
- Overrides:
createDefaultThemein classjavax.swing.plaf.metal.MetalLookAndFeel
-
-