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

Quick Search    Search Deep

javax.swing.plaf
Class BorderUIResource.EtchedBorderUIResource  view BorderUIResource.EtchedBorderUIResource download BorderUIResource.EtchedBorderUIResource.java

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byjavax.swing.border.EtchedBorder
          extended byjavax.swing.plaf.BorderUIResource.EtchedBorderUIResource
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable, UIResource
Enclosing class:
BorderUIResource

public static class BorderUIResource.EtchedBorderUIResource
extends javax.swing.border.EtchedBorder
implements UIResource, java.io.Serializable

An javax.swing.border.EtchedBorder 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.

[An illustration of the two EtchedBorder
 variants]


Field Summary
private static long serialVersionUID
           
 
Fields inherited from class javax.swing.border.EtchedBorder
etchType, highlight, LOWERED, RAISED, shadow
 
Constructor Summary
BorderUIResource.EtchedBorderUIResource()
          Constructs an EtchedBorderUIResource that appears lowered into the surface.
BorderUIResource.EtchedBorderUIResource(java.awt.Color highlight, java.awt.Color shadow)
          Constructs a lowered EtchedBorderUIResource, explicitly selecting the colors that will be used for highlight and shadow.
BorderUIResource.EtchedBorderUIResource(int etchType)
          Constructs an EtchedBorderUIResource with the specified appearance.
BorderUIResource.EtchedBorderUIResource(int etchType, java.awt.Color highlight, java.awt.Color shadow)
          Constructs an EtchedBorderUIResource with the specified appearance, explicitly selecting the colors that will be used for highlight and shadow.
 
Methods inherited from class javax.swing.border.EtchedBorder
getBorderInsets, getBorderInsets, getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, 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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

BorderUIResource.EtchedBorderUIResource

public BorderUIResource.EtchedBorderUIResource()
Constructs an EtchedBorderUIResource that appears lowered into the surface. The colors will be derived from the background color of the enclosed Component when the border gets painted.


BorderUIResource.EtchedBorderUIResource

public BorderUIResource.EtchedBorderUIResource(int etchType)
Constructs an EtchedBorderUIResource with the specified appearance. The colors will be derived from the background color of the enclosed Component when the border gets painted.

[An illustration of the two
 EtchedBorder variants]


BorderUIResource.EtchedBorderUIResource

public BorderUIResource.EtchedBorderUIResource(java.awt.Color highlight,
                                               java.awt.Color shadow)
Constructs a lowered EtchedBorderUIResource, explicitly selecting the colors that will be used for highlight and shadow.


BorderUIResource.EtchedBorderUIResource

public BorderUIResource.EtchedBorderUIResource(int etchType,
                                               java.awt.Color highlight,
                                               java.awt.Color shadow)
Constructs an EtchedBorderUIResource with the specified appearance, explicitly selecting the colors that will be used for highlight and shadow.

[An illustration that shows which pixels get
 painted in what color]