KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > border > BevelBorder


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9
10    $Log: BevelBorder.java,v $
11    Revision 1.3 2003/12/14 09:13:38 bobintetley
12    Added CVS log to source headers
13
14 */

15
16 package swingwtx.swing.border;
17
18 import swingwt.awt.*;
19
20 public class BevelBorder extends AbstractBorder implements Border {
21     
22     public static final int RAISED = 0;
23     public static final int LOWERED = 1;
24     protected int bevelType = RAISED;
25     
26     protected BevelBorder() {}
27     public BevelBorder(int bevelType) { this.bevelType = bevelType; }
28     public BevelBorder(int bevelType, Color highlight, Color shadow) { this(bevelType); }
29     public BevelBorder(int bevelType, Color highlightOuterColor,
30                        Color highlightInnerColor, Color shadowOuterColor,
31                        Color shadowInnerColor) { this(bevelType); }
32 }
33
Popular Tags