com.metamatrix.toolbox.ui.widget
Class TitledBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.TitledBorder
          extended by com.metamatrix.toolbox.ui.widget.TitledBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class TitledBorder
extends javax.swing.border.TitledBorder

TitledBorder overrides the JDK class by the same name merely to provide space between the title and the border.

Since:
2.1
Version:
2.1
Author:
John P. A. Verhaeg
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.TitledBorder
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, border, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, EDGE_SPACING, LEADING, LEFT, RIGHT, TEXT_INSET_H, TEXT_SPACING, title, titleColor, titleFont, titleJustification, titlePosition, TOP, TRAILING
 
Constructor Summary
TitledBorder(java.lang.String text)
           
 
Method Summary
protected static boolean computeIntersection(java.awt.Rectangle dest, int rx, int ry, int rw, int rh)
          Copied directly from JDK's TitledBorder class.
 void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
          Copied directly from JDK's TitledBorder class.
 
Methods inherited from class javax.swing.border.TitledBorder
getBaseline, getBaselineResizeBehavior, getBorder, getBorderInsets, getBorderInsets, getFont, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, setBorder, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition
 
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

TitledBorder

public TitledBorder(java.lang.String text)
Since:
2.1
Method Detail

computeIntersection

protected static boolean computeIntersection(java.awt.Rectangle dest,
                                             int rx,
                                             int ry,
                                             int rw,
                                             int rh)
Copied directly from JDK's TitledBorder class.

Since:
2.1

paintBorder

public void paintBorder(java.awt.Component c,
                        java.awt.Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Copied directly from JDK's TitledBorder class.

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.TitledBorder
Since:
2.1


Copyright © 2009. All Rights Reserved.