org.tbee.swing
Class DashedBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.EmptyBorder
org.tbee.swing.DashedBorder
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.border.Border
public class DashedBorder
- extends javax.swing.border.EmptyBorder
Draw a dashed border
- Author:
- Tom Eugelink
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.border.EmptyBorder |
bottom, left, right, top |
|
Constructor Summary |
DashedBorder(int size,
java.awt.Color color)
|
DashedBorder(int top,
int left,
int bottom,
int right,
java.awt.Color color,
float dashsize)
|
|
Method Summary |
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
|
| Methods inherited from class javax.swing.border.EmptyBorder |
getBorderInsets, getBorderInsets, getBorderInsets, 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 |
DashedBorder
public DashedBorder(int size,
java.awt.Color color)
- Parameters:
size - color -
DashedBorder
public DashedBorder(int top,
int left,
int bottom,
int right,
java.awt.Color color,
float dashsize)
- Parameters:
top - left - bottom - right - color - dashsize -
paintBorder
public void paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int w,
int h)
- Specified by:
paintBorder in interface javax.swing.border.Border- Overrides:
paintBorder in class javax.swing.border.EmptyBorder
Copyright © 2010. All Rights Reserved.