www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/+xregbdrygui/BdryPairwiseHeader.m

    classdef BdryPairwiseHeader < mbcgui.widget.SharedAxisHeader
    %xregbdrygui.BdryPairwiseHeader class
    %   xregbdrygui.BdryPairwiseHeader extends mbcgui.widget.SharedAxisHeader.
    %
    %    xregbdrygui.BdryPairwiseHeader properties:
    %       Parent - Property is of type 'MATLAB array'
    %       Position - Property is of type 'rect'
    %       Enable - Property is of type 'on/off'
    %       Visible - Property is of type 'on/off'
    %       UserData - Property is of type 'MATLAB array'
    %       Tag - Property is of type 'string'
    %       Min - Property is of type 'double'
    %       Max - Property is of type 'double'
    %       Value - Property is of type 'double'
    %       Label - Property is of type 'ustring'
    %       Orientation - Property is of type 'string'
    %       AxisEdgeOffset - Property is of type 'int'
    %       AxisFrontOffset - Property is of type 'int'
    %       BackgroundColor - Property is of type 'color'
    %
    %    xregbdrygui.BdryPairwiseHeader methods:
    %       setTableData - Scrolling table interface function.
    
    % Copyright 2005-2015 The MathWorks, Inc. and Ford Global Technologies, Inc.
    
    methods  % constructor block
        function obj = BdryPairwiseHeader( varargin )
        % XREGBDRYGUI.BDRYPAIRWISEHEADER class constructor
        
        % Call the inherited constructor
        obj@mbcgui.widget.SharedAxisHeader(varargin{ : }); % converted super class constructor call
        
        end  % BdryPairwiseHeader
        
    end  % constructor block
    
    methods  % public methods
        %----------------------------------------
        function setTableData(obj, R, C, data)
        %SETTABLEDATA Scrolling table interface function.
        %   SETTABLEDATA(OBJ, R, C, DATA)
        %      R -- row index
        %      C -- column index
        %         Because this class controls the row and column headers for the
        %         view, either R or C should be zero. This will indicate whether
        %         we're dealing with the row headers (C == 0) or the column
        %         headers (R == 0).
        %      DATA -- The xregbdrygui.BdryPairwiseData object for this view.
        
        bms = data.MessageService;
        if ~isempty( bms ),
            cif = bms.getInputFactors;
            if C == 0,
                cif = cif(R+1);
            else % R == 0,
                cif = cif(C);
            end
            obj.setLimits( cif.Min, cif.Max );
            s = getSymbols( cif );
            obj.Label = s{1};
        end
        
        end  % setTableData
        
    end  % public methods
    
end  % classdef