public class BounceLabelUI extends BasicLabelUI
Constructor and Description |
---|
BounceLabelUI() |
Modifier and Type | Method and Description |
---|---|
static ComponentUI |
createUI(JComponent c)
Creates the one version of this UI.
|
Dimension |
getPreferredSize(JComponent c)
Returns the preferred size of the label, this size will return the
full width of the text as the preferred width and the full height of the
lines as the height.
|
void |
installUI(JComponent c)
Installs the UI for the supplied component.
|
void |
paint(Graphics g,
JComponent c)
Overrides the paint method in the BasicLabelUI class.
|
void |
uninstallUI(JComponent c)
Un-installs the current UI for the supplied component.
|
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
contains, getAccessibleChild, getAccessibleChildrenCount, update
public static ComponentUI createUI(JComponent c)
c
- the component the ui needs to be installed for.public void installUI(JComponent c)
installUI
in class BasicLabelUI
c
- the component the ui needs to be installed for.public void uninstallUI(JComponent c)
uninstallUI
in class BasicLabelUI
c
- the component the ui needs to be un-installed for.public void paint(Graphics g, JComponent c)
paint
in class BasicLabelUI
g
- the graphics.c
- the button component.public Dimension getPreferredSize(JComponent c)
This method is a revamped version of the method found in: BasicLabelUI.getPreferredSize()
getPreferredSize
in class BasicLabelUI
c
- the button component.Copyright © 2002-2013 Edwin Dankert. All Rights Reserved.