classdef(Hidden,Sealed) NewPlotEventData < event.EventData
    %NEWPLOTEVENTDATA Event data containg the enumeration for the selected
    %plot type
    
    %Copyright 2017 The MathWorks, Inc.
    
    properties
        RequestedPlot
    end
    
    methods
        function this = NewPlotEventData(plotType)
            %Store a plot types enumeration as event data
            import internal.EconModeler.Enumerations.PlotTypes
            if isa(plotType,'PlotTypes')
               this.RequestedPlot = plotType;
            else
                error(message('econ:econModeler:NeedPlotTypes'));
            end
        end
    end
    
end

