/[classpath]/classpath/java/awt/image/DataBufferDouble.java
ViewVC logotype

Diff of /classpath/java/awt/image/DataBufferDouble.java

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

revision 1.4 by mkoch, Wed Feb 16 10:39:27 2005 UTC revision 1.5 by trebligd, Fri Jul 1 10:33:31 2005 UTC
# Line 1  Line 1 
1  /* Copyright (C) 2004  Free Software Foundation  /* Copyright (C) 2004, 2005  Free Software Foundation
2    
3  This file is part of GNU Classpath.  This file is part of GNU Classpath.
4    
# Line 47  package java.awt.image; Line 47  package java.awt.image;
47     code is a maintenance nightmare.  */     code is a maintenance nightmare.  */
48    
49  /**  /**
50     * A {@link DataBuffer} that uses an array of <code>double</code> primitives
51     * to represent each of its banks.
52     *
53   * @since 1.4   * @since 1.4
54   *   *
55   * @author Rolf W. Rasmussen (rolfwr@ii.uib.no)   * @author Rolf W. Rasmussen (rolfwr@ii.uib.no)
# Line 226  public final class DataBufferDouble Line 229  public final class DataBufferDouble
229     */     */
230    public void setElem(int i, int val)    public void setElem(int i, int val)
231    {    {
232      data[i+offset] = (double) val;      data[i+offset] = val;
233    }    }
234    
235    /**    /**
# Line 240  public final class DataBufferDouble Line 243  public final class DataBufferDouble
243     */     */
244    public void setElem(int bank, int i, int val)    public void setElem(int bank, int i, int val)
245    {    {
246      bankData[bank][i+offsets[bank]] = (double) val;      bankData[bank][i+offsets[bank]] = val;
247    }    }
248    
249    public float getElemFloat(int i)    public float getElemFloat(int i)

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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