Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.swing.plaf.basic
Class BasicBorders.RolloverButtonBorder  view BasicBorders.RolloverButtonBorder download BasicBorders.RolloverButtonBorder.java

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byjavax.swing.plaf.basic.BasicBorders.ButtonBorder
          extended byjavax.swing.plaf.basic.BasicBorders.RolloverButtonBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable, javax.swing.plaf.UIResource
Enclosing class:
BasicBorders

public static class BasicBorders.RolloverButtonBorder
extends BasicBorders.ButtonBorder

A one-pixel thick border for rollover buttons, for example in tool bars.

Since:
1.4

Field Summary
(package private) static long serialVersionUID
          Determined using the serialver tool of Sun JDK 1.4.1_01 on GNU/Linux 2.4.20 for x86.
 
Fields inherited from class javax.swing.plaf.basic.BasicBorders.ButtonBorder
darkShadow, highlight, lightHighlight, shadow
 
Constructor Summary
BasicBorders.RolloverButtonBorder(java.awt.Color shadow, java.awt.Color darkShadow, java.awt.Color highlight, java.awt.Color lightHighlight)
          Constructs a new border for drawing a roll-over button in the Basic look and feel.
 
Method Summary
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Paints the border around a rollover button.
 
Methods inherited from class javax.swing.plaf.basic.BasicBorders.ButtonBorder
getBorderInsets, getBorderInsets
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle, isBorderOpaque
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
Determined using the serialver tool of Sun JDK 1.4.1_01 on GNU/Linux 2.4.20 for x86.

See Also:
Constant Field Values
Constructor Detail

BasicBorders.RolloverButtonBorder

public BasicBorders.RolloverButtonBorder(java.awt.Color shadow,
                                         java.awt.Color darkShadow,
                                         java.awt.Color highlight,
                                         java.awt.Color lightHighlight)
Constructs a new border for drawing a roll-over button in the Basic look and feel.

Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Paints the border around a rollover button. If c is not an javax.swing.AbstractButton whose model returns true for ButtonModel.isRollover()>ButtonModel.isRollover() 55 , nothing gets painted at all.

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class BasicBorders.ButtonBorder