Liking cljdoc? Tell your friends :D

javax.swing.plaf.metal.MetalTheme

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.
raw docstring

->metal-themeclj

(->metal-theme)

Constructor.

Constructor.
raw docstring

add-custom-entries-to-tableclj

(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`
raw docstring

get-accelerator-foregroundclj

(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`
raw docstring

get-accelerator-selected-foregroundclj

(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`
raw docstring

get-controlclj

(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`
raw docstring

get-control-dark-shadowclj

(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`
raw docstring

get-control-disabledclj

(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`
raw docstring

get-control-highlightclj

(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`
raw docstring

get-control-infoclj

(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`
raw docstring

get-control-shadowclj

(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`
raw docstring

get-control-text-colorclj

(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`
raw docstring

get-control-text-fontclj

(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`
raw docstring

get-desktop-colorclj

(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`
raw docstring

get-focus-colorclj

(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`
raw docstring

get-highlighted-text-colorclj

(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`
raw docstring

get-inactive-control-text-colorclj

(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`
raw docstring

get-inactive-system-text-colorclj

(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`
raw docstring

get-menu-backgroundclj

(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`
raw docstring

get-menu-disabled-foregroundclj

(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`
raw docstring

get-menu-foregroundclj

(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`
raw docstring

get-menu-selected-backgroundclj

(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`
raw docstring

get-menu-selected-foregroundclj

(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`
raw docstring

get-menu-text-fontclj

(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`
raw docstring

get-nameclj

(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`
raw docstring

get-primary-controlclj

(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`
raw docstring

get-primary-control-dark-shadowclj

(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`
raw docstring

get-primary-control-highlightclj

(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`
raw docstring

get-primary-control-infoclj

(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`
raw docstring

get-primary-control-shadowclj

(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`
raw docstring

get-separator-backgroundclj

(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`
raw docstring

get-separator-foregroundclj

(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`
raw docstring

get-sub-text-fontclj

(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`
raw docstring

get-system-text-colorclj

(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`
raw docstring

get-system-text-fontclj

(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`
raw docstring

get-text-highlight-colorclj

(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`
raw docstring

get-user-text-colorclj

(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`
raw docstring

get-user-text-fontclj

(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`
raw docstring

get-window-backgroundclj

(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`
raw docstring

get-window-title-backgroundclj

(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`
raw docstring

get-window-title-fontclj

(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`
raw docstring

get-window-title-foregroundclj

(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`
raw docstring

get-window-title-inactive-backgroundclj

(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`
raw docstring

get-window-title-inactive-foregroundclj

(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`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close