de.uni_paderborn.fujaba.fsa.swing.border
Class DashedBorder

java.lang.Object
  extended byjavax.swing.border.AbstractBorder
      extended byjavax.swing.border.LineBorder
          extended byde.uni_paderborn.fujaba.fsa.swing.border.DashedBorder
All Implemented Interfaces:
javax.swing.border.Border, java.io.Serializable

public class DashedBorder
extends javax.swing.border.LineBorder

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.6 $
Author:
$Author: lowende $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.border.LineBorder
lineColor, roundedCorners, thickness
 
Constructor Summary
DashedBorder(java.awt.Color color)
          Creates a dashed border with the specified color and a thickness = 1.
DashedBorder(java.awt.Color color, int thickness)
          Creates a dashed border with the specified color and thickness.
DashedBorder(java.awt.Color color, int thickness, boolean roundedCorners)
          Creates a dashed border with the specified color, thickness, and corner shape.
 
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
getInteriorRectangle, getInteriorRectangle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DashedBorder

public DashedBorder(java.awt.Color color)
Creates a dashed border with the specified color and a thickness = 1.

Parameters:
color - the color for the border

DashedBorder

public DashedBorder(java.awt.Color color,
                    int thickness)
Creates a dashed border with the specified color and thickness.

Parameters:
color - the color of the border
thickness - the thickness of the border

DashedBorder

public DashedBorder(java.awt.Color color,
                    int thickness,
                    boolean roundedCorners)
Creates a dashed border with the specified color, thickness, and corner shape.

Parameters:
color - the color of the border
thickness - the thickness of the border
roundedCorners - whether or not border corners should be round
Since:
1.3
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.

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