public void addListener(AnimEventListener listener) {
        if (listeners.contains(listener)) {
            throw new IllegalArgumentException("The given listener is already "
                    + "registered at this AnimControl");
        }

        listeners.add(listener);
    }
Adds a new listener to receive animation related events.

@param listener The listener to add.
jme3-core/src/main/java/com/jme3/animation/AnimControl.java