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

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

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

revision 1.1 by mark, Thu Jul 22 19:45:38 2004 UTC revision 1.1.2.1 by gnu_andrew, Sat Jan 15 17:01:49 2005 UTC
# Line 61  public class ShortLookupTable extends Lo Line 61  public class ShortLookupTable extends Lo
61     *     *
62     * @param offset Offset to be subtracted.     * @param offset Offset to be subtracted.
63     * @param data Array of lookup tables.     * @param data Array of lookup tables.
64     * @exception IllegalArgumentException if offset < 0 or data.length < 1.     * @exception IllegalArgumentException if offset &lt; 0 or data.length &lt; 1.
65     */     */
66    public ShortLookupTable(int offset, short[][] data)    public ShortLookupTable(int offset, short[][] data)
67      throws IllegalArgumentException      throws IllegalArgumentException
# Line 78  public class ShortLookupTable extends Lo Line 78  public class ShortLookupTable extends Lo
78     *     *
79     * @param offset Offset to be subtracted.     * @param offset Offset to be subtracted.
80     * @param data Lookup table for all components.     * @param data Lookup table for all components.
81     * @exception IllegalArgumentException if offset < 0.     * @exception IllegalArgumentException if offset &lt; 0.
82     */     */
83    public ShortLookupTable(int offset, short[] data)    public ShortLookupTable(int offset, short[] data)
84      throws IllegalArgumentException      throws IllegalArgumentException
# Line 114  public class ShortLookupTable extends Lo Line 114  public class ShortLookupTable extends Lo
114      throws ArrayIndexOutOfBoundsException      throws ArrayIndexOutOfBoundsException
115    {    {
116      if (dst == null)      if (dst == null)
117        dst = new int[numComponents];        dst = new int[src.length];
118    
119      if (data.length == 1)      if (data.length == 1)
120        for (int i=0; i < src.length; i++)        for (int i=0; i < src.length; i++)
# Line 147  public class ShortLookupTable extends Lo Line 147  public class ShortLookupTable extends Lo
147      throws ArrayIndexOutOfBoundsException      throws ArrayIndexOutOfBoundsException
148    {    {
149      if (dst == null)      if (dst == null)
150        dst = new short[numComponents];        dst = new short[src.length];
151    
152      if (data.length == 1)      if (data.length == 1)
153        for (int i=0; i < src.length; i++)        for (int i=0; i < src.length; i++)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

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