Liking cljdoc? Tell your friends :D

javax.swing.plaf.synth.SynthStyle

SynthStyle is a set of style properties. Each SynthUI references at least one SynthStyle that is obtained using a SynthStyleFactory. You typically don't need to interact with this class directly, rather you will load a Synth File Format file into SynthLookAndFeel that will create a set of SynthStyles.

SynthStyle is a set of style properties.
Each SynthUI references at least one
SynthStyle that is obtained using a
SynthStyleFactory. You typically don't need to interact with
this class directly, rather you will load a
Synth File Format file into
SynthLookAndFeel that will create a set of SynthStyles.
raw docstring

->synth-styleclj

(->synth-style)

Constructor.

Constructs a SynthStyle.

Constructor.

Constructs a SynthStyle.
raw docstring

getclj

(get this context key)

Getter for a region specific style property.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext key - Property being requested. - java.lang.Object

returns: Value of the named property - java.lang.Object

Getter for a region specific style property.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`
key - Property being requested. - `java.lang.Object`

returns: Value of the named property - `java.lang.Object`
raw docstring

get-boolean?clj

(get-boolean? this context key default-value)

Convenience method to get a specific style property whose value is an Boolean.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext key - Property being requested. - java.lang.Object default-value - Value to return if the property has not been specified, or is not a Boolean - boolean

returns: Value of the named property - boolean

Convenience method to get a specific style property whose value is
 an Boolean.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`
key - Property being requested. - `java.lang.Object`
default-value - Value to return if the property has not been specified, or is not a Boolean - `boolean`

returns: Value of the named property - `boolean`
raw docstring

get-colorclj

(get-color this context type)

Returns the color for the specified state. This gives precedence to foreground and background of the JComponent. If the Color from the JComponent is not appropriate, or not used, this will invoke getColorForState. Subclasses should generally not have to override this, instead override getColorForState(javax.swing.plaf.synth.SynthContext, javax.swing.plaf.synth.ColorType).

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext type - Type of color being requested. - javax.swing.plaf.synth.ColorType

returns: Color - java.awt.Color

Returns the color for the specified state. This gives precedence to
 foreground and background of the JComponent. If the
 Color from the JComponent is not appropriate,
 or not used, this will invoke getColorForState. Subclasses
 should generally not have to override this, instead override
 getColorForState(javax.swing.plaf.synth.SynthContext, javax.swing.plaf.synth.ColorType).

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`
type - Type of color being requested. - `javax.swing.plaf.synth.ColorType`

returns: Color - `java.awt.Color`
raw docstring

get-fontclj

(get-font this context)

Returns the Font for the specified state. This redirects to the JComponent from the context as necessary. If this does not redirect to the JComponent getFontForState(javax.swing.plaf.synth.SynthContext) is invoked.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext

returns: Font to render with - java.awt.Font

Returns the Font for the specified state. This redirects to the
 JComponent from the context as necessary.
 If this does not redirect
 to the JComponent getFontForState(javax.swing.plaf.synth.SynthContext) is invoked.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`

returns: Font to render with - `java.awt.Font`
raw docstring

get-graphics-utilsclj

(get-graphics-utils this context)

Returns the SynthGraphicUtils for the specified context.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext

returns: SynthGraphicsUtils - javax.swing.plaf.synth.SynthGraphicsUtils

Returns the SynthGraphicUtils for the specified context.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`

returns: SynthGraphicsUtils - `javax.swing.plaf.synth.SynthGraphicsUtils`
raw docstring

get-iconclj

(get-icon this context key)

Convenience method to get a specific style property whose value is an Icon.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext key - Property being requested. - java.lang.Object

returns: Value of the named property, or null if not specified - javax.swing.Icon

Convenience method to get a specific style property whose value is
 an Icon.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`
key - Property being requested. - `java.lang.Object`

returns: Value of the named property, or null if not specified - `javax.swing.Icon`
raw docstring

get-insetsclj

(get-insets this context insets)

Returns the Insets that are used to calculate sizing information.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext insets - Insets to place return value in. - java.awt.Insets

returns: Sizing Insets. - java.awt.Insets

Returns the Insets that are used to calculate sizing information.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`
insets - Insets to place return value in. - `java.awt.Insets`

returns: Sizing Insets. - `java.awt.Insets`
raw docstring

get-intclj

(get-int this context key default-value)

Convenience method to get a specific style property whose value is a Number. If the value is a Number, intValue is returned, otherwise defaultValue is returned.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext key - Property being requested. - java.lang.Object default-value - Value to return if the property has not been specified, or is not a Number - int

returns: Value of the named property - int

Convenience method to get a specific style property whose value is
 a Number. If the value is a Number,
 intValue is returned, otherwise defaultValue
 is returned.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`
key - Property being requested. - `java.lang.Object`
default-value - Value to return if the property has not been specified, or is not a Number - `int`

returns: Value of the named property - `int`
raw docstring

get-painterclj

(get-painter this context)

Returns the SynthPainter that will be used for painting. This may return null.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext

returns: SynthPainter to use - javax.swing.plaf.synth.SynthPainter

Returns the SynthPainter that will be used for painting.
 This may return null.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`

returns: SynthPainter to use - `javax.swing.plaf.synth.SynthPainter`
raw docstring

get-stringclj

(get-string this context key default-value)

Convenience method to get a specific style property whose value is a String.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext key - Property being requested. - java.lang.Object default-value - Value to return if the property has not been specified, or is not a String - java.lang.String

returns: Value of the named property - java.lang.String

Convenience method to get a specific style property whose value is
 a String.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`
key - Property being requested. - `java.lang.Object`
default-value - Value to return if the property has not been specified, or is not a String - `java.lang.String`

returns: Value of the named property - `java.lang.String`
raw docstring

install-defaultsclj

(install-defaults this context)

Installs the necessary state from this Style on the JComponent from context.

context - SynthContext identifying component to install properties to. - javax.swing.plaf.synth.SynthContext

Installs the necessary state from this Style on the
 JComponent from context.

context - SynthContext identifying component to install properties to. - `javax.swing.plaf.synth.SynthContext`
raw docstring

opaque?clj

(opaque? this context)

Returns true if the region is opaque.

context - SynthContext identifying requester - javax.swing.plaf.synth.SynthContext

returns: true if region is opaque. - boolean

Returns true if the region is opaque.

context - SynthContext identifying requester - `javax.swing.plaf.synth.SynthContext`

returns: true if region is opaque. - `boolean`
raw docstring

uninstall-defaultsclj

(uninstall-defaults this context)

Uninstalls any state that this style installed on the JComponent from context.

Styles should NOT depend upon this being called, in certain cases it may never be called.

context - SynthContext identifying component to install properties to. - javax.swing.plaf.synth.SynthContext

Uninstalls any state that this style installed on
 the JComponent from context.

 Styles should NOT depend upon this being called, in certain cases
 it may never be called.

context - SynthContext identifying component to install properties to. - `javax.swing.plaf.synth.SynthContext`
raw docstring

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

× close