equal
deleted
inserted
replaced
64 public interface Border |
64 public interface Border |
65 { |
65 { |
66 /** |
66 /** |
67 * Paints the border for the specified component with the specified |
67 * Paints the border for the specified component with the specified |
68 * position and size. |
68 * position and size. |
|
69 * |
69 * @param c the component for which this border is being painted |
70 * @param c the component for which this border is being painted |
70 * @param g the paint graphics |
71 * @param g the paint graphics |
71 * @param x the x position of the painted border |
72 * @param x the x position of the painted border |
72 * @param y the y position of the painted border |
73 * @param y the y position of the painted border |
73 * @param width the width of the painted border |
74 * @param width the width of the painted border |
75 */ |
76 */ |
76 void paintBorder(Component c, Graphics g, int x, int y, int width, int height); |
77 void paintBorder(Component c, Graphics g, int x, int y, int width, int height); |
77 |
78 |
78 /** |
79 /** |
79 * Returns the insets of the border. |
80 * Returns the insets of the border. |
|
81 * |
80 * @param c the component for which this border insets value applies |
82 * @param c the component for which this border insets value applies |
|
83 * @return an {@code Insets} object containing the insets from top, left, |
|
84 * bottom and right of this {@code Border} |
81 */ |
85 */ |
82 Insets getBorderInsets(Component c); |
86 Insets getBorderInsets(Component c); |
83 |
87 |
84 /** |
88 /** |
85 * Returns whether or not the border is opaque. If the border |
89 * Returns whether or not the border is opaque. If the border |
86 * is opaque, it is responsible for filling in it's own |
90 * is opaque, it is responsible for filling in it's own |
87 * background when painting. |
91 * background when painting. |
|
92 * |
|
93 * @return true if this {@code Border} is opaque |
88 */ |
94 */ |
89 boolean isBorderOpaque(); |
95 boolean isBorderOpaque(); |
90 } |
96 } |