Roadmap Tutorial API's: XYGraph Axes etc Series Stats
TxyHolder Reference
TxyHolder acts as a central data repository for multiple
series of mulitple graphs. Data is stored internally as a
TStringlist in delimited Text format
Admin
- ID:string
the name that series identify the xyHolder by
- Textseparators:string
separators recognised when exchanging with a TStringGrid
and the clipboard. The first will be used when writing to
the clipboard. T is internally translated to a tab
character. Default is tab and comma
- TextMarkers:string
wrapping characters recognised when exchanging with a
TStringGrid and the clipboard. The first will be used
when writing to the clipboard. default is ' and "
- data:TStringList handle to data
- property OnChange:TNotifyEvent read FOnChange write
FOnChange;
event called whenever the data is changed
Getting Data
- procedure WriteToFile(const filename:string);
- procedure WriteToStream(stream:TStream);
- procedure WriteToStringGrid(sgrid:TStringgrid);
See below for details
- procedure CopytoClipboard;
OK for exchange with Excel
Setting Data
- procedure Clear;
- procedure ReadFromFile(const filename:string);
- procedure ReadFromStream(stream:TStream);
- procedure ReadFromStringGrid(sgrid:TStringGrid);
- procedure PasteFromClipboard;
StringGrid Layout Control
- property XPaddingPolicy:TPaddingPolicy read
FXPaddingPolicy write FXPaddingPolicy;
- property YPaddingPolicy:TPaddingPolicy read
FYPaddingPolicy write FYPaddingPolicy;
- property XPadCount:integer read FXPadCount write
FXPadCount;
- property YPadCount:integer read FYPadCount write
FYPadCount;
When the data is written to a stringgrid, these properties
control how many empty lines and columns are created around the
data. If the Padding Policy is set to ppTotal then the row/column
count will be increased to PadCount if required. If the policy is
ppExtra then PadCount rows/columns will be added.