Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.util.swing.border
Class ExtendedEtchedBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.EtchedBorder
          extended by net.java.sip.communicator.util.swing.border.ExtendedEtchedBorder
All Implemented Interfaces:
Serializable, Border

public class ExtendedEtchedBorder
extends EtchedBorder

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.EtchedBorder
etchType, highlight, LOWERED, RAISED, shadow
 
Constructor Summary
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.
 
Method Summary
 void paintBorder(Component c, Graphics g, int x, int y, int width, int height)
          Paints the border for the specified component with the specified position and size.
 
Methods inherited from class javax.swing.border.EtchedBorder
getBorderInsets, getBorderInsets, getEtchType, getHighlightColor, getHighlightColor, getShadowColor, getShadowColor, isBorderOpaque
 
Methods inherited from class javax.swing.border.AbstractBorder
getBaseline, getBaselineResizeBehavior, getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedEtchedBorder

public 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.

Parameters:
etchType - the type of etch to be drawn by the border
top - the thickness of the top border
left - the thickness of the left border
bottom - the thickness of the bottom border
right - the thickness of the right border
Method Detail

paintBorder

public void paintBorder(Component c,
                        Graphics g,
                        int x,
                        int y,
                        int width,
                        int height)
Paints the border for the specified component with the specified position and size.

Specified by:
paintBorder in interface Border
Overrides:
paintBorder in class EtchedBorder
Parameters:
c - the component for which this border is being painted
g - the paint graphics
x - the x position of the painted border
y - the y position of the painted border
width - the width of the painted border
height - the height of the painted border

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.