org.xulux.guilayer.swing.extensions
Class NyxLineBorder

java.lang.Object
  extended by javax.swing.border.AbstractBorder
      extended by javax.swing.border.LineBorder
          extended by org.xulux.guilayer.swing.extensions.NyxLineBorder
All Implemented Interfaces:
java.io.Serializable, javax.swing.border.Border

public class NyxLineBorder
extends javax.swing.border.LineBorder

Version:
$Id: NyxLineBorder.java,v 1.1 2005/12/18 12:58:18 mvdb Exp $
Author:
Martin van den Bemt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.LineBorder
lineColor, roundedCorners, thickness
 
Constructor Summary
NyxLineBorder(java.awt.Color color)
           
NyxLineBorder(java.awt.Color color, int thickness)
           
NyxLineBorder(java.awt.Color color, int thickness, boolean roundedCorners)
           
 
Method Summary
 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.
 
Methods inherited from class javax.swing.border.LineBorder
createBlackLineBorder, createGrayLineBorder, getBorderInsets, getBorderInsets, getLineColor, getRoundedCorners, getThickness, 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

NyxLineBorder

public NyxLineBorder(java.awt.Color color)
Parameters:
color -

NyxLineBorder

public NyxLineBorder(java.awt.Color color,
                     int thickness)
Parameters:
color -
thickness -

NyxLineBorder

public NyxLineBorder(java.awt.Color color,
                     int thickness,
                     boolean roundedCorners)
Parameters:
color -
thickness -
roundedCorners -
Method Detail

paintBorder

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

Specified by:
paintBorder in interface javax.swing.border.Border
Overrides:
paintBorder in class javax.swing.border.LineBorder
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


Copyright © 2002-2007 Martin van den Bemt. All Rights Reserved.