public class QuaquaRadioButtonUI extends javax.swing.plaf.basic.BasicRadioButtonUI implements VisuallyLayoutable
| Modifier and Type | Class and Description |
|---|---|
static class |
QuaquaRadioButtonUI.PropertyChangeHandler
This inner class is marked "public" due to a compiler bug.
|
defaultTextIconGap, defaultTextShiftOffsetCLIP_BOUNDS, COMPONENT_BOUNDS, TEXT_BOUNDS| Constructor and Description |
|---|
QuaquaRadioButtonUI() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.plaf.basic.BasicButtonListener |
createButtonListener(javax.swing.AbstractButton b) |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent b) |
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.
|
javax.swing.Icon |
getDefaultIcon(javax.swing.JComponent c) |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
The preferred size of the radio button
|
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.AbstractButton b) |
protected void |
installListeners(javax.swing.AbstractButton b) |
protected java.lang.String |
layoutCL(javax.swing.AbstractButton c,
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 g,
javax.swing.JComponent c) |
protected void |
paintFocus(java.awt.Graphics g,
java.awt.Rectangle textR,
java.awt.Dimension size) |
protected void |
paintText(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle textR,
java.lang.String text)
Method which renders the text of the current button.
|
protected void |
uninstallDefaults(javax.swing.AbstractButton b) |
protected void |
uninstallListeners(javax.swing.AbstractButton b) |
static void |
updateFocusableState(javax.swing.AbstractButton button) |
getDefaultIcon, getPropertyPrefixgetTextShiftOffset, paintIconclearTextShiftOffset, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, installUI, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallUIpublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent b)
protected void installDefaults(javax.swing.AbstractButton b)
installDefaults in class javax.swing.plaf.basic.BasicRadioButtonUIprotected void uninstallDefaults(javax.swing.AbstractButton b)
uninstallDefaults in class javax.swing.plaf.basic.BasicRadioButtonUIprotected void installListeners(javax.swing.AbstractButton b)
installListeners in class javax.swing.plaf.basic.BasicButtonUIprotected void uninstallListeners(javax.swing.AbstractButton b)
uninstallListeners in class javax.swing.plaf.basic.BasicButtonUIpublic javax.swing.Icon getDefaultIcon(javax.swing.JComponent c)
protected javax.swing.plaf.basic.BasicButtonListener createButtonListener(javax.swing.AbstractButton b)
createButtonListener in class javax.swing.plaf.basic.BasicButtonUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicRadioButtonUIprotected void paintFocus(java.awt.Graphics g,
java.awt.Rectangle textR,
java.awt.Dimension size)
paintFocus in class javax.swing.plaf.basic.BasicRadioButtonUIpublic java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
getPreferredSize in class javax.swing.plaf.basic.BasicRadioButtonUIprotected void paintText(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle textR,
java.lang.String text)
paintText in class javax.swing.plaf.basic.BasicButtonUIg - Graphics contextb - Current button to rendertextR - Bounding rectangle to render the text.text - String to renderprotected java.lang.String layoutCL(javax.swing.AbstractButton c,
java.awt.FontMetrics fontMetrics,
java.lang.String text,
javax.swing.Icon icon,
java.awt.Rectangle viewR,
java.awt.Rectangle iconR,
java.awt.Rectangle textR)
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)
VisuallyLayoutablegetBaseline in interface VisuallyLayoutablegetBaseline in class javax.swing.plaf.basic.BasicButtonUIc - 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 static void updateFocusableState(javax.swing.AbstractButton button)