jdk/src/share/classes/java/awt/font/TextJustifier.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 1997-1999 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
 * (C) Copyright Taligent, Inc. 1996 - 1997, All Rights Reserved
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
 * (C) Copyright IBM Corp. 1996 - 1998, All Rights Reserved
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
 * The original version of this source code and documentation is
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
 * copyrighted and owned by Taligent, Inc., a wholly-owned subsidiary
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * of IBM. These materials are provided under terms of a License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * Agreement between Taligent and Sun. This technology is protected
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * by multiple US and International patents.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * This notice and attribution to Taligent may not be removed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * Taligent is a registered trademark of Taligent, Inc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
package java.awt.font;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * one info for each side of each glyph
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * separate infos for grow and shrink case
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 * !!! this doesn't really need to be a separate class.  If we keep it
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * separate, probably the newJustify code from TextLayout belongs here as well.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
class TextJustifier {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    private GlyphJustificationInfo[] info;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    private int start;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    private int limit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    static boolean DEBUG = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     * Initialize the justifier with an array of infos corresponding to each
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
     * glyph. Start and limit indicate the range of the array to examine.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    TextJustifier(GlyphJustificationInfo[] info, int start, int limit) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        this.info = info;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
        this.start = start;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
        this.limit = limit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        if (DEBUG) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
            System.out.println("start: " + start + ", limit: " + limit);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
            for (int i = start; i < limit; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
                GlyphJustificationInfo gji = info[i];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
                System.out.println("w: " + gji.weight + ", gp: " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
                                   gji.growPriority + ", gll: " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
                                   gji.growLeftLimit + ", grl: " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
                                   gji.growRightLimit);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    public static final int MAX_PRIORITY = 3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
     * Return an array of deltas twice as long as the original info array,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * indicating the amount by which each side of each glyph should grow
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * or shrink.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * Delta should be positive to expand the line, and negative to compress it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    public float[] justify(float delta) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
        float[] deltas = new float[info.length * 2];
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        boolean grow = delta > 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        if (DEBUG)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
            System.out.println("delta: " + delta);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        // make separate passes through glyphs in order of decreasing priority
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        // until justifyDelta is zero or we run out of priorities.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
        int fallbackPriority = -1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        for (int p = 0; delta != 0; p++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
            /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
             * special case 'fallback' iteration, set flag and recheck
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
             * highest priority
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
             */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
            boolean lastPass = p > MAX_PRIORITY;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
            if (lastPass)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                p = fallbackPriority;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
            // pass through glyphs, first collecting weights and limits
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
            float weight = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
            float gslimit = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            float absorbweight = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
            for (int i = start; i < limit; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
                GlyphJustificationInfo gi = info[i];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
                if ((grow ? gi.growPriority : gi.shrinkPriority) == p) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
                    if (fallbackPriority == -1) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
                        fallbackPriority = p;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
                    if (i != start) { // ignore left of first character
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
                        weight += gi.weight;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
                        if (grow) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
                            gslimit += gi.growLeftLimit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
                            if (gi.growAbsorb) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
                                absorbweight += gi.weight;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
                        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
                            gslimit += gi.shrinkLeftLimit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
                            if (gi.shrinkAbsorb) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
                                absorbweight += gi.weight;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
                        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
                    if (i + 1 != limit) { // ignore right of last character
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
                        weight += gi.weight;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
                        if (grow) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
                            gslimit += gi.growRightLimit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
                            if (gi.growAbsorb) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
                                absorbweight += gi.weight;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
                        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
                            gslimit += gi.shrinkRightLimit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
                            if (gi.shrinkAbsorb) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
                                absorbweight += gi.weight;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
                        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
            // did we hit the limit?
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
            if (!grow) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
                gslimit = -gslimit; // negative for negative deltas
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
            boolean hitLimit = (weight == 0) || (!lastPass && ((delta < 0) == (delta < gslimit)));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
            boolean absorbing = hitLimit && absorbweight > 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
            // predivide delta by weight
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
            float weightedDelta = delta / weight; // not used if weight == 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
            float weightedAbsorb = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
            if (hitLimit && absorbweight > 0) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
                weightedAbsorb = (delta - gslimit) / absorbweight;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
            if (DEBUG) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
                System.out.println("pass: " + p +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
                    ", d: " + delta +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
                    ", l: " + gslimit +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
                    ", w: " + weight +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
                    ", aw: " + absorbweight +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
                    ", wd: " + weightedDelta +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
                    ", wa: " + weightedAbsorb +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
                    ", hit: " + (hitLimit ? "y" : "n"));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
            // now allocate this based on ratio of weight to total weight
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
            int n = start * 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
            for (int i = start; i < limit; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
                GlyphJustificationInfo gi = info[i];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
                if ((grow ? gi.growPriority : gi.shrinkPriority) == p) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
                    if (i != start) { // ignore left
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
                        float d;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
                        if (hitLimit) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
                            // factor in sign
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                            d = grow ? gi.growLeftLimit : -gi.shrinkLeftLimit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                            if (absorbing) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
                                // sign factored in already
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
                               d += gi.weight * weightedAbsorb;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
                        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
                            // sign factored in already
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
                            d = gi.weight * weightedDelta;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
                        deltas[n] += d;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
                    n++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
                    if (i + 1 != limit) { // ignore right
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
                        float d;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
                        if (hitLimit) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
                            d = grow ? gi.growRightLimit : -gi.shrinkRightLimit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                            if (absorbing) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                                d += gi.weight * weightedAbsorb;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
                        } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
                            d = gi.weight * weightedDelta;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
                        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
                        deltas[n] += d;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
                    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
                    n++;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
                } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                    n += 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            if (!lastPass && hitLimit && !absorbing) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
                delta -= gslimit;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
            } else {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
                delta = 0; // stop iteration
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
        if (DEBUG) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
            float total = 0;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            for (int i = 0; i < deltas.length; i++) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                total += deltas[i];
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                System.out.print(deltas[i] + ", ");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
                if (i % 20 == 9) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
                    System.out.println();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
                }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
            }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
            System.out.println("\ntotal: " + total);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
            System.out.println();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
        return deltas;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
}