647 |
|
|
648 |
|
|
649 |
/** |
/** |
650 |
* Determines the insets of this border. |
* Measures the width of this border. |
651 |
* |
* |
652 |
* @param c the component whose border is to be measured. |
* @param c the component whose border is to be measured. |
653 |
* @return the insets of this border. |
* |
654 |
|
* @return an Insets object whose <code>left</code>, <code>right</code>, |
655 |
|
* <code>top</code> and <code>bottom</code> fields indicate the |
656 |
|
* width of the border at the respective edge. |
657 |
|
* |
658 |
|
* @see #getBorderInsets(java.awt.Component, java.awt.Insets) |
659 |
*/ |
*/ |
660 |
public Insets getBorderInsets(Component c) |
public Insets getBorderInsets(Component c) |
661 |
{ |
{ |
664 |
|
|
665 |
|
|
666 |
/** |
/** |
667 |
* Determines the insets of this border, storing the result |
* Measures the width of this border, storing the results into a |
668 |
* into the given Insets object. |
* pre-existing Insets object. |
669 |
|
* |
670 |
|
* @param insets an Insets object for holding the result values. |
671 |
|
* After invoking this method, the <code>left</code>, |
672 |
|
* <code>right</code>, <code>top</code> and |
673 |
|
* <code>bottom</code> fields indicate the width of the |
674 |
|
* border at the respective edge. |
675 |
* |
* |
676 |
* @param insets an Insets object for holding the insets of this |
* @return the same object that was passed for <code>insets</code>. |
|
* border. |
|
677 |
* |
* |
678 |
* @return the same object that was passed for <code>insets</code>, |
* @see #getBorderInsets() |
|
* but with changed field values. |
|
679 |
*/ |
*/ |
680 |
public Insets getBorderInsets(Component c, Insets insets) |
public Insets getBorderInsets(Component c, Insets insets) |
681 |
{ |
{ |