www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/+mbccrosssectiongui/@GraphView/pConfigureTable.m

    function pConfigureTable(obj)
%PCONFIGURETABLE Alter settings of table to match tradeoff requirements
%
%  PCONFIGURETABLE(OBJ) changes table's settings to match what is required
%  by the current settings of the object.

%  Copyright 2014-2015 The MathWorks, Inc. and Ford Global Technologies, Inc.



if obj.DataModel.ShowCommonYAxis && obj.WideHeaderMode
    rowwidth = 115;
    colwidth = 75;
elseif obj.DataModel.ShowCommonYAxis
    rowwidth = 65;
    colwidth = 60;
elseif obj.WideHeaderMode
    rowwidth = 80;
    colwidth = 75;
else
    rowwidth = 19;
    colwidth = 60;
end

obj.GraphTable.RowHeaderWidth = rowwidth;
obj.GraphTable.ColumnHeaderWidth = colwidth;