Description | Hierarchy | Fields | Methods | Properties |
type TDiagramDrawer = class(TPersistent)
This class draws the data model into a TBitmap
![]() |
constructor create; |
![]() |
function update(): TBitmap; |
![]() |
destructor destroy; override; |
![]() |
procedure SetModel(amodel: TAbstractDiagramModel; takeOwnership: boolean); overload; |
![]() |
function posToDataX(x: longint): float; |
![]() |
function posToDataY(y: longint): float; |
![]() |
function dataToPosX(const x: float): integer; |
![]() |
function dataToPosY(const y: float): integer; |
![]() |
function pixelSizeX: float; |
![]() |
function pixelSizeY: float; |
![]() |
property Diagram: TBitmap read FDiagram; |
![]() |
property valueAreaX: longint read fvalueAreaX; |
![]() |
property ValueAreaY: longint read fvalueAreaY; |
![]() |
property ValueAreaWidth: longint read FValueAreaWidth; |
![]() |
property ValueAreaHeight: longint read FValueAreaHeight; |
![]() |
property ValueAreaRight: longint read FValueAreaRight; |
![]() |
property ValueAreaBottom: longint read FValueAreaBottom; |
![]() |
property RangeMinX: float read FRangeMinX write SetRangeMinX; |
![]() |
property RangeMaxX: float read FRangeMaxX write SetRangeMaxX; |
![]() |
property RangeMinY: float read FRangeMinY write SetRangeMinY; |
![]() |
property RangeMaxY: float read FRangeMaxY write SetRangeMaxY; |
![]() |
property AutoSetRangeX: boolean read FAutoSetRangeX write SetAutoSetRangeX; |
![]() |
property AutoSetRangeY: boolean read FAutoSetRangeY write SetAutoSetRangeY; |
![]() |
property legend: TLegend read Flegend; |
![]() |
property LeftAxis: TAxis read FLAxis; |
![]() |
property RightAxis: TAxis read FRAxis; |
![]() |
property TopAxis: TAxis read FTAxis; |
![]() |
property BottomAxis: TAxis read FBAxis; |
![]() |
property HorzMidAxis: TAxis read FXMAxis; |
![]() |
property VertMidAxis: TAxis read FYMAxis; |
![]() |
property LineStyle: TLineStyle read FLineStyle write SetLineStyle; |
![]() |
property PointStyle: TPointStyle read FPointStyle write SetPointStyle; |
![]() |
property PointSize: longint read FPointSize write SetPointSize; |
![]() |
property FillGradient: TFillGradientFlags read FFillGradient write SetFillGradient ; |
![]() |
property FillStyle: TDiagramFillStyle read FFillStyle write SetFillStyle; |
![]() |
property Model: TAbstractDiagramModel read FModel write SetModel; |
![]() |
property BackColor: TColor read FBackColor write SetBackColor; |
![]() |
property DataBackColor: TColor read FDataBackColor write SetDataBackColor; |
![]() |
property ClipValues: TClipValues read FClipValues write SetClipValues; |
![]() |
constructor create; |
![]() |
function update(): TBitmap; |
Redraws the bitmap and returns it (and updates the Diagram property) |
![]() |
destructor destroy; override; |
![]() |
procedure SetModel(amodel: TAbstractDiagramModel; takeOwnership: boolean); overload; |
Sets the model to be drawn, if takeOwnership is true, then the model is freed automatically by the drawer, otherwise you have to free it yourself |
![]() |
function posToDataX(x: longint): float; |
Translate a pixel position in the bitmap to the coordinates used by the model |
![]() |
function posToDataY(y: longint): float; |
Translate a pixel position in the bitmap to the coordinates used by the model |
![]() |
function dataToPosX(const x: float): integer; |
Translate model coordinates to the corresponding pixel in the bitmap (rounds) |
![]() |
function dataToPosY(const y: float): integer; |
Translate model coordinates to the corresponding pixel in the bitmap (rounds) |
![]() |
function pixelSizeX: float; |
Returns the width of one output pixel in data coordinates |
![]() |
function pixelSizeY: float; |
Returns the height of one output pixel in data coordinates |
![]() |
property Diagram: TBitmap read FDiagram; |
Last drawn bitmap |
![]() |
property valueAreaX: longint read fvalueAreaX; |
![]() |
property ValueAreaY: longint read fvalueAreaY; |
![]() |
property ValueAreaWidth: longint read FValueAreaWidth; |
![]() |
property ValueAreaHeight: longint read FValueAreaHeight; |
![]() |
property ValueAreaRight: longint read FValueAreaRight; |
![]() |
property ValueAreaBottom: longint read FValueAreaBottom; |
![]() |
property RangeMinX: float read FRangeMinX write SetRangeMinX; |
![]() |
property RangeMaxX: float read FRangeMaxX write SetRangeMaxX; |
![]() |
property RangeMinY: float read FRangeMinY write SetRangeMinY; |
![]() |
property RangeMaxY: float read FRangeMaxY write SetRangeMaxY; |
![]() |
property AutoSetRangeX: boolean read FAutoSetRangeX write SetAutoSetRangeX; |
![]() |
property AutoSetRangeY: boolean read FAutoSetRangeY write SetAutoSetRangeY; |
![]() |
property legend: TLegend read Flegend; |
Class for |
![]() |
property LeftAxis: TAxis read FLAxis; |
Axis left from the value area |
![]() |
property RightAxis: TAxis read FRAxis; |
Axis right to the value area |
![]() |
property TopAxis: TAxis read FTAxis; |
Axis over the value area |
![]() |
property BottomAxis: TAxis read FBAxis; |
Axis below the value area |
![]() |
property HorzMidAxis: TAxis read FXMAxis; |
Axis from the left to the right side in the vertical mid of the value area (like the x-axis in an plot) |
![]() |
property VertMidAxis: TAxis read FYMAxis; |
Axis from the top to the bottom side in the horizontal mid of the value area (like the x-axis in an plot) |
![]() |
property LineStyle: TLineStyle read FLineStyle write SetLineStyle; |
Line style used to draw the lines (can be overridden by the model) |
![]() |
property PointStyle: TPointStyle read FPointStyle write SetPointStyle; |
Point style used to draw points (can be overridden by the model) |
![]() |
property PointSize: longint read FPointSize write SetPointSize; |
![]() |
property FillGradient: TFillGradientFlags read FFillGradient write SetFillGradient ; |
![]() |
property FillStyle: TDiagramFillStyle read FFillStyle write SetFillStyle; |
![]() |
property Model: TAbstractDiagramModel read FModel write SetModel; |
![]() |
property BackColor: TColor read FBackColor write SetBackColor; |
Background color around the value area |
![]() |
property DataBackColor: TColor read FDataBackColor write SetDataBackColor; |
Background color of the value area |
![]() |
property ClipValues: TClipValues read FClipValues write SetClipValues; |