public class FadeBorder
extends javax.swing.border.EmptyBorder
Constructor and Description |
---|
FadeBorder(java.awt.Insets borderInsets)
Creates a fading border with the specified insets, using the default
colors of the UI.
|
FadeBorder(java.awt.Insets borderInsets,
java.awt.Color color)
Creates a fading border with the specified insets and color.
|
FadeBorder(int top,
int left,
int bottom,
int right)
Creates a fading border with the specified insets, using the default
colors of the UI.
|
FadeBorder(int top,
int left,
int bottom,
int right,
java.awt.Color color)
Creates a fading border with the specified insets and color.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isBorderOpaque()
Returns whether or not the border is opaque.
|
void |
paintBorder(java.awt.Component comp,
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 FadeBorder(java.awt.Insets borderInsets)
borderInsets
- the insets of the borderpublic FadeBorder(java.awt.Insets borderInsets, java.awt.Color color)
borderInsets
- the insets of the bordercolor
- the color to fade to in the borderpublic FadeBorder(int top, int left, int bottom, int right)
top
- the top inset of the borderleft
- the left inset of the borderbottom
- the bottom inset of the borderright
- the right inset of the borderpublic FadeBorder(int top, int left, int bottom, int right, java.awt.Color color)
top
- the top inset of the borderleft
- the left inset of the borderbottom
- the bottom inset of the borderright
- the right inset of the bordercolor
- the color to fade to in the borderpublic boolean isBorderOpaque()
isBorderOpaque
in interface javax.swing.border.Border
isBorderOpaque
in class javax.swing.border.EmptyBorder
public void paintBorder(java.awt.Component comp, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
paintBorder
in class javax.swing.border.EmptyBorder
comp
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted border