com.jgoodies.looks.plastic
Class PlasticButtonUI
MetalButtonUI
com.jgoodies.looks.plastic.PlasticButtonUI
public class PlasticButtonUI
extends MetalButtonUI
The JGoodies Plastic L&F implementation of ButtonUI
.
It differs from the superclass MetalButtonUI
in that
it can add a pseudo 3D effect and that the border can paint the focus.
static ComponentUI | createUI(JComponent b)
|
void | installDefaults(AbstractButton b) - Installs defaults.
|
protected boolean | is3D(AbstractButton b) - Checks and answers if this button shall use a pseudo 3D effect.
|
protected boolean | isToolBarButton(AbstractButton b) - Checks and answers if this is button is in a tool bar.
|
protected void | paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) - Paints the focus with close to the button's border.
|
void | update(Graphics g, JComponent c)
|
createUI
public static ComponentUI createUI(JComponent b)
installDefaults
public void installDefaults(AbstractButton b)
Installs defaults.
is3D
protected boolean is3D(AbstractButton b)
Checks and answers if this button shall use a pseudo 3D effect.
- true indicates a 3D effect, false flat
isToolBarButton
protected boolean isToolBarButton(AbstractButton b)
Checks and answers if this is button is in a tool bar.
- true if in tool bar, false otherwise
paintFocus
protected void paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
Paints the focus with close to the button's border.
update
public void update(Graphics g,
JComponent c)
Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.