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

    function obj = tableGraphView(varargin)
%TABLEGRAPHVIEW Constructor for tableGraphView object
%
%  OBJ = TABLEGRAPHVIEW(PROP, VALUE, ...) creates an object that displays a
%  particular table from a tradeoff.

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



if nargin && isa(varargin{1}, 'cgtradeoffgui.tableGraphView')
   obj = varargin{1};
   varargin(1) = [];
else
   obj = cgtradeoffgui.tableGraphView;
end

% Call the inherited constructor
obj.View(varargin{:});

SC = xregGui.SystemColorsDbl;

% Construct objects
obj.hAxesPanel = mbcgui.widget.AxesContainer(...
    'Parent', obj.Parent, ...
    'Visible', obj.Visible, ...
    'Border', [45 50 30 10]);
obj.hAxes = obj.hAxesPanel.AxesHandle;
set(obj.hAxes, ...
    'Units', 'pixels', ...
    'Box','on',...
    'XGrid', 'on', ...
    'YGrid', 'on', ...
    'ZGrid', 'on');
view(obj.hAxes, 3);
mv_rotate3d(obj.hAxes, 'ON');

obj.hSurface = surface('Parent', obj.hAxes, ...
    'CData', [], ...
    'XData', [], ...
    'YData', [], ...
    'ZData', []);


obj.hValidFillMask = line('Parent', obj.hAxes, ...
    'LineStyle', 'none', ...
    'Marker', '.', ...
    'MarkerSize',10,...
    'MarkerEdgeColor', [0 0 0], ...
    'MarkerFaceColor', [0 0 0], ...
    'XData', [], ...
    'YData', [], ...
    'ZData', []);
obj.ShowValidFillPoints=true;

obj.hSelPoint = line('Parent', obj.hAxes, ...
    'LineStyle', 'none', ...
    'Marker', 'o', ...
    'MarkerEdgeColor', SC.WINDOW_BG, ...
    'MarkerFaceColor', SC.TITLE_ACTIVE_BG, ...
    'XData', [], ...
    'YData', [], ...
    'ZData', []);



% Perform a full redraw of the object
obj.pDrawSurface;
obj.pDrawSelPoint;

% Hook up to the message service if it exists
if ~isempty(obj.MessageService)
    obj.pPostSetMessageService;
end