TAChart: Change TAnimatedChartSource Extent properties to be like those of TSortedChartSource. Issue , patch by Marcin Wiazowski.

git-svn-id: trunk@61270 -
This commit is contained in:
wp 2019-05-22 10:47:26 +00:00
parent b9b93e077d
commit 01762d1065

View File

@ -54,9 +54,12 @@ type
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function BasicExtent: TDoubleRect; override;
function Extent: TDoubleRect; override;
function ExtentCumulative: TDoubleRect; override;
function ExtentList: TDoubleRect; override;
function ExtentXYList: TDoubleRect; override;
function ValuesTotal: Double; override;
function IsAnimating: Boolean; inline;
function Progress: Double; inline;
@ -116,6 +119,14 @@ begin
inherited;
end;
function TCustomAnimatedChartSource.BasicExtent: TDoubleRect;
begin
if Origin = nil then
Result := EmptyExtent
else
Result := Origin.BasicExtent;
end;
function TCustomAnimatedChartSource.Extent: TDoubleRect;
begin
if Origin = nil then
@ -140,6 +151,22 @@ begin
Result := Origin.ExtentList;
end;
function TCustomAnimatedChartSource.ExtentXYList: TDoubleRect;
begin
if Origin = nil then
Result := EmptyExtent
else
Result := Origin.ExtentXYList;
end;
function TCustomAnimatedChartSource.ValuesTotal: Double;
begin
if Origin = nil then
Result := 0
else
Result := Origin.ValuesTotal;
end;
function TCustomAnimatedChartSource.GetCount: Integer;
begin
if Origin = nil then