javax.swing.plaf.metal
Class MetalBorders.RolloverMarginBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
javax.swing.plaf.metal.MetalBorders.RolloverMarginBorder
- All Implemented Interfaces:
- Border, Serializable
- Enclosing class:
- MetalBorders
- static class MetalBorders.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
BasicBorders.RolloverMarginBorder and should probably be consolidated.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetalBorders.RolloverMarginBorder
public MetalBorders.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