TiPlotObject.Layer
TiPlotObject
Specifies the Painting Layer Order of the Plot Object with respect to other
Plot Objects.
property Layer : Integer;
Description
Use Layer to specify the Painting Layer Order of a particular Plot Object with
respect to other Plot Objects. This property only affects those objects that
are displayed in the DataView area such as…
Channel Dataq (which includes Trace Lines, Bars, Fill, and Data Markers)
Limit Lines
Data Cursors
Annotations
Axes in Cartesian
DataView Grid Lines
All objects start with a default Layer of 100. The higher the number, the
higher in the layer order the object will be. For example, an object with a layer
value of 200 will be drawn on top of objects with a layer value of 100.
If objects have the same Layer value, then the following order is used to
resolve the conflict…
Order from bottom to top (e.g. Annotations are on top of Channel Data
Filled Limit Lines (Band, Poly Limits)
DataView Grid Lines
Non-Filled Limit Lines
Y-Axes (Cartesian Only)
X-Axes (Cartesian Only)
Channel Data
Annotations
Note: this orderinghappens to be the original, fixed layering that we had in
previous versions for backward compatibility.
Example
Delphi
//Layering from top to bottom,
//Channel #1, Channel #2, Annotation #2, Channel #3, and Annotation #1
iComponent.Channel[0].Layer := 120;
iComponent.Channel[1].Layer := 110;
iComponent.Channel[2].Layer := 105;
iComponent.Annotation[0].Layer := 104;
iComponent.Annotation[1].Layer := 106;
C++ Builder
//Layering from top to bottom,
//Channel #1, Channel #2, Annotation #2, Channel #3, and Annotation #1
iComponent->Channel[0]->Layer = 120;
iComponent->Channel[1]->Layer = 110;
iComponent->Channel[2]->Layer = 105;
iComponent->Annotation[0]->Layer = 104;
iComponent->Annotation[1]->Layer = 106;
Contents | Index | Previous | Next