javax.swing.plaf.basic
Class BasicBorders.RolloverMarginBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicBorders.RolloverMarginBorder
public BasicBorders.RolloverMarginBorder()
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 appliesinsets
- the object to be reinitialized