Description | Hierarchy | Fields | Methods | Properties |
type TDataList = class(TPersistent)
constructor create(aowner:TAbstractDiagramModel; aRowNumber: longint; acolor: TColor); |
|
procedure assign(list:TDataList); |
|
procedure assign(list:TPersistent); override; |
|
procedure clear(keepMemory: boolean=false); |
|
function count:longint; |
|
function addPoint(x,y:float):longint; overload; |
|
function addPoint(y:float):longint; overload; |
|
function setPoint(j:longint; const x,y:float):integer; |
|
procedure removePoint(j:longint); |
|
procedure point(i:longint; out x,y: float); |
property Color: TColor read FColor write SetColor; |
|
property Title: string read Ftitle write Settitle; |
|
property Flags: TModelRowFlags read FFlags write SetFlags; |
|
property LineStyle: TLineStyle read FLineStyle write SetLineStyle; |
|
property PointStyle: TPointStyle read FPointStyle write SetPointStyle; |
constructor create(aowner:TAbstractDiagramModel; aRowNumber: longint; acolor: TColor); |
|
procedure assign(list:TDataList); |
|
assign another list, including colors, etc. (only the owner is excluded) |
procedure assign(list:TPersistent); override; |
|
procedure clear(keepMemory: boolean=false); |
|
removes all points, if keepMemory is true, the memory of the points is not freed |
function count:longint; |
|
function addPoint(x,y:float):longint; overload; |
|
adds a point at position (x,y) in the sorted list, removing duplicates on same x. (possible moving all existing points => O(1) if called in right order, O(n) if the inserted point belongs to the beginnning). It does use an intelligent growth strategy (size *2 if < 512, size+=512 otherwise, starting at 8) |
function addPoint(y:float):longint; overload; |
|
adds a point at position (x+1,y) in the sorted list. (possible moving all existing points). It does use an intelligent growth strategy |
function setPoint(j:longint; const x,y:float):integer; |
|
sets the point j to the position x,y; reorders point if necessary (possible moving the point j to another index) (can change minY, maxY) |
procedure removePoint(j:longint); |
|
removes point j |
procedure point(i:longint; out x,y: float); |
|
returns the data at position i |
property Color: TColor read FColor write SetColor; |
|
property Title: string read Ftitle write Settitle; |
|
property Flags: TModelRowFlags read FFlags write SetFlags; |
|
property LineStyle: TLineStyle read FLineStyle write SetLineStyle; |
|
property PointStyle: TPointStyle read FPointStyle write SetPointStyle; |
|