- Timestamp:
- Apr 27, 2004, 8:39:34 PM (22 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
libjava/java/awt/geom/Dimension2D.java (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libjava/java/awt/geom/Dimension2D.java
-
Property cvs2svn:cvs-rev
changed from
1.1to1.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 2 3 3 4 This file is part of GNU Classpath. … … 35 36 exception statement from your version. */ 36 37 38 37 39 package java.awt.geom; 38 40 39 41 /** 42 43 44 40 45 * @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 42 49 */ 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 48 50 public abstract class Dimension2D implements Cloneable 49 51 { 52 53 54 55 56 57 58 59 60 61 62 63 64 50 65 public abstract double getWidth(); 66 67 68 69 70 71 72 51 73 public abstract double getHeight(); 52 74 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); 54 83 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) 56 93 { 57 setSize(d im.getWidth(), dim.getHeight());94 setSize(d.getHeight()); 58 95 } 59 96 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() 61 108 { 62 109 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 } 67 117 } 68 69 protected Dimension2D () 70 { 71 } 72 } 118 } // class Dimension2D -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
