edu.princeton.swing
public static class PHyperlink.UnderlineBorder extends javax.swing.border.AbstractBorder
| Constructor and Description | 
|---|
| PHyperlink.UnderlineBorder(java.awt.Color color,
                          int pad,
                          int thickness)Creates a new UnderlineBorder. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.awt.Insets | getBorderInsets(java.awt.Component c)Returns the insets of the border. | 
| java.awt.Insets | getBorderInsets(java.awt.Component c,
               java.awt.Insets insets)Reinitialize the insets parameter with this Border's current Insets. | 
| java.awt.Color | getColor()Returns the color of the border. | 
| int | getPad()Returns the number of pixels of transparent space before the underline. | 
| int | getThickness()Returns the thickness of the underline. | 
| boolean | isBorderOpaque()Returns whether or not the border is opaque. | 
| void | paintBorder(java.awt.Component c,
           java.awt.Graphics g,
           int x,
           int y,
           int width,
           int height)Paints the border for the specified component with the specified position and size. | 
public PHyperlink.UnderlineBorder(java.awt.Color color,
                          int pad,
                          int thickness)
color - The color of the border.  If null is passed, the underline will be drawn
 with the Component's foreground color.pad - The number of pixels of transparent space before the underline.  Negative
 values will result in an IllegalArgumentException.thickness - The thickness of the underline.  Negative values will result in an
 IllegalArgumentException.public java.awt.Color getColor()
public int getPad()
public int getThickness()
public void paintBorder(java.awt.Component c,
               java.awt.Graphics g,
               int x,
               int y,
               int width,
               int height)
paintBorder in interface javax.swing.border.BorderpaintBorder in class javax.swing.border.AbstractBorderpublic java.awt.Insets getBorderInsets(java.awt.Component c)
getBorderInsets in interface javax.swing.border.BordergetBorderInsets in class javax.swing.border.AbstractBorderpublic java.awt.Insets getBorderInsets(java.awt.Component c,
                              java.awt.Insets insets)
getBorderInsets in class javax.swing.border.AbstractBorderpublic boolean isBorderOpaque()
isBorderOpaque in interface javax.swing.border.BorderisBorderOpaque in class javax.swing.border.AbstractBorder