|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Creates the one version of this UI. |
java.awt.Dimension |
getPreferredSize(javax.swing.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(javax.swing.JComponent c)
Installs the UI for the supplied component. |
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Overrides the paint method in the BasicLabelUI class. |
void |
uninstallUI(javax.swing.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 javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
c
- the component the ui needs to be installed for.
public void installUI(javax.swing.JComponent c)
installUI
in class javax.swing.plaf.basic.BasicLabelUI
c
- the component the ui needs to be installed for.public void uninstallUI(javax.swing.JComponent c)
uninstallUI
in class javax.swing.plaf.basic.BasicLabelUI
c
- the component the ui needs to be un-installed for.public void paint(java.awt.Graphics g, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicLabelUI
g
- the graphics.c
- the button component.public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
This method is a revamped version of the method found in: BasicLabelUI.getPreferredSize()
getPreferredSize
in class javax.swing.plaf.basic.BasicLabelUI
c
- the button component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |