Liking cljdoc? Tell your friends :D

javax.swing.plaf.basic.BasicLabelUI

A Windows L&F implementation of LabelUI. This implementation is completely static, i.e. there's only one UIView implementation that's shared by all JLabel objects.

A Windows L&F implementation of LabelUI.  This implementation
is completely static, i.e. there's only one UIView implementation
that's shared by all JLabel objects.
raw docstring

*create-uiclj

(*create-ui c)

Returns an instance of BasicLabelUI.

c - a component - javax.swing.JComponent

returns: an instance of BasicLabelUI - javax.swing.plaf.ComponentUI

Returns an instance of BasicLabelUI.

c - a component - `javax.swing.JComponent`

returns: an instance of BasicLabelUI - `javax.swing.plaf.ComponentUI`
raw docstring

->basic-label-uiclj

(->basic-label-ui)

Constructor.

Constructor.
raw docstring

get-baselineclj

(get-baseline this c width height)

Returns the baseline.

c - JComponent baseline is being requested for - javax.swing.JComponent width - the width to get the baseline for - int height - the height to get the baseline for - int

returns: baseline or a value < 0 indicating there is no reasonable baseline - int

throws: java.lang.NullPointerException - if c is null

Returns the baseline.

c - JComponent baseline is being requested for - `javax.swing.JComponent`
width - the width to get the baseline for - `int`
height - the height to get the baseline for - `int`

returns: baseline or a value < 0 indicating there is no reasonable
                  baseline - `int`

throws: java.lang.NullPointerException - if c is null
raw docstring

get-baseline-resize-behaviorclj

(get-baseline-resize-behavior this c)

Returns an enum indicating how the baseline of the component changes as the size changes.

c - JComponent to return baseline resize behavior for - javax.swing.JComponent

returns: an enum indicating how the baseline changes as the component size changes - java.awt.Component$BaselineResizeBehavior

throws: java.lang.NullPointerException - if c is null

Returns an enum indicating how the baseline of the component
 changes as the size changes.

c - JComponent to return baseline resize behavior for - `javax.swing.JComponent`

returns: an enum indicating how the baseline changes as the component
         size changes - `java.awt.Component$BaselineResizeBehavior`

throws: java.lang.NullPointerException - if c is null
raw docstring

get-maximum-sizeclj

(get-maximum-size this c)

Description copied from class: ComponentUI

c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent

returns: getPreferredSize(c) - java.awt.Dimension

Description copied from class: ComponentUI

c - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`

returns: getPreferredSize(c) - `java.awt.Dimension`
raw docstring

get-minimum-sizeclj

(get-minimum-size this c)

Description copied from class: ComponentUI

c - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent

returns: getPreferredSize(c) - java.awt.Dimension

Description copied from class: ComponentUI

c - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`

returns: getPreferredSize(c) - `java.awt.Dimension`
raw docstring

get-preferred-sizeclj

(get-preferred-size this c)

Description copied from class: ComponentUI

c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent

returns: java.awt.Dimension

Description copied from class: ComponentUI

c - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`

returns: `java.awt.Dimension`
raw docstring

install-uiclj

(install-ui this c)

Description copied from class: ComponentUI

c - the component where this UI delegate is being installed - javax.swing.JComponent

Description copied from class: ComponentUI

c - the component where this UI delegate is being installed - `javax.swing.JComponent`
raw docstring

paintclj

(paint this g c)

Paints the label text with the foreground color, if the label is opaque then paints the entire background with the background color. The Label text is drawn by paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int) or paintDisabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int). The locations of the label parts are computed by layoutCL(javax.swing.JLabel, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle).

g - the Graphics context in which to paint - java.awt.Graphics c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent

Paints the label text with the foreground color, if the label is opaque
 then paints the entire background with the background color. The Label
 text is drawn by paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int) or paintDisabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int).
 The locations of the label parts are computed by layoutCL(javax.swing.JLabel, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle).

g - the Graphics context in which to paint - `java.awt.Graphics`
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`
raw docstring

property-changeclj

(property-change this e)

Description copied from interface: PropertyChangeListener

e - A PropertyChangeEvent object describing the event source and the property that has changed. - java.beans.PropertyChangeEvent

Description copied from interface: PropertyChangeListener

e - A PropertyChangeEvent object describing the event source and the property that has changed. - `java.beans.PropertyChangeEvent`
raw docstring

uninstall-uiclj

(uninstall-ui this c)

Description copied from class: ComponentUI

c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent

Description copied from class: ComponentUI

c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`
raw docstring

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

× close