www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgtradeoffgui/@listTableView/pDrawSelPoint.m

    function pDrawSelPoint(obj)
%PDRAWSELPOINT Set the table selection from the current selected tradeoff point
%
%  PDRAWSELPOINT(OBJ) sets the table's selection to match the current
%  setting of the selected tradeoff point.

%  Copyright 2000-2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


if ~isempty(obj.MessageService) ...
        && ~isempty(obj.MessageService.CurrentTable)

    if obj.MessageService.hasValidListIndex
        % Select the current point in the table
        obj.hTable.selectCell(obj.MessageService.CurrentListIndex, 1);
    else
        % Unselect all table cells
        obj.hTable.clearSelection;
    end
else
    % Unselect all table cells
    obj.hTable.clearSelection;
end