ProspectDirector.Web.UI.Utilities.ColorWheel = Class.extend({

    //==============================
    // FIELDS
    //==============================

    _index: -1,
    _colors: [
        "f78aa9",
        "f7f970",
        "d8f77b",
        "a8fff9",
        "dcb9f7",
        "ffb2e5",
        "fffdbc",
        "85f2ad",
        "84dcff",
        "8f87e5"
    ],

    //==============================
    // CONSTRUCTOR
    //==============================

    init: function () {

    },

    //==============================
    // PUBLIC METHODS
    //==============================

    next: function () {

        var color = null;

        if (this._index === this._colors.length - 1) {
            this.reset();
        }

        this._index += 1;

        return "#" + this._colors[this._index];

    },

    reset: function () {
        this._index = -1;
    }

});

//==============================
// STATIC METHODS
//==============================

ProspectDirector.Web.UI.Utilities.ColorWheel.create = function () {
    return new ProspectDirector.Web.UI.Utilities.ColorWheel();
};

ProspectDirector.Web.UI.Utilities.ColorWheel = new ProspectDirector.Web.UI.Utilities.ColorWheel();