91 |
|
|
92 |
|
|
93 |
/** |
/** |
94 |
* Determines the insets of this border. The implementation provided |
* Measures the width of this border. |
|
* by AbstractButton returns Insets for a zero-width border, whose |
|
|
* <code>left</code>, <code>right</code>, <code>top</code> and |
|
|
* <code>bottom</code> fields are all zero. |
|
95 |
* |
* |
96 |
* @param c the component whose border is to be measured. |
* @param c the component whose border is to be measured. |
97 |
* |
* |
98 |
* @return a newly created Insets object, indicating a zero-width |
* @return an Insets object whose <code>left</code>, <code>right</code>, |
99 |
* border. |
* <code>top</code> and <code>bottom</code> fields indicate the |
100 |
|
* width of the border at the respective edge, which is zero |
101 |
|
* for the default implementation provided by AbstractButton. |
102 |
|
* |
103 |
|
* @see #getBorderInsets(java.awt.Component, java.awt.Insets) |
104 |
*/ |
*/ |
105 |
public Insets getBorderInsets (Component c) |
public Insets getBorderInsets (Component c) |
106 |
{ |
{ |
114 |
* <code>top</code> and <code>bottom</code> fields of the passed |
* <code>top</code> and <code>bottom</code> fields of the passed |
115 |
* <code>insets</code> parameter to zero. |
* <code>insets</code> parameter to zero. |
116 |
* |
* |
117 |
* @param c the component in the center of this border. |
* @param c the component whose border is to be measured. |
118 |
* |
* |
119 |
* @param insets an Insets object for holding the insets of this |
* @return the same object that was passed for <code>insets</code>. |
|
* border. |
|
120 |
* |
* |
121 |
* @return the <code>insets</code> object. |
* @see #getBorderInsets() |
122 |
*/ |
*/ |
123 |
public Insets getBorderInsets (Component c, Insets insets) |
public Insets getBorderInsets (Component c, Insets insets) |
124 |
{ |
{ |