public class QuaquaLabelUI extends javax.swing.plaf.basic.BasicLabelUI implements VisuallyLayoutable
| Modifier and Type | Field and Description |
|---|---|
protected static QuaquaLabelUI |
labelUI |
CLIP_BOUNDS, COMPONENT_BOUNDS, TEXT_BOUNDS| Constructor and Description |
|---|
QuaquaLabelUI() |
| Modifier and Type | Method and Description |
|---|---|
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) |
getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installKeyboardActions, installListeners, installUI, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUIprotected static final QuaquaLabelUI labelUI
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.BasicLabelUIpublic void paint(java.awt.Graphics gr,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicLabelUIprotected 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.BasicLabelUIpaint(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.BasicLabelUIprotected 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.BasicLabelUISwingUtilities.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)
VisuallyLayoutablegetBaseline in interface VisuallyLayoutablegetBaseline in class javax.swing.plaf.basic.BasicLabelUIc - 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)
VisuallyLayoutablegetVisualBounds in interface VisuallyLayoutablec - JComponent to calculate visual margin fortype - The type of the visual margin.width - Width of the componentheight - Height of the componentpublic void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class javax.swing.plaf.basic.BasicLabelUI