Package Summary  Overview Summary

class:BasicLabelUI [NONE]

field:labelUI [NONE]

  • labelUI

    protected static BasicLabelUI labelUI
    The default BasicLabelUI instance. This field might not be used. To change the default instance use a subclass which overrides the createUI method, and place that class name in defaults table under the key "LabelUI".

constructor:<init>() [NONE]

  • BasicLabelUI

    public BasicLabelUI()

method:layoutCL(javax.swing.JLabel,java.awt.FontMetrics,java.lang.String,javax.swing.Icon,java.awt.Rectangle,java.awt.Rectangle,java.awt.Rectangle) [NONE]

method:paintEnabledText(javax.swing.JLabel,java.awt.Graphics,java.lang.String,int,int) [NONE]

method:paintDisabledText(javax.swing.JLabel,java.awt.Graphics,java.lang.String,int,int) [NONE]

method:paint(java.awt.Graphics,javax.swing.JComponent) [NONE]

method:getPreferredSize(javax.swing.JComponent) [NONE]

  • getPreferredSize

    public Dimension getPreferredSize​(JComponent c)
    Description copied from class: ComponentUI
    Returns the specified component's preferred size appropriate for the look and feel. If null is returned, the preferred size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method returns null.
    Overrides:
    getPreferredSize in class ComponentUI
    Parameters:
    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
    Returns:
    a Dimension object containing given component's preferred size appropriate for the look and feel
    See Also:
    JComponent.getPreferredSize(), LayoutManager.preferredLayoutSize(java.awt.Container)

method:getMinimumSize(javax.swing.JComponent) [NONE]

method:getMaximumSize(javax.swing.JComponent) [NONE]

  • getMaximumSize

    public Dimension getMaximumSize​(JComponent c)
    Description copied from class: ComponentUI
    Returns the specified component's maximum size appropriate for the look and feel. If null is returned, the maximum size will be calculated by the component's layout manager instead (this is the preferred approach for any component with a specific layout manager installed). The default implementation of this method invokes getPreferredSize and returns that value.
    Overrides:
    getMaximumSize in class ComponentUI
    Parameters:
    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
    Returns:
    getPreferredSize(c)
    See Also:
    JComponent.getMaximumSize(), LayoutManager2.maximumLayoutSize(java.awt.Container)

method:getBaseline(javax.swing.JComponent,int,int) [NONE]

method:getBaselineResizeBehavior(javax.swing.JComponent) [NONE]

method:installUI(javax.swing.JComponent) [NONE]

  • installUI

    public void installUI​(JComponent c)
    Description copied from class: ComponentUI
    Configures the specified component appropriately for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
    1. Install default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
    2. Install a LayoutManager on the component if necessary.
    3. Create/add any required sub-components to the component.
    4. Create/install event listeners on the component.
    5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
    6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
    7. Initialize any appropriate instance data.
    Overrides:
    installUI in class ComponentUI
    Parameters:
    c - the component where this UI delegate is being installed
    See Also:
    ComponentUI.uninstallUI(javax.swing.JComponent), JComponent.setUI(javax.swing.plaf.ComponentUI), JComponent.updateUI()

method:uninstallUI(javax.swing.JComponent) [NONE]

  • uninstallUI

    public void uninstallUI​(JComponent c)
    Description copied from class: ComponentUI
    Reverses configuration which was done on the specified component during installUI. This method is invoked when this UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
    1. Remove any UI-set borders from the component.
    2. Remove any UI-set layout managers on the component.
    3. Remove any UI-added sub-components from the component.
    4. Remove any UI-added event/property listeners from the component.
    5. Remove any UI-installed keyboard UI from the component.
    6. Nullify any allocated instance data objects to allow for GC.
    Overrides:
    uninstallUI in class ComponentUI
    Parameters:
    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
    See Also:
    ComponentUI.installUI(javax.swing.JComponent), JComponent.updateUI()

method:installDefaults(javax.swing.JLabel) [NONE]

  • installDefaults

    protected void installDefaults​(JLabel c)
    Installs default properties.
    Parameters:
    c - an instance of JLabel

method:installListeners(javax.swing.JLabel) [NONE]

  • installListeners

    protected void installListeners​(JLabel c)
    Registers listeners.
    Parameters:
    c - an instance of JLabel

method:installComponents(javax.swing.JLabel) [NONE]

  • installComponents

    protected void installComponents​(JLabel c)
    Registers components.
    Parameters:
    c - an instance of JLabel

method:installKeyboardActions(javax.swing.JLabel) [NONE]

  • installKeyboardActions

    protected void installKeyboardActions​(JLabel l)
    Registers keyboard actions.
    Parameters:
    l - an instance of JLabel

method:uninstallDefaults(javax.swing.JLabel) [NONE]

  • uninstallDefaults

    protected void uninstallDefaults​(JLabel c)
    Uninstalls default properties.
    Parameters:
    c - an instance of JLabel

method:uninstallListeners(javax.swing.JLabel) [NONE]

  • uninstallListeners

    protected void uninstallListeners​(JLabel c)
    Unregisters listeners.
    Parameters:
    c - an instance of JLabel

method:uninstallComponents(javax.swing.JLabel) [NONE]

  • uninstallComponents

    protected void uninstallComponents​(JLabel c)
    Unregisters components.
    Parameters:
    c - an instance of JLabel

method:uninstallKeyboardActions(javax.swing.JLabel) [NONE]

  • uninstallKeyboardActions

    protected void uninstallKeyboardActions​(JLabel c)
    Unregisters keyboard actions.
    Parameters:
    c - an instance of JLabel

method:createUI(javax.swing.JComponent) [NONE]

  • createUI

    public static ComponentUI createUI​(JComponent c)
    Returns an instance of BasicLabelUI.
    Parameters:
    c - a component
    Returns:
    an instance of BasicLabelUI

method:propertyChange(java.beans.PropertyChangeEvent) [NONE]

© 2019 Oracle Corporation and/or its affiliates