www.gusucode.com > mbcdesign 工具箱 matlab 源码程序 > mbcdesign/+xregdesgui/PairwiseProjHeader.m
classdef PairwiseProjHeader < mbcgui.widget.SharedAxisHeader %xregGui.sharedAxisHeader %xregdesgui.PairwiseProjHeader class % xregdesgui.PairwiseProjHeader extends xregGui.sharedAxisHeader. % % xregdesgui.PairwiseProjHeader 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' % % xregdesgui.PairwiseProjHeader methods: % setTableData - Scrolling table interface function % Copyright 2015 The MathWorks, Inc. and Ford Global Technologies, Inc. methods % constructor block function obj = PairwiseProjHeader(varargin) %PAIRWISEPROJHEADER Constructor function for pairwiseprojHeader objects % OBJ = PAIRWISEPROJHEADER(PROP, VAL, ...) obj@mbcgui.widget.SharedAxisHeader(varargin{:}); end % pairwiseprojHeader end % constructor block methods % public methods function setLimits(obj, mn, mx) disableListeners(obj) set(obj, 'Min', mn, 'Max', mx); obj.axis.setLimits(mn, mx); enableListeners(obj) end %---------------------------------------- function setTableData( obj,R,C,data ) %SETTABLEDATA Scrolling table interface function % SETTABLEDATA(OBJ, R, C, DATA) % des = data.DesignPackage.getdesign; lbls = factors(des); lims=designlimits(des,'natural'); if C==0 % row headers obj.setLimits(lims{R+1}(1), lims{R+1}(2)); obj.Label = lbls{R+1}; else % col headers obj.setLimits(lims{C}(1), lims{C}(2)); obj.Label = lbls{C}; end end % setTableData end % public methods end % classdef