mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-18 10:09:32 +02:00
TAChart: Change TAnimatedChartSource Extent properties to be like those of TSortedChartSource. Issue #35612, patch by Marcin Wiazowski.
git-svn-id: trunk@61270 -
This commit is contained in:
parent
b9b93e077d
commit
01762d1065
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user