import { ensureBool } from "igniteui-react-core/ES5/componentUtil";
/**
 * Provides data for legend mouse button related events.
*/
var LegendMouseButtonEventArgs = /** @class */ (function () {
    function LegendMouseButtonEventArgs() {
    }
    Object.defineProperty(LegendMouseButtonEventArgs.prototype, "i", {
        get: function () {
            return this._implementation;
        },
        enumerable: true,
        configurable: true
    });
    LegendMouseButtonEventArgs.prototype.onImplementationCreated = function () {
    };
    LegendMouseButtonEventArgs.prototype._provideImplementation = function (i) {
        this._implementation = i;
        this._implementation.externalObject = this;
        this.onImplementationCreated();
    };
    Object.defineProperty(LegendMouseButtonEventArgs.prototype, "handled", {
        /**
         * Gets or sets a value that indicates the present state of the event handling for a routed
         * event as it travels the route.
         * ChartMouseButton events are not routed events; setting this property effects the underlying
         * MouseButtonEvent.
        */
        get: function () {
            return this.i.handled;
        },
        set: function (v) {
            this.i.handled = ensureBool(v);
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(LegendMouseButtonEventArgs.prototype, "originalSource", {
        /**
         * Gets a reference to the object that raised the event.
        */
        get: function () {
            return this.i.originalSource;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(LegendMouseButtonEventArgs.prototype, "item", {
        /**
         * Gets the ItemsSource item associated with the current event.
        */
        get: function () {
            return this.i.item;
        },
        set: function (v) {
            this.i.item = v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(LegendMouseButtonEventArgs.prototype, "series", {
        /**
         * Gets the series associated with the current event.
        */
        get: function () {
            return this.i.series;
        },
        set: function (v) {
            this.i.series = v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(LegendMouseButtonEventArgs.prototype, "chart", {
        /**
         * Gets the Chart associated with the current event.
        */
        get: function () {
            return this.i.chart;
        },
        set: function (v) {
            this.i.chart = v;
        },
        enumerable: true,
        configurable: true
    });
    Object.defineProperty(LegendMouseButtonEventArgs.prototype, "legendItem", {
        /**
         * The legend item that was the target of the mouse event.
        */
        get: function () {
            return this.i.legendItem;
        },
        set: function (v) {
            this.i.legendItem = v;
        },
        enumerable: true,
        configurable: true
    });
    /**
     * Provides a human readable description of the mouse button event.
    
    */
    LegendMouseButtonEventArgs.prototype.toString = function () {
        var iv = this.i.toString();
        return (iv);
    };
    return LegendMouseButtonEventArgs;
}());
export { LegendMouseButtonEventArgs };
