mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-10 06:38:11 +01:00
TAChart: Allow assignment of TBubbleSeries, TBoxAndWhiskerSeries
git-svn-id: trunk@29319 -
This commit is contained in:
parent
332efed95d
commit
e6d3ed279e
@ -44,6 +44,7 @@ type
|
||||
procedure GetLegendItems(AItems: TChartLegendItems); override;
|
||||
function GetSeriesColor: TColor; override;
|
||||
public
|
||||
procedure Assign(ASource: TPersistent); override;
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
|
||||
@ -77,6 +78,7 @@ type
|
||||
procedure GetLegendItems(AItems: TChartLegendItems); override;
|
||||
function GetSeriesColor: TColor; override;
|
||||
public
|
||||
procedure Assign(ASource: TPersistent); override;
|
||||
constructor Create(AOwner: TComponent); override;
|
||||
destructor Destroy; override;
|
||||
|
||||
@ -104,6 +106,16 @@ uses
|
||||
|
||||
{ TBubbleSeries }
|
||||
|
||||
procedure TBubbleSeries.Assign(ASource: TPersistent);
|
||||
begin
|
||||
if ASource is TBubbleSeries then
|
||||
with TBubbleSeries(ASource) do begin
|
||||
Self.BubbleBrush := FBubbleBrush;
|
||||
Self.BubblePen := FBubblePen;
|
||||
end;
|
||||
inherited Assign(ASource);
|
||||
end;
|
||||
|
||||
constructor TBubbleSeries.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited Create(AOwner);
|
||||
@ -187,6 +199,20 @@ end;
|
||||
|
||||
{ TBoxAndWhiskerSeries }
|
||||
|
||||
procedure TBoxAndWhiskerSeries.Assign(ASource: TPersistent);
|
||||
begin
|
||||
if ASource is TBoxAndWhiskerSeries then
|
||||
with TBoxAndWhiskerSeries(ASource) do begin
|
||||
Self.BoxBrush := FBoxBrush;
|
||||
Self.BoxPen := FBoxPen;
|
||||
Self.FBoxWidth := FBoxWidth;
|
||||
Self.MedianPen := FMedianPen;
|
||||
Self.WhiskersPen := FWhiskersPen;
|
||||
Self.FWhiskersWidth := FWhiskersWidth;
|
||||
end;
|
||||
inherited Assign(ASource);
|
||||
end;
|
||||
|
||||
constructor TBoxAndWhiskerSeries.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited Create(AOwner);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user