37 |
|
|
38 |
package javax.swing.border; |
package javax.swing.border; |
39 |
|
|
40 |
import java.awt.*; |
import java.awt.Color; |
41 |
|
import java.awt.Component; |
42 |
|
import java.awt.Graphics; |
43 |
|
|
44 |
public class BevelBorder extends EmptyBorder |
public class BevelBorder extends AbstractBorder |
45 |
{ |
{ |
46 |
Color c; |
public static final int LOWERED = 1; |
47 |
|
public static final int RAISED = 0; |
|
public BevelBorder() |
|
|
{ |
|
|
} |
|
|
|
|
48 |
|
|
49 |
public BevelBorder(int top, |
protected int bevelType; |
50 |
int left, |
protected Color highlightOuter; |
51 |
int bottom, |
protected Color highlightInner; |
52 |
int right, |
protected Color shadowOuter; |
53 |
Color color) |
protected Color shadowInner; |
54 |
{ |
|
55 |
super(top, left, bottom, right); |
public BevelBorder (int bevelType) |
56 |
this.c = color; |
{ |
57 |
} |
this (bevelType, null, null, null, null); |
58 |
|
} |
59 |
|
|
60 |
|
public BevelBorder(int bevelType, Color highlight, Color shadow) |
61 |
|
{ |
62 |
|
this (bevelType, highlight, highlight, shadow, shadow); |
63 |
|
} |
64 |
|
|
65 |
|
public BevelBorder (int bevelType, Color highlightOuter, |
66 |
|
Color highlightInner, Color shadowOuter, |
67 |
|
Color shadowInner) |
68 |
|
{ |
69 |
|
this.bevelType = bevelType; |
70 |
|
this.highlightOuter = highlightOuter; |
71 |
|
this.highlightInner = highlightInner; |
72 |
|
this.shadowOuter = shadowOuter; |
73 |
|
this.shadowInner = shadowInner; |
74 |
|
} |
75 |
|
|
76 |
public boolean isBorderOpaque() |
public boolean isBorderOpaque() |
77 |
{ |
{ |