
public class UIRoundedRectangleButton extends MetalButtonUI
| Modifier and Type | Field and Description |
|---|---|
protected Shape |
base |
protected Color |
dark |
protected Color |
light |
protected Shape |
shape |
disabledTextColor, focusColor, selectColordefaultTextIconGap, defaultTextShiftOffset| Constructor and Description |
|---|
UIRoundedRectangleButton(Color dark,
Color light) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(JComponent j,
int x,
int y) |
protected int |
getBorderSize() |
protected Border |
getLoweredBorder() |
protected Border |
getRaisedBorder() |
protected Shape |
getShape(JComponent j) |
protected void |
paintButtonPressed(Graphics g,
AbstractButton b) |
protected void |
paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect) |
static Icon |
resizeIcon(Icon icon,
int width,
int height) |
void |
update(Graphics g,
JComponent c) |
createButtonListener, createUI, getDisabledTextColor, getFocusColor, getSelectColor, installDefaults, paintText, uninstallDefaultsclearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUIgetAccessibleChild, getAccessibleChildrenCountprotected Shape shape
protected Shape base
protected Color dark
protected Color light
protected Shape getShape(JComponent j)
protected Border getRaisedBorder()
protected Border getLoweredBorder()
public void update(Graphics g, JComponent c)
update in class MetalButtonUIprotected int getBorderSize()
public boolean contains(JComponent j, int x, int y)
contains in class ComponentUIprotected void paintButtonPressed(Graphics g, AbstractButton b)
paintButtonPressed in class MetalButtonUIprotected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
paintFocus in class MetalButtonUICopyright © 2018 universAAL Consortium. All rights reserved.