mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 10:40:20 +02:00
TAChart: Add DrawingBegin/DrawingEnd methods to IChartDrawer
git-svn-id: trunk@30205 -
This commit is contained in:
parent
6c41287908
commit
61fe03b598
@ -69,6 +69,8 @@ type
|
||||
procedure ClippingStart(const AClipRect: TRect);
|
||||
procedure ClippingStart;
|
||||
procedure ClippingStop;
|
||||
procedure DrawingBegin(const ABoundingBox: TRect);
|
||||
procedure DrawingEnd;
|
||||
procedure DrawLineDepth(AX1, AY1, AX2, AY2, ADepth: Integer);
|
||||
procedure DrawLineDepth(const AP1, AP2: TPoint; ADepth: Integer);
|
||||
procedure Ellipse(AX1, AY1, AX2, AY2: Integer);
|
||||
@ -126,6 +128,8 @@ type
|
||||
procedure SimpleTextOut(AX, AY: Integer; const AText: String); virtual; abstract;
|
||||
public
|
||||
constructor Create;
|
||||
procedure DrawingBegin(const ABoundingBox: TRect); virtual;
|
||||
procedure DrawingEnd; virtual;
|
||||
procedure DrawLineDepth(AX1, AY1, AX2, AY2, ADepth: Integer);
|
||||
procedure DrawLineDepth(const AP1, AP2: TPoint; ADepth: Integer);
|
||||
procedure LineTo(AX, AY: Integer); virtual; abstract;
|
||||
@ -276,6 +280,16 @@ begin
|
||||
FGetFontOrientationFunc := @DummyGetFontOrientationFunc;
|
||||
end;
|
||||
|
||||
procedure TBasicDrawer.DrawingBegin(const ABoundingBox: TRect);
|
||||
begin
|
||||
Unused(ABoundingBox);
|
||||
end;
|
||||
|
||||
procedure TBasicDrawer.DrawingEnd;
|
||||
begin
|
||||
// Empty
|
||||
end;
|
||||
|
||||
procedure TBasicDrawer.DrawLineDepth(AX1, AY1, AX2, AY2, ADepth: Integer);
|
||||
begin
|
||||
DrawLineDepth(Point(AX1, AY1), Point(AX2, AY2), ADepth);
|
||||
|
@ -677,6 +677,7 @@ var
|
||||
legendItems: TChartLegendItems = nil;
|
||||
legendRect: TRect;
|
||||
begin
|
||||
ADrawer.DrawingBegin(ARect);
|
||||
Clear(ADrawer, ARect);
|
||||
|
||||
FClipRect := ARect;
|
||||
@ -719,6 +720,7 @@ begin
|
||||
OnExtentChanged(Self);
|
||||
FPrevLogicalExtent := FLogicalExtent;
|
||||
end;
|
||||
ADrawer.DrawingEnd;
|
||||
end;
|
||||
|
||||
procedure TChart.DrawBackWall(ADrawer: IChartDrawer);
|
||||
|
Loading…
Reference in New Issue
Block a user