org.itr_rescue.dataGuard.localFileSystem.view.detail
Class CellBorder
java.lang.Object
javax.swing.border.AbstractBorder
javax.swing.border.LineBorder
org.itr_rescue.dataGuard.localFileSystem.view.detail.CellBorder
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.border.Border
public class CellBorder
- extends javax.swing.border.LineBorder
This class creates a nice dotted border
- Author:
- sergiu
- See Also:
- Serialized Form
Fields inherited from class javax.swing.border.LineBorder |
lineColor, roundedCorners, thickness |
Constructor Summary |
CellBorder(java.awt.Color color)
|
CellBorder(java.awt.Color color,
int thickness)
|
CellBorder(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. |
void |
setLineColor(java.awt.Color c)
|
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 |
CellBorder
public CellBorder(java.awt.Color color)
- Parameters:
color
-
CellBorder
public CellBorder(java.awt.Color color,
int thickness)
- Parameters:
color
- thickness
-
CellBorder
public CellBorder(java.awt.Color color,
int thickness,
boolean roundedCorners)
- Parameters:
color
- thickness
- roundedCorners
-
setLineColor
public void setLineColor(java.awt.Color c)
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 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