| 1 |
/* |
| 2 |
* @(#)HeaderCellBorder.java 8/3/2006 |
| 3 |
* |
| 4 |
* Copyright 2002 - 2006 JIDE Software Inc. All rights reserved. |
| 5 |
*/ |
| 6 |
|
| 7 |
package com.jidesoft.plaf.vsnet; |
| 8 |
|
| 9 |
import com.jidesoft.utils.ColorUtils; |
| 10 |
|
| 11 |
import javax.swing.border.Border; |
| 12 |
import javax.swing.plaf.UIResource; |
| 13 |
import java.awt.*; |
| 14 |
|
| 15 |
public class HeaderCellBorder implements Border, UIResource { |
| 16 |
public HeaderCellBorder() { |
| 17 |
} |
| 18 |
|
| 19 |
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { |
| 20 |
g.setColor(new Color(0, 0, 0, 27)); |
| 21 |
g.drawLine(0, height - 3, width, height - 3); |
| 22 |
|
| 23 |
g.setColor(new Color(0, 0, 0, 37)); |
| 24 |
g.drawLine(0, height - 2, width, height - 2); |
| 25 |
|
| 26 |
g.setColor(new Color(0, 0, 0, 52)); |
| 27 |
g.drawLine(0, height - 1, width, height - 1); |
| 28 |
g.drawLine(width - 1, 0, width - 1, height - 1); |
| 29 |
} |
| 30 |
|
| 31 |
public Insets getBorderInsets(Component c) { |
| 32 |
return new Insets(0, 0, 3, 1); |
| 33 |
} |
| 34 |
|
| 35 |
public boolean isBorderOpaque() { |
| 36 |
return false; |
| 37 |
} |
| 38 |
} |