function str = maketip(this,tip,info)
%MAKETIP  Build data tips for @timeview curves.
%
%   INFO is a structure built dynamically by the data tip interface
%   and passed to MAKETIP to facilitate construction of the tip text.

%   Author(s):  
%   Copyright 1986-2002 The MathWorks, Inc. 
%   $Revision: 1.1.6.1 $  $Date: 2004/12/26 21:41:35 $

r = info.Carrier;
AxGrid = info.View.AxesGrid;

% Finalize Y data
Y = tip.Position(2);
AxGrid = info.View.AxesGrid;
if strcmp(AxGrid.YNormalization,'on')
   ax = getaxes(tip);
   Y = denormalize(info.Data,Y,get(ax,'XLim'),info.Row,info.Col);
end
   
% Create tip text
if length(r.RowIndex)>1
    str{1,1} = sprintf('Time series: %s Column: %d',r.Name,info.Row);
else
    str{1,1} = sprintf('Time series: %s',r.Name);
end
if ~isempty(info.Carrier.Parent.startDate) && strcmp(info.Carrier.Parent.Absolutetime,'on')
    str{end+1,1} = sprintf('Time/date: %s',  ...
        datestr(tsunitconv('days',info.Carrier.Parent.TimeUnits)*tip.Position(1)+...
        datenum(info.Carrier.Parent.StartDate),info.Carrier.Parent.TimeFormat));
else  
    str{end+1,1} = sprintf('Time (%s): %0.3g', AxGrid.XUnits, tip.Position(1));
end

str{end+1,1} = sprintf('Amplitude: %0.3g', Y);


