javax.swing.plaf.basic
Class BasicBorders.RolloverMarginBorder

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byjavax.swing.border.EmptyBorder
          extended byjavax.swing.plaf.basic.BasicBorders.RolloverMarginBorder
All Implemented Interfaces:
Border, Serializable
Enclosing class:
BasicBorders

static class BasicBorders.RolloverMarginBorder
extends EmptyBorder

A border which is like a Margin border but it will only honor the margin if the margin has been explicitly set by the developer. Note: This is identical to the package private class MetalBorders.RolloverMarginBorder and should probably be consolidated.


Field Summary
 
Fields inherited from class javax.swing.border.EmptyBorder
bottom, left, right, top
 
Constructor Summary
BasicBorders.RolloverMarginBorder()
           
 
Method Summary
 Insets getBorderInsets(Component c)
          Returns the insets of the border.
 Insets getBorderInsets(Component c, Insets insets)
          Reinitialize the insets parameter with this Border's current Insets.
 
Methods inherited from class javax.swing.border.EmptyBorder
getBorderInsets, isBorderOpaque, paintBorder
 
Methods inherited from class javax.swing.border.AbstractBorder
getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicBorders.RolloverMarginBorder

public BasicBorders.RolloverMarginBorder()
Method Detail

getBorderInsets

public Insets getBorderInsets(Component c)
Description copied from class: EmptyBorder
Returns the insets of the border.

Specified by:
getBorderInsets in interface Border
Overrides:
getBorderInsets in class EmptyBorder
Parameters:
c - the component for which this border insets value applies

getBorderInsets

public Insets getBorderInsets(Component c,
                              Insets insets)
Description copied from class: EmptyBorder
Reinitialize the insets parameter with this Border's current Insets.

Overrides:
getBorderInsets in class EmptyBorder
Parameters:
c - the component for which this border insets value applies
insets - the object to be reinitialized