|
Quaqua 5.4.1 2009-07-14 | ||||||||
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
ch.randelshofer.quaqua.QuaquaLabelUI
public class QuaquaLabelUI
QuaquaLabelUI.
Field Summary | |
---|---|
protected static QuaquaLabelUI |
labelUI
|
Fields inherited from interface ch.randelshofer.quaqua.VisuallyLayoutable |
---|
CLIP_BOUNDS, COMPONENT_BOUNDS, TEXT_BOUNDS |
Constructor Summary | |
---|---|
QuaquaLabelUI()
|
Method Summary | |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Preferred spacing between labels and other components. |
int |
getBaseline(javax.swing.JComponent c,
int width,
int height)
Returns the baseline for the specified component, or -1 if the baseline can not be determined. |
java.awt.Rectangle |
getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
Returns the visual bounds for the specified component, or null if the visual bounds can not be determined. |
protected void |
installDefaults(javax.swing.JLabel b)
|
protected java.lang.String |
layoutCL(javax.swing.JLabel label,
java.awt.FontMetrics fontMetrics,
java.lang.String text,
javax.swing.Icon icon,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.Rectangle textR)
Forwards the call to SwingUtilities.layoutCompoundLabel(). |
void |
paint(java.awt.Graphics gr,
javax.swing.JComponent c)
|
protected void |
paintDisabledText(javax.swing.JLabel l,
java.awt.Graphics g,
java.lang.String s,
int textX,
int textY)
Paint label with disabled text color. |
protected void |
paintEnabledText(javax.swing.JLabel l,
java.awt.Graphics g,
java.lang.String s,
int textX,
int textY)
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
Methods inherited from class javax.swing.plaf.basic.BasicLabelUI |
---|
getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installKeyboardActions, installListeners, installUI, 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, toString, wait, wait, wait |
Field Detail |
---|
protected static QuaquaLabelUI labelUI
Constructor Detail |
---|
public QuaquaLabelUI()
Method Detail |
---|
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected void installDefaults(javax.swing.JLabel b)
installDefaults
in class javax.swing.plaf.basic.BasicLabelUI
public void paint(java.awt.Graphics gr, javax.swing.JComponent c)
paint
in class javax.swing.plaf.basic.BasicLabelUI
protected void paintDisabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
paintDisabledText
in class javax.swing.plaf.basic.BasicLabelUI
paint(java.awt.Graphics, javax.swing.JComponent)
,
paintEnabledText(javax.swing.JLabel, java.awt.Graphics, java.lang.String, int, int)
protected void paintEnabledText(javax.swing.JLabel l, java.awt.Graphics g, java.lang.String s, int textX, int textY)
paintEnabledText
in class javax.swing.plaf.basic.BasicLabelUI
protected java.lang.String layoutCL(javax.swing.JLabel label, java.awt.FontMetrics fontMetrics, java.lang.String text, javax.swing.Icon icon, java.awt.Rectangle viewR, java.awt.Rectangle iconR, java.awt.Rectangle textR)
layoutCL
in class javax.swing.plaf.basic.BasicLabelUI
SwingUtilities.layoutCompoundLabel(javax.swing.JComponent, java.awt.FontMetrics, java.lang.String, javax.swing.Icon, int, int, int, int, java.awt.Rectangle, java.awt.Rectangle, java.awt.Rectangle, int)
public int getBaseline(javax.swing.JComponent c, int width, int height)
VisuallyLayoutable
getBaseline
in interface VisuallyLayoutable
c
- JComponent to calculate baseline forwidth
- Width of the component to determine baseline for.height
- Height of the component to determine baseline for.
public java.awt.Rectangle getVisualBounds(javax.swing.JComponent c, int type, int width, int height)
VisuallyLayoutable
getVisualBounds
in interface VisuallyLayoutable
c
- JComponent to calculate visual margin fortype
- The type of the visual margin.width
- Width of the componentheight
- Height of the component
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class javax.swing.plaf.basic.BasicLabelUI
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |