public void update() {
        if (isComplete == false) {
            applyFilter();
            passesLeft--;
            if (passesLeft == 0) {
                isComplete = true;
            }
        } else {
            this.stop();
            if (parent != null) {
                this.notifyListeners(new ActionEvent(parent, ActionEvent.ACTION_PERFORMED, "Effect Complete"));
            }
        }
    }