de.uni_paderborn.fujaba.fsa.swing.border
Class DashedBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.LineBorder
de.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
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 |
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 borderthickness
- 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 borderthickness
- the thickness of the borderroundedCorners
- whether or not border corners should be round- Since:
- 1.3
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 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