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.
(*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`
(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
(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
(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`
(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`
(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`
(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`
(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`
(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`
(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`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close