jdk/src/share/classes/java/awt/event/AdjustmentEvent.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 440 a3dac373f62d
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 1996-2007 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
package java.awt.event;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.awt.Adjustable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.awt.AWTEvent;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
 * The adjustment event emitted by Adjustable objects.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
 * @see java.awt.Adjustable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * @see AdjustmentListener
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * @author Amy Fowler
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * @since 1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
public class AdjustmentEvent extends AWTEvent {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
     * Marks the first integer id for the range of adjustment event ids.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    public static final int ADJUSTMENT_FIRST    = 601;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
     * Marks the last integer id for the range of adjustment event ids.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
    public static final int ADJUSTMENT_LAST     = 601;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
     * The adjustment value changed event.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
    public static final int ADJUSTMENT_VALUE_CHANGED = ADJUSTMENT_FIRST; //Event.SCROLL_LINE_UP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
     * The unit increment adjustment type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
    public static final int UNIT_INCREMENT      = 1;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
     * The unit decrement adjustment type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
    public static final int UNIT_DECREMENT      = 2;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
     * The block decrement adjustment type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
    public static final int BLOCK_DECREMENT     = 3;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
     * The block increment adjustment type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    public static final int BLOCK_INCREMENT     = 4;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * The absolute tracking adjustment type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
    public static final int TRACK               = 5;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
     * The adjustable object that fired the event.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * @see #getAdjustable
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    Adjustable adjustable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * <code>value</code> will contain the new value of the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * adjustable object.  This value will always be  in a
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * range associated adjustable object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
     * @see #getValue
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    int value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     * The <code>adjustmentType</code> describes how the adjustable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
     * object value has changed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
     * This value can be increased/decreased by a block or unit amount
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
     * where the block is associated with page increments/decrements,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * and a unit is associated with line increments/decrements.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     * @see #getAdjustmentType
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
    int adjustmentType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * The <code>isAdjusting</code> is true if the event is one
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     * of the series of multiple adjustment events.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
     * @serial
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * @see #getValueIsAdjusting
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
    boolean isAdjusting;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
     * JDK 1.1 serialVersionUID
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     private static final long serialVersionUID = 5700290645205279921L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
     * Constructs an <code>AdjustmentEvent</code> object with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
     * specified <code>Adjustable</code> source, event type,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * adjustment type, and value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * <p>Note that passing in an invalid <code>id</code> results in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * unspecified behavior.  This method throws an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     * <code>IllegalArgumentException</code> if <code>source</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
     * @param source the <code>Adjustable</code> object where the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     *               event originated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * @param id     the event type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * @param type   the adjustment type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     * @param value  the current value of the adjustment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
     * @throws IllegalArgumentException if <code>source</code> is null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    public AdjustmentEvent(Adjustable source, int id, int type, int value) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
        this(source, id, type, value, false);
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
     * Constructs an <code>AdjustmentEvent</code> object with the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
     * specified Adjustable source, event type, adjustment type, and value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
     * <p>Note that passing in an invalid <code>id</code> results in
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
     * unspecified behavior.  This method throws an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * <code>IllegalArgumentException</code> if <code>source</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     * is <code>null</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
     * @param source the <code>Adjustable</code> object where the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
     *               event originated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
     * @param id     the event type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
     * @param type   the adjustment type
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
     * @param value  the current value of the adjustment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * @param isAdjusting <code>true</code> if the event is one
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     *               of a series of multiple adjusting events,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
     *               otherwise <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
     * @throws IllegalArgumentException if <code>source</code> is null
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    public AdjustmentEvent(Adjustable source, int id, int type, int value, boolean isAdjusting) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
        super(source, id);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
        adjustable = source;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        this.adjustmentType = type;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
        this.value = value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        this.isAdjusting = isAdjusting;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
     * Returns the <code>Adjustable</code> object where this event originated.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * @return the <code>Adjustable</code> object where this event originated
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    public Adjustable getAdjustable() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        return adjustable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
     * Returns the current value in the adjustment event.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * @return the current value in the adjustment event
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
    public int getValue() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        return value;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     * Returns the type of adjustment which caused the value changed
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * event.  It will have one of the following values:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * <li>{@link #UNIT_INCREMENT}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * <li>{@link #UNIT_DECREMENT}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * <li>{@link #BLOCK_INCREMENT}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * <li>{@link #BLOCK_DECREMENT}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * <li>{@link #TRACK}
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * @return one of the adjustment values listed above
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
    public int getAdjustmentType() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        return adjustmentType;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
     * Returns <code>true</code> if this is one of multiple
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
     * adjustment events.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
     * @return <code>true</code> if this is one of multiple
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
     *         adjustment events, otherwise returns <code>false</code>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
     * @since 1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
    public boolean getValueIsAdjusting() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        return isAdjusting;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    public String paramString() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
        String typeStr;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
        switch(id) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
          case ADJUSTMENT_VALUE_CHANGED:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
              typeStr = "ADJUSTMENT_VALUE_CHANGED";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
          default:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
              typeStr = "unknown type";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        String adjTypeStr;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
        switch(adjustmentType) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
          case UNIT_INCREMENT:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
              adjTypeStr = "UNIT_INCREMENT";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
          case UNIT_DECREMENT:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
              adjTypeStr = "UNIT_DECREMENT";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
          case BLOCK_INCREMENT:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
              adjTypeStr = "BLOCK_INCREMENT";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
          case BLOCK_DECREMENT:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
              adjTypeStr = "BLOCK_DECREMENT";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
          case TRACK:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
              adjTypeStr = "TRACK";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
              break;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
          default:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
              adjTypeStr = "unknown type";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
        return typeStr
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
            + ",adjType="+adjTypeStr
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
            + ",value="+value
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
            + ",isAdjusting="+isAdjusting;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
}