Liking cljdoc? Tell your friends :D

javax.swing.plaf.nimbus.NimbusLookAndFeel

The NimbusLookAndFeel class.

The NimbusLookAndFeel class.
raw docstring

*get-styleclj

(*get-style c r)

Gets the style associated with the given component and region. This will never return null. If an appropriate component and region cannot be determined, then a default style is returned.

c - a non-null reference to a JComponent - javax.swing.JComponent r - a non-null reference to the region of the component c - javax.swing.plaf.synth.Region

returns: a non-null reference to a NimbusStyle. - javax.swing.plaf.nimbus.NimbusStyle

Gets the style associated with the given component and region. This
 will never return null. If an appropriate component and region cannot
 be determined, then a default style is returned.

c - a non-null reference to a JComponent - `javax.swing.JComponent`
r - a non-null reference to the region of the component c - `javax.swing.plaf.synth.Region`

returns: a non-null reference to a NimbusStyle. - `javax.swing.plaf.nimbus.NimbusStyle`
raw docstring

->nimbus-look-and-feelclj

(->nimbus-look-and-feel)

Constructor.

Create a new NimbusLookAndFeel.

Constructor.

Create a new NimbusLookAndFeel.
raw docstring

get-defaultsclj

(get-defaults this)

Returns the defaults for this SynthLookAndFeel.

returns: Defaults table. - javax.swing.UIDefaults

Returns the defaults for this SynthLookAndFeel.

returns: Defaults table. - `javax.swing.UIDefaults`
raw docstring

get-derived-colorclj

(get-derived-color this
                   ui-default-parent-name
                   h-offset
                   s-offset
                   b-offset
                   a-offset
                   ui-resource)

Get a derived color, derived colors are shared instances and is color value will change when its parent UIDefault color changes.

ui-default-parent-name - The parent UIDefault key - java.lang.String h-offset - The hue offset - float s-offset - The saturation offset - float b-offset - The brightness offset - float a-offset - The alpha offset - int ui-resource - True if the derived color should be a UIResource, false if it should not be - boolean

returns: The stored derived color - java.awt.Color

Get a derived color, derived colors are shared instances and is color
 value will change when its parent UIDefault color changes.

ui-default-parent-name - The parent UIDefault key - `java.lang.String`
h-offset - The hue offset - `float`
s-offset - The saturation offset - `float`
b-offset - The brightness offset - `float`
a-offset - The alpha offset - `int`
ui-resource - True if the derived color should be a UIResource, false if it should not be - `boolean`

returns: The stored derived color - `java.awt.Color`
raw docstring

get-descriptionclj

(get-description this)

Returns a textual description of this look and feel.

returns: textual description of this look and feel. - java.lang.String

Returns a textual description of this look and feel.

returns: textual description of this look and feel. - `java.lang.String`
raw docstring

get-disabled-iconclj

(get-disabled-icon this component icon)

Description copied from class: LookAndFeel

component - JComponent that will display the Icon, may be null - javax.swing.JComponent icon - Icon to generate the disabled icon from - javax.swing.Icon

returns: disabled Icon, or null if a suitable Icon can not be generated - javax.swing.Icon

Description copied from class: LookAndFeel

component - JComponent that will display the Icon, may be null - `javax.swing.JComponent`
icon - Icon to generate the disabled icon from - `javax.swing.Icon`

returns: disabled Icon, or null if a suitable
         Icon can not be generated - `javax.swing.Icon`
raw docstring

get-idclj

(get-id this)

Return a string that identifies this look and feel. This String will be the unquoted String "Nimbus".

returns: a short string identifying this look and feel. - java.lang.String

Return a string that identifies this look and feel. This String will
 be the unquoted String "Nimbus".

returns: a short string identifying this look and feel. - `java.lang.String`
raw docstring

get-nameclj

(get-name this)

Return a short string that identifies this look and feel. This String will be the unquoted String "Nimbus".

returns: a short string identifying this look and feel. - java.lang.String

Return a short string that identifies this look and feel. This
 String will be the unquoted String "Nimbus".

returns: a short string identifying this look and feel. - `java.lang.String`
raw docstring

initializeclj

(initialize this)

Called by UIManager when this look and feel is installed.

Called by UIManager when this look and feel is installed.
raw docstring

registerclj

(register this region prefix)

Registers a third party component with the NimbusLookAndFeel.

Regions represent Components and areas within Components that act as independent painting areas. Once registered with the NimbusLookAndFeel, NimbusStyles for these Regions can be retrieved via the getStyle method.

The NimbusLookAndFeel uses a standard naming scheme for entries in the UIDefaults table. The key for each property, state, painter, and other default registered in UIDefaults for a specific Region will begin with the specified prefix

For example, suppose I had a component named JFoo. Suppose I then registered this component with the NimbusLookAndFeel in this manner:

 laf.register(NimbusFooUI.FOO_REGION, "Foo");

In this case, I could then register properties for this component with UIDefaults in the following manner:

 UIManager.put("Foo.background", new ColorUIResource(Color.BLACK));
 UIManager.put("Foo.Enabled.backgroundPainter", new FooBackgroundPainter());

It is also possible to register a named component with Nimbus. For example, suppose you wanted to style the background of a JPanel named "MyPanel" differently from other JPanels. You could accomplish this by doing the following:

 laf.register(Region.PANEL, "\"MyPanel\"");
 UIManager.put("\"MyPanel\".background", new ColorUIResource(Color.RED));

region - The Synth Region that is being registered. Such as Button, or ScrollBarThumb, or NimbusFooUI.FOO_REGION. - javax.swing.plaf.synth.Region prefix - The UIDefault prefix. For example, could be ComboBox, or if a named components, "MyComboBox", or even something like ToolBar."MyComboBox"."ComboBox.arrowButton" - java.lang.String

Registers a third party component with the NimbusLookAndFeel.

 Regions represent Components and areas within Components that act as
 independent painting areas. Once registered with the NimbusLookAndFeel,
 NimbusStyles for these Regions can be retrieved via the
 getStyle method.

 The NimbusLookAndFeel uses a standard naming scheme for entries in the
 UIDefaults table. The key for each property, state, painter, and other
 default registered in UIDefaults for a specific Region will begin with
 the specified prefix

 For example, suppose I had a component named JFoo. Suppose I then registered
 this component with the NimbusLookAndFeel in this manner:



     laf.register(NimbusFooUI.FOO_REGION, "Foo");

 In this case, I could then register properties for this component with
 UIDefaults in the following manner:



     UIManager.put("Foo.background", new ColorUIResource(Color.BLACK));
     UIManager.put("Foo.Enabled.backgroundPainter", new FooBackgroundPainter());

 It is also possible to register a named component with Nimbus.
 For example, suppose you wanted to style the background of a JPanel
 named "MyPanel" differently from other JPanels. You could accomplish this
 by doing the following:



     laf.register(Region.PANEL, "\"MyPanel\"");
     UIManager.put("\"MyPanel\".background", new ColorUIResource(Color.RED));

region - The Synth Region that is being registered. Such as Button, or ScrollBarThumb, or NimbusFooUI.FOO_REGION. - `javax.swing.plaf.synth.Region`
prefix - The UIDefault prefix. For example, could be ComboBox, or if a named components, "MyComboBox", or even something like ToolBar."MyComboBox"."ComboBox.arrowButton" - `java.lang.String`
raw docstring

should-update-style-on-ancestor-changed?clj

(should-update-style-on-ancestor-changed? this)

Returns whether or not the UIs should update their SynthStyles from the SynthStyleFactory when the ancestor of the JComponent changes. A subclass that provided a SynthStyleFactory that based the return value from getStyle off the containment hierarchy would override this method to return true.

returns: true - boolean

Returns whether or not the UIs should update their
 SynthStyles from the SynthStyleFactory
 when the ancestor of the JComponent changes. A subclass
 that provided a SynthStyleFactory that based the
 return value from getStyle off the containment hierarchy
 would override this method to return true.

returns: true - `boolean`
raw docstring

uninitializeclj

(uninitialize this)

Called by UIManager when this look and feel is uninstalled.

Called by UIManager when this look and feel is uninstalled.
raw docstring

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

× close