www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@tradeoffGraphView/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 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.



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

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