Class ImageLabel.ImageLabelUI

Enclosing class:

protected class ImageLabel.ImageLabelUI
extends javax.swing.plaf.basic.BasicLabelUI

The ImageLabelUI is an user interface to draw the specified image icon on the label. Even if the area of the label is not same as the size of the image icon, the paint method rescales and draws properly.

Inner classes inherited from class javax.swing.plaf.basic.BasicLabelUI
javax.swing.plaf.basic.BasicLabelUI.PressAction, javax.swing.plaf.basic.BasicLabelUI.ReleaseAction
Fields inherited from class javax.swing.plaf.basic.BasicLabelUI
iconR, labelUI, paintIconR, paintTextR, paintViewInsets, paintViewR, textR, viewInsets, viewR
Constructor Summary
protected ImageLabel.ImageLabelUI()
Method Summary
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
          Draws the splash image.
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI
, createUI, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait

Constructor Detail


protected ImageLabel.ImageLabelUI()
Method Detail


public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Draws the splash image.
paint in class javax.swing.plaf.basic.BasicLabelUI
g - the graphics to draw on.
c - the label to draw on.