ccl.swing
Class CCLBorder

java.lang.Object
  |
  +--javax.swing.border.AbstractBorder
        |
        +--ccl.swing.CCLBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable

public class CCLBorder
extends javax.swing.border.AbstractBorder

A border used in most ccl widgets, which is similar to the border used in MS Windows.

See Also:
Serialized Form

Constructor Summary
CCLBorder()
          Default constructor.
 
Method Summary
 java.awt.Insets getBorderInsets(java.awt.Component c)
          Returns insets used for this border object.
 boolean isBorderOpaque()
          This border is always opaque.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Active painting of the border.
 
Methods inherited from class javax.swing.border.AbstractBorder
getBorderInsets, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CCLBorder

public CCLBorder()
Default constructor. To reduce memory using use factory method in SwingUtil.

See Also:
SwingUtil.createCCLBorder()
Method Detail

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Active painting of the border.

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.AbstractBorder

getBorderInsets

public java.awt.Insets getBorderInsets(java.awt.Component c)
Returns insets used for this border object.

Specified by:
getBorderInsets in interface javax.swing.border.Border
Overrides:
getBorderInsets in class javax.swing.border.AbstractBorder

isBorderOpaque

public boolean isBorderOpaque()
This border is always opaque.

Specified by:
isBorderOpaque in interface javax.swing.border.Border
Overrides:
isBorderOpaque in class javax.swing.border.AbstractBorder