public class ExtendedEtchedBorder
extends javax.swing.border.EtchedBorder
Constructor and Description |
---|
ExtendedEtchedBorder(int etchType,
int top,
int left,
int bottom,
int right)
Creates an etched border with the specified etch-type and specified
thickness of each border: top, left, bottom, right.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getBorderInsets, getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaque
public ExtendedEtchedBorder(int etchType, int top, int left, int bottom, int right)
etchType
- the type of etch to be drawn by the bordertop
- the thickness of the top borderleft
- the thickness of the left borderbottom
- the thickness of the bottom borderright
- the thickness of the right borderpublic void paintBorder(java.awt.Component c, 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.EtchedBorder
c
- 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
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.