Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/awt/geom/Dimension2D.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    1 /* Copyright (C) 1999, 2000, 2002  Free Software Foundation
     1/* Dimension2D.java -- abstraction of a dimension
     2   Copyright (C) 1999, 2000, 2002 Free Software Foundation
    23
    34This file is part of GNU Classpath.
     
    3536exception statement from your version. */
    3637
     38
    3739package java.awt.geom;
    3840
    3941/**
     42
     43
     44
    4045 * @author Per Bothner <[email protected]>
    41  * @date February, 1999.
     46 * @author Eric Blake <[email protected]>
     47 * @since 1.2
     48 * @status updated to 1.4
    4249 */
    43 
    44 /* Written using online API docs for JDK 1.2 beta from http://www.javasoft.com.
    45  * Status:  Believed complete and correct.
    46  */
    47 
    4850public abstract class Dimension2D implements Cloneable
    4951{
     52
     53
     54
     55
     56
     57
     58
     59
     60
     61
     62
     63
     64
    5065  public abstract double getWidth();
     66
     67
     68
     69
     70
     71
     72
    5173  public abstract double getHeight();
    5274
    53   public abstract void setSize (double width, double height);
     75  /**
     76   * Set the size of this dimension to the requested values. Loss of precision
     77   * may occur.
     78   *
     79   * @param w the new width
     80   * @param h the new height
     81   */
     82  public abstract void setSize(double w, double h);
    5483
    55   public void setSize (Dimension2D dim)
     84  /**
     85   * Set the size of this dimension to the requested value. Loss of precision
     86   * may occur.
     87   *
     88   * @param d the dimension containing the new values
     89   *
     90   * @throws NullPointerException if d is null
     91   */
     92  public void setSize(Dimension2D d)
    5693  {
    57     setSize(dim.getWidth(), dim.getHeight());
     94    setSize(d.getHeight());
    5895  }
    5996
    60   public Object clone ()
     97  /**
     98   * Create a new dimension of the same run-time type with the same contents
     99   * as this one.
     100   *
     101   * @return the clone
     102   *
     103   * @exception OutOfMemoryError If there is not enough memory available.
     104   *
     105   * @since 1.2
     106   */
     107  public Object clone()
    61108  {
    62109    try
    63     {
    64       return super.clone ();
    65     }
    66     catch (CloneNotSupportedException _) {return null;}
     110      {
     111        return super.clone();
     112      }
     113    catch (CloneNotSupportedException e)
     114      {
     115        throw (Error) new InternalError().initCause(e); // Impossible
     116      }
    67117  }
    68 
    69   protected Dimension2D ()
    70   {
    71   }
    72 }
     118} // class Dimension2D
Note: See TracChangeset for help on using the changeset viewer.