YOUSEFUL / DELPHI / COMPONENTS
TAtlasBoxPart
The part of a box plot a hit test found.
Description
The Part of a TAtlasBoxHit. Outliers are drawn over boxes and boxes over whiskers, and hit testing checks them in that order.
Members
| Member | Kind | What it does |
|---|---|---|
bpNone | value | Ordinal 0. |
bpBox | value | Ordinal 1. |
bpWhisker | value | Ordinal 2. |
bpOutlier | value | Ordinal 3. |
Values
bpNone value
bpNoneOrdinal 0. Nothing at that point, or no render yet.
bpBox value
bpBoxOrdinal 1. The box between the quartiles, median line included.
bpWhisker value
bpWhiskerOrdinal 2. The whisker line or its caps, outside the box.
bpOutlier value
bpOutlierOrdinal 3. An outlier circle; Outlier holds its index.
Examples
Ignore everything but outliers
Tests the part of a hit.
uses
Atlas.BoxPlot;
function IsOutlierAt(Box: TAtlasBoxPlot; X, Y: Integer): Boolean;
begin
Result := Box.HitTest(X, Y).Part = bpOutlier;
end;