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

Quick Search    Search Deep

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

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

public static class BorderUIResource.LineBorderUIResource
extends javax.swing.border.LineBorder
implements UIResource, java.io.Serializable

A javax.swing.border.LineBorder 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 two LineBorders]


Field Summary
private static long serialVersionUID
           
 
Fields inherited from class javax.swing.border.LineBorder
lineColor, roundedCorners, thickness
 
Constructor Summary
BorderUIResource.LineBorderUIResource(java.awt.Color color)
          Constructs a LineBorderUIResource given its color.
BorderUIResource.LineBorderUIResource(java.awt.Color color, int thickness)
          Constructs a LineBorder given its color and thickness.
 
Methods inherited from class javax.swing.border.LineBorder
createBlackLineBorder, createGrayLineBorder, getBorderInsets, getBorderInsets, getLineColor, getRoundedCorners, getThickness, 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.LineBorderUIResource

public BorderUIResource.LineBorderUIResource(java.awt.Color color)
Constructs a LineBorderUIResource given its color. The border will be one pixel thick and have plain corners.


BorderUIResource.LineBorderUIResource

public BorderUIResource.LineBorderUIResource(java.awt.Color color,
                                             int thickness)
Constructs a LineBorder given its color and thickness. The border will have plain corners.