/[classpath]/classpath/javax/swing/border/AbstractBorder.java
ViewVC logotype

Diff of /classpath/javax/swing/border/AbstractBorder.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by brawer, Tue Jun 10 23:39:09 2003 UTC revision 1.7 by brawer, Thu Jun 12 12:18:24 2003 UTC
# Line 91  public abstract class AbstractBorder Line 91  public abstract class AbstractBorder
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    {    {
# Line 113  public abstract class AbstractBorder Line 114  public abstract class AbstractBorder
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    {    {

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26