Swing BorderFactory类 (一)

javax.swing.BorderFactory类是直接继承于java.lang.Object类的, 它定义了34个类方法

 1 public class BorderFactory extends Object
2 {
3 public static Border createBevelBorder(int type);
4 public static Border createBevelBorder(int type, Color highlight, Color shadow);
5 public static Border createBevelBorder(int type, Color highlightOuter,
        Color highlightInner, Color shadowOuter, Color shadowInner);
6
7 public static CompoundBorder createCompoundBorder();
8 public static CompoundBorder createCompoundBorder(Border outsideBorder, Border insideBorder);
9
10 public static Border createDashedBorder(Paint paint);
11 public static Border createDashedBorder(Paint paint, float length, float spacing);
12 public static Border createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded);
13
14 public static Border createEmptyBorder();
15 public static Border createEmptyBorder(int top, int left, int bottom, int right);
16
17 public static Border createEtchedBorder();
18 public static Border createEtchedBorder(Color highlight, Color shadow);
19 public static Border createEtchedBorder(int type);
20 public static Border createEtchedBorder(int type, Color highlight, Color shadow);
21
22 public static Border createLineBorder(Color color);
23 public static Border createLineBorder(Color color, int thickness);
24 public static Border createLineBorder(Color color, int thickness, boolean rounded);
25
26 public static Border createLoweredBevelBorder();
27 public static Border createLoweredSoftBevelBorder();
28 public static Border createRaisedBevelBorder();
29 public static Border createRaisedSoftBevelBorder();
30 public static Border createSoftBevelBorder(int type);
31 public static Border createSoftBevelBorder(int type, Color highlight, Color shadow);
32 public static Border createSoftBevelBorder(int type, Color highlightOuter, Color highlightInner,
        Color shadowOuter, Color shadowInner);
33
34 public static MatteBorder createMatteBorder(int top, int left, int bottom, int right, Color color);
35 public static MatteBorder createMatteBorder(int top, int left, int bottom, int right, Icon tileIcon);
36
37 public static Border createStrokeBorder(BasicStroke stroke);
38 public static Border createStrokeBorder(BasicStroke stroke, Paint paint);
39
40 public static TitleBorder createTitleBorder(Border border);
41 public static TitleBorder createTitleBorder(Border border, String title);
42 public static TitleBorder createTitleBorder(Border border, String title, int titleJustification, int titlePosition);
43 public static TitleBorder createTitleBorder(Border border, String title, int titleJustification, int titlePosition,
        Font titleFont);
44 public static TitleBorder createTitleBorder(Border border, String title, int titleJustification, int titlePosition,
        Font titleFont, Color titleColor);
45 public static TitleBorder createTitleBorder(String title);
46 }



posted on 2011-12-25 21:50  cssin  阅读(1544)  评论(0)    收藏  举报

导航