MetalTheme provides the color palette and fonts used by the Java Look and Feel.
MetalTheme is abstract, see DefaultMetalTheme and OceanTheme for concrete implementations.
MetalLookAndFeel maintains the current theme that the the ComponentUI implementations for metal use. Refer to MetalLookAndFeel.setCurrentTheme(MetalTheme) for details on changing the current theme.
MetalTheme provides a number of public methods for getting colors. These methods are implemented in terms of a handful of protected abstract methods. A subclass need only override the protected abstract methods (getPrimary1, getPrimary2, getPrimary3, getSecondary1, getSecondary2, and getSecondary3); although a subclass may override the other public methods for more control over the set of colors that are used.
Concrete implementations of MetalTheme must return non-null values from all methods. While the behavior of returning null is not specified, returning null will result in incorrect behavior.
It is strongly recommended that subclasses return completely opaque colors. To do otherwise may result in rendering problems, such as visual garbage.
MetalTheme provides the color palette and fonts used by the Java Look and Feel. MetalTheme is abstract, see DefaultMetalTheme and OceanTheme for concrete implementations. MetalLookAndFeel maintains the current theme that the the ComponentUI implementations for metal use. Refer to MetalLookAndFeel.setCurrentTheme(MetalTheme) for details on changing the current theme. MetalTheme provides a number of public methods for getting colors. These methods are implemented in terms of a handful of protected abstract methods. A subclass need only override the protected abstract methods (getPrimary1, getPrimary2, getPrimary3, getSecondary1, getSecondary2, and getSecondary3); although a subclass may override the other public methods for more control over the set of colors that are used. Concrete implementations of MetalTheme must return non-null values from all methods. While the behavior of returning null is not specified, returning null will result in incorrect behavior. It is strongly recommended that subclasses return completely opaque colors. To do otherwise may result in rendering problems, such as visual garbage.
(add-custom-entries-to-table this table)
Adds values specific to this theme to the defaults table. This method is invoked when the look and feel defaults are obtained from MetalLookAndFeel.
This implementation does nothing; it is provided for subclasses that wish to customize the defaults table.
table - the UIDefaults to add the values to - javax.swing.UIDefaults
Adds values specific to this theme to the defaults table. This method is invoked when the look and feel defaults are obtained from MetalLookAndFeel. This implementation does nothing; it is provided for subclasses that wish to customize the defaults table. table - the UIDefaults to add the values to - `javax.swing.UIDefaults`
(get-accelerator-foreground this)
Returns the accelerator foreground color. This returns the value of getPrimary1().
returns: the accelerator foreground color - javax.swing.plaf.ColorUIResource
Returns the accelerator foreground color. This returns the value of getPrimary1(). returns: the accelerator foreground color - `javax.swing.plaf.ColorUIResource`
(get-accelerator-selected-foreground this)
Returns the accelerator selected foreground color. This returns the value of getBlack().
returns: the accelerator selected foreground color - javax.swing.plaf.ColorUIResource
Returns the accelerator selected foreground color. This returns the value of getBlack(). returns: the accelerator selected foreground color - `javax.swing.plaf.ColorUIResource`
(get-control this)
Returns the control color. This returns the value of getSecondary3().
returns: the control color - javax.swing.plaf.ColorUIResource
Returns the control color. This returns the value of getSecondary3(). returns: the control color - `javax.swing.plaf.ColorUIResource`
(get-control-dark-shadow this)
Returns the control dark shadow color. This returns the value of getSecondary1().
returns: the control dark shadow color - javax.swing.plaf.ColorUIResource
Returns the control dark shadow color. This returns the value of getSecondary1(). returns: the control dark shadow color - `javax.swing.plaf.ColorUIResource`
(get-control-disabled this)
Returns the control disabled color. This returns the value of getSecondary2().
returns: the control disabled color - javax.swing.plaf.ColorUIResource
Returns the control disabled color. This returns the value of getSecondary2(). returns: the control disabled color - `javax.swing.plaf.ColorUIResource`
(get-control-highlight this)
Returns the control highlight color. This returns the value of getWhite().
returns: the control highlight color - javax.swing.plaf.ColorUIResource
Returns the control highlight color. This returns the value of getWhite(). returns: the control highlight color - `javax.swing.plaf.ColorUIResource`
(get-control-info this)
Returns the control info color. This returns the value of getBlack().
returns: the control info color - javax.swing.plaf.ColorUIResource
Returns the control info color. This returns the value of getBlack(). returns: the control info color - `javax.swing.plaf.ColorUIResource`
(get-control-shadow this)
Returns the control shadow color. This returns the value of getSecondary2().
returns: the control shadow color - javax.swing.plaf.ColorUIResource
Returns the control shadow color. This returns the value of getSecondary2(). returns: the control shadow color - `javax.swing.plaf.ColorUIResource`
(get-control-text-color this)
Returns the control text color. This returns the value of getControlInfo().
returns: the control text color - javax.swing.plaf.ColorUIResource
Returns the control text color. This returns the value of getControlInfo(). returns: the control text color - `javax.swing.plaf.ColorUIResource`
(get-control-text-font this)
Returns the control text font.
returns: the control text font - javax.swing.plaf.FontUIResource
Returns the control text font. returns: the control text font - `javax.swing.plaf.FontUIResource`
(get-desktop-color this)
Returns the desktop color. This returns the value of getPrimary2().
returns: the desktop color - javax.swing.plaf.ColorUIResource
Returns the desktop color. This returns the value of getPrimary2(). returns: the desktop color - `javax.swing.plaf.ColorUIResource`
(get-focus-color this)
Returns the focus color. This returns the value of getPrimary2().
returns: the focus color - javax.swing.plaf.ColorUIResource
Returns the focus color. This returns the value of getPrimary2(). returns: the focus color - `javax.swing.plaf.ColorUIResource`
(get-highlighted-text-color this)
Returns the highlighted text color. This returns the value of getControlTextColor().
returns: the highlighted text color - javax.swing.plaf.ColorUIResource
Returns the highlighted text color. This returns the value of getControlTextColor(). returns: the highlighted text color - `javax.swing.plaf.ColorUIResource`
(get-inactive-control-text-color this)
Returns the inactive control text color. This returns the value of getControlDisabled().
returns: the inactive control text color - javax.swing.plaf.ColorUIResource
Returns the inactive control text color. This returns the value of getControlDisabled(). returns: the inactive control text color - `javax.swing.plaf.ColorUIResource`
(get-inactive-system-text-color this)
Returns the inactive system text color. This returns the value of getSecondary2().
returns: the inactive system text color - javax.swing.plaf.ColorUIResource
Returns the inactive system text color. This returns the value of getSecondary2(). returns: the inactive system text color - `javax.swing.plaf.ColorUIResource`
(get-menu-background this)
Returns the menu background color. This returns the value of getSecondary3().
returns: the menu background color - javax.swing.plaf.ColorUIResource
Returns the menu background color. This returns the value of getSecondary3(). returns: the menu background color - `javax.swing.plaf.ColorUIResource`
(get-menu-disabled-foreground this)
Returns the menu disabled foreground color. This returns the value of getSecondary2().
returns: the menu disabled foreground color - javax.swing.plaf.ColorUIResource
Returns the menu disabled foreground color. This returns the value of getSecondary2(). returns: the menu disabled foreground color - `javax.swing.plaf.ColorUIResource`
(get-menu-foreground this)
Returns the menu foreground color. This returns the value of getBlack().
returns: the menu foreground color - javax.swing.plaf.ColorUIResource
Returns the menu foreground color. This returns the value of getBlack(). returns: the menu foreground color - `javax.swing.plaf.ColorUIResource`
(get-menu-selected-background this)
Returns the menu selected background color. This returns the value of getPrimary2().
returns: the menu selected background color - javax.swing.plaf.ColorUIResource
Returns the menu selected background color. This returns the value of getPrimary2(). returns: the menu selected background color - `javax.swing.plaf.ColorUIResource`
(get-menu-selected-foreground this)
Returns the menu selected foreground color. This returns the value of getBlack().
returns: the menu selected foreground color - javax.swing.plaf.ColorUIResource
Returns the menu selected foreground color. This returns the value of getBlack(). returns: the menu selected foreground color - `javax.swing.plaf.ColorUIResource`
(get-menu-text-font this)
Returns the menu text font.
returns: the menu text font - javax.swing.plaf.FontUIResource
Returns the menu text font. returns: the menu text font - `javax.swing.plaf.FontUIResource`
(get-name this)
Returns the name of this theme.
returns: the name of this theme - java.lang.String
Returns the name of this theme. returns: the name of this theme - `java.lang.String`
(get-primary-control this)
Returns the primary control color. This returns the value of getPrimary3().
returns: the primary control color - javax.swing.plaf.ColorUIResource
Returns the primary control color. This returns the value of getPrimary3(). returns: the primary control color - `javax.swing.plaf.ColorUIResource`
(get-primary-control-dark-shadow this)
Returns the primary control dark shadow color. This returns the value of getPrimary1().
returns: the primary control dark shadow color - javax.swing.plaf.ColorUIResource
Returns the primary control dark shadow color. This returns the value of getPrimary1(). returns: the primary control dark shadow color - `javax.swing.plaf.ColorUIResource`
(get-primary-control-highlight this)
Returns the primary control highlight color. This returns the value of getWhite().
returns: the primary control highlight color - javax.swing.plaf.ColorUIResource
Returns the primary control highlight color. This returns the value of getWhite(). returns: the primary control highlight color - `javax.swing.plaf.ColorUIResource`
(get-primary-control-info this)
Returns the primary control info color. This returns the value of getBlack().
returns: the primary control info color - javax.swing.plaf.ColorUIResource
Returns the primary control info color. This returns the value of getBlack(). returns: the primary control info color - `javax.swing.plaf.ColorUIResource`
(get-primary-control-shadow this)
Returns the primary control shadow color. This returns the value of getPrimary2().
returns: the primary control shadow color - javax.swing.plaf.ColorUIResource
Returns the primary control shadow color. This returns the value of getPrimary2(). returns: the primary control shadow color - `javax.swing.plaf.ColorUIResource`
(get-separator-background this)
Returns the separator background color. This returns the value of getWhite().
returns: the separator background color - javax.swing.plaf.ColorUIResource
Returns the separator background color. This returns the value of getWhite(). returns: the separator background color - `javax.swing.plaf.ColorUIResource`
(get-separator-foreground this)
Returns the separator foreground color. This returns the value of getPrimary1().
returns: the separator foreground color - javax.swing.plaf.ColorUIResource
Returns the separator foreground color. This returns the value of getPrimary1(). returns: the separator foreground color - `javax.swing.plaf.ColorUIResource`
(get-sub-text-font this)
Returns the sub-text font.
returns: the sub-text font - javax.swing.plaf.FontUIResource
Returns the sub-text font. returns: the sub-text font - `javax.swing.plaf.FontUIResource`
(get-system-text-color this)
Returns the system text color. This returns the value of getBlack().
returns: the system text color - javax.swing.plaf.ColorUIResource
Returns the system text color. This returns the value of getBlack(). returns: the system text color - `javax.swing.plaf.ColorUIResource`
(get-system-text-font this)
Returns the system text font.
returns: the system text font - javax.swing.plaf.FontUIResource
Returns the system text font. returns: the system text font - `javax.swing.plaf.FontUIResource`
(get-text-highlight-color this)
Returns the text highlight color. This returns the value of getPrimary3().
returns: the text highlight color - javax.swing.plaf.ColorUIResource
Returns the text highlight color. This returns the value of getPrimary3(). returns: the text highlight color - `javax.swing.plaf.ColorUIResource`
(get-user-text-color this)
Returns the user text color. This returns the value of getBlack().
returns: the user text color - javax.swing.plaf.ColorUIResource
Returns the user text color. This returns the value of getBlack(). returns: the user text color - `javax.swing.plaf.ColorUIResource`
(get-user-text-font this)
Returns the user text font.
returns: the user text font - javax.swing.plaf.FontUIResource
Returns the user text font. returns: the user text font - `javax.swing.plaf.FontUIResource`
(get-window-background this)
Returns the window background color. This returns the value of getWhite().
returns: the window background color - javax.swing.plaf.ColorUIResource
Returns the window background color. This returns the value of getWhite(). returns: the window background color - `javax.swing.plaf.ColorUIResource`
(get-window-title-background this)
Returns the window title background color. This returns the value of getPrimary3().
returns: the window title background color - javax.swing.plaf.ColorUIResource
Returns the window title background color. This returns the value of getPrimary3(). returns: the window title background color - `javax.swing.plaf.ColorUIResource`
(get-window-title-font this)
Returns the window title font.
returns: the window title font - javax.swing.plaf.FontUIResource
Returns the window title font. returns: the window title font - `javax.swing.plaf.FontUIResource`
(get-window-title-foreground this)
Returns the window title foreground color. This returns the value of getBlack().
returns: the window title foreground color - javax.swing.plaf.ColorUIResource
Returns the window title foreground color. This returns the value of getBlack(). returns: the window title foreground color - `javax.swing.plaf.ColorUIResource`
(get-window-title-inactive-background this)
Returns the window title inactive background color. This returns the value of getSecondary3().
returns: the window title inactive background color - javax.swing.plaf.ColorUIResource
Returns the window title inactive background color. This returns the value of getSecondary3(). returns: the window title inactive background color - `javax.swing.plaf.ColorUIResource`
(get-window-title-inactive-foreground this)
Returns the window title inactive foreground color. This returns the value of getBlack().
returns: the window title inactive foreground color - javax.swing.plaf.ColorUIResource
Returns the window title inactive foreground color. This returns the value of getBlack(). returns: the window title inactive foreground color - `javax.swing.plaf.ColorUIResource`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close