Class TDataList

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TDataList = class(TPersistent)

Description

Hierarchy

Overview

Methods

Public constructor create(aowner:TAbstractDiagramModel; aRowNumber: longint; acolor: TColor);
Public procedure assign(list:TDataList);
Public procedure assign(list:TPersistent); override;
Public procedure clear(keepMemory: boolean=false);
Public function count:longint;
Public function addPoint(x,y:float):longint; overload;
Public function addPoint(y:float):longint; overload;
Public function setPoint(j:longint; const x,y:float):integer;
Public procedure removePoint(j:longint);
Public procedure point(i:longint; out x,y: float);

Properties

Published property Color: TColor read FColor write SetColor;
Published property Title: string read Ftitle write Settitle;
Published property Flags: TModelRowFlags read FFlags write SetFlags;
Published property LineStyle: TLineStyle read FLineStyle write SetLineStyle;
Published property PointStyle: TPointStyle read FPointStyle write SetPointStyle;

Description

Methods

Public constructor create(aowner:TAbstractDiagramModel; aRowNumber: longint; acolor: TColor);
 
Public procedure assign(list:TDataList);

assign another list, including colors, etc. (only the owner is excluded)

Public procedure assign(list:TPersistent); override;
 
Public procedure clear(keepMemory: boolean=false);

removes all points, if keepMemory is true, the memory of the points is not freed

Public function count:longint;
 
Public 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)

Public 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

Public 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)

Public procedure removePoint(j:longint);

removes point j

Public procedure point(i:longint; out x,y: float);

returns the data at position i

Properties

Published property Color: TColor read FColor write SetColor;
 
Published property Title: string read Ftitle write Settitle;
 
Published property Flags: TModelRowFlags read FFlags write SetFlags;
 
Published property LineStyle: TLineStyle read FLineStyle write SetLineStyle;
 
Published property PointStyle: TPointStyle read FPointStyle write SetPointStyle;
 

Generated by PasDoc 0.11.0 on 2012-07-31 14:28:32