public final class EqualizerModelEvent extends EventObject
EqualizerModelEvent shall provide info about the nature of the EqualizerModel change.source| Constructor and Description |
|---|
EqualizerModelEvent(Object source)
Creates a new EqualizerModelEvent object.
|
EqualizerModelEvent(Object source,
int index,
int oldValue,
int newValue)
Creates a new EqualizerModelEvent object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Getter for the index that changed.
|
int |
getNewValue()
Getter for the value that is available at
getIndex() after the change. |
int |
getOldValue()
Getter for the value that was available at
getIndex() before the change. |
String |
toString() |
getSourcepublic EqualizerModelEvent(Object source)
index=-1oldValue=Integer.MIN_VALUEnewValue=Integer.MIN_VALUEsource - the EqualizerModel that caused the eventpublic EqualizerModelEvent(Object source, int index, int oldValue, int newValue)
source - the source of the eventindex - the index that changedoldValue - the value before the change at the given indexnewValue - the value after the change at the given indexpublic int getIndex()
-1 indicates that it is not known which index actually
changed and thus the value getters will not provide actual valid values.-1 if the actual index is not knownpublic int getOldValue()
getIndex() before the change.getIndex() before the change.public int getNewValue()
getIndex() after the change.getIndex() after the change.public String toString()
toString in class EventObjectCopyright © 2012–2026 cismet GmbH. All rights reserved.