/// <reference path="../FDNode.ts" />
var FD;
(function (FD) {
    var BarChartBlock = (function () {
        function BarChartBlock(name) {
            this.some = "asdasd";
            this.cName = name;
            this.entries = [];
            this.shadowEntries = [];
            this.overShadowEntries = [];
        }
        BarChartBlock.prototype.addEntry = function (newHeight, newColour, newHooverText, newName) {
            this.entries[this.entries.length] = { height: newHeight, color: newColour, hooverText: newHooverText, name: newName };
        };

        BarChartBlock.prototype.addShadowEntry = function (newHeight, newColour, newHooverText, newName) {
            this.shadowEntries[this.shadowEntries.length] = { height: newHeight, color: newColour, hooverText: newHooverText, name: newName };
        };

        BarChartBlock.prototype.addOverShadowEntry = function (newHeight, newColour, newHooverText, newName) {
            this.overShadowEntries[this.overShadowEntries.length] = { height: newHeight, color: newColour, hooverText: newHooverText, name: newName };
        };

        BarChartBlock.prototype.addID = function (entrie, newID) {
            this.entries[entrie].id = newID;
        };

        BarChartBlock.prototype.addShadowID = function (entry, newID) {
            this.shadowEntries[entry].id = newID;
        };

        BarChartBlock.prototype.addOverShadowID = function (entry, newID) {
            this.overShadowEntries[entry].id = newID;
        };

        BarChartBlock.prototype.printEntries = function () {
            for (var i = 0; i < this.entries.length; i++) {
                alert(this.entries[i].color + " ");
            }
        };
        return BarChartBlock;
    })();
    FD.BarChartBlock = BarChartBlock;
})(FD || (FD = {}));
