public class PaletteLabelUI
extends javax.swing.plaf.basic.BasicLabelUI
Modifier and Type | Field and Description |
---|---|
protected static PaletteLabelUI |
labelUI |
Constructor and Description |
---|
PaletteLabelUI() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
Preferred spacing between labels and other components.
|
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) |
getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installComponents, installKeyboardActions, installListeners, installUI, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
protected static final PaletteLabelUI 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.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 void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class javax.swing.plaf.basic.BasicLabelUI