|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.LabelUI
javax.swing.plaf.basic.BasicLabelUI
org.bounce.plaf.BounceLabelUI
public class BounceLabelUI
Extend the BasicLabelUI class, this LabelUI allows for a multi-line label.
Constructor Summary | |
---|---|
BounceLabelUI()
|
Method Summary | |
---|---|
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. |
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI |
---|
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, installComponents, installDefaults, installKeyboardActions, installListeners, layoutCL, paintDisabledText, paintEnabledText, propertyChange, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners |
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, toString, wait, wait, wait |
Constructor Detail |
---|
public BounceLabelUI()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |