01: /*
02: * @(#)HeaderCellBorder.java 8/3/2006
03: *
04: * Copyright 2002 - 2006 JIDE Software Inc. All rights reserved.
05: */
06:
07: package com.jidesoft.plaf.vsnet;
08:
09: import javax.swing.border.Border;
10: import javax.swing.plaf.UIResource;
11: import java.awt.*;
12:
13: public class HeaderCellBorder implements Border, UIResource {
14: public HeaderCellBorder() {
15: }
16:
17: public void paintBorder(Component c, Graphics g, int x, int y,
18: int width, int height) {
19: g.setColor(new Color(226, 222, 205));
20: g.drawLine(0, height - 3, width, height - 3);
21:
22: g.setColor(new Color(214, 210, 194));
23: g.drawLine(0, height - 2, width, height - 2);
24:
25: g.setColor(new Color(203, 199, 184));
26: g.drawLine(0, height - 1, width, height - 1);
27: g.drawLine(width - 1, 0, width - 1, height - 1);
28: }
29:
30: public Insets getBorderInsets(Component c) {
31: return new Insets(0, 0, 3, 1);
32: }
33:
34: public boolean isBorderOpaque() {
35: return false;
36: }
37: }
|