| javax.swing.plaf.metal.MetalToggleButtonUI com.jgoodies.looks.plastic.PlasticToggleButtonUI
PlasticToggleButtonUI | public class PlasticToggleButtonUI extends MetalToggleButtonUI (Code) | | The JGoodies Plastic L&F implementation of ToggleButtonUI .
It differs from its superclass in that it can add a pseudo 3D effect,
and that the border can paint the focus.
author: Karsten Lentzsch version: $Revision: 1.4 $ |
installDefaults | public void installDefaults(AbstractButton b)(Code) | | In addition to the superclass we check if the border paints the focus.
|
is3D | protected boolean is3D(AbstractButton b)(Code) | | Checks and answers if this button shall use a pseudo 3D effect.
Parameters: b - the button to check true indicates a 3D effect, false flat |
isToolBarButton | protected boolean isToolBarButton(AbstractButton b)(Code) | | Checks and answers if this is button is in a tool bar.
Parameters: b - the button to check true if in tool bar, false otherwise |
paint | public void paint(Graphics g, JComponent c)(Code) | | Unlike the BasicToggleButtonUI.paint, we don't fill the content area;
this has been done by the update method before.
|
Methods inherited from javax.swing.plaf.metal.MetalToggleButtonUI | public static ComponentUI createUI(JComponent b)(Code)(Java Doc) protected Color getDisabledTextColor()(Code)(Java Doc) protected Color getFocusColor()(Code)(Java Doc) protected Color getSelectColor()(Code)(Java Doc) public void installDefaults(AbstractButton b)(Code)(Java Doc) protected void paintButtonPressed(Graphics g, AbstractButton b)(Code)(Java Doc) protected void paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)(Code)(Java Doc) protected void paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)(Code)(Java Doc) protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text)(Code)(Java Doc) protected void uninstallDefaults(AbstractButton b)(Code)(Java Doc) public void update(Graphics g, JComponent c)(Code)(Java Doc)
|
|
|