javax.swing.plaf
Class BorderUIResource.CompoundBorderUIResource

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.CompoundBorder
          extended by javax.swing.plaf.BorderUIResource.CompoundBorderUIResource
All Implemented Interfaces:
Serializable, Border, UIResource
Enclosing class:
BorderUIResource

public static class BorderUIResource.CompoundBorderUIResource
extends CompoundBorder
implements UIResource, Serializable

A CompoundBorder that also implements the UIResource marker interface. This is useful for implementing pluggable look-and-feels: When switching the current LookAndFeel, only those borders are replaced that are marked as UIResource. For this reason, a look-and-feel should always install borders that implement UIResource, such as the borders provided by this class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.CompoundBorder
insideBorder, outsideBorder
 
Constructor Summary
BorderUIResource.CompoundBorderUIResource(Border outsideBorder, Border insideBorder)
          Constructs a CompoundBorderUIResource with the specified inside and outside borders.
 
Method Summary
 
Methods inherited from class javax.swing.border.CompoundBorder
getBorderInsets, getBorderInsets, getInsideBorder, getOutsideBorder, 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

BorderUIResource.CompoundBorderUIResource

public BorderUIResource.CompoundBorderUIResource(Border outsideBorder,
                                                 Border insideBorder)
Constructs a CompoundBorderUIResource with the specified inside and outside borders.

Parameters:
outsideBorder - the outside border, which is painted to the outside of both insideBorder and the enclosed component. It is acceptable to pass null, in which case no outside border is painted.
insideBorder - the inside border, which is painted to between outsideBorder and the enclosed component. It is acceptable to pass null, in which case no inside border is painted.