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, selectColor
defaultTextIconGap, 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, uninstallDefaults
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
getAccessibleChild, getAccessibleChildrenCount
protected 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 MetalButtonUI
protected int getBorderSize()
public boolean contains(JComponent j, int x, int y)
contains
in class ComponentUI
protected void paintButtonPressed(Graphics g, AbstractButton b)
paintButtonPressed
in class MetalButtonUI
protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
paintFocus
in class MetalButtonUI
Copyright © 2018 universAAL Consortium. All rights reserved.