TRVReportColoredShapeVisualizer

Properties

Top  Previous  Next

TRVReportColoredShapeVisualizer visualizes numeric values by applying color and rotation to a shape.

Unit RVReportValueVisualizer;

Syntax

TRVReportColoredShapeVisualizer = class (TRVReportCustomShapeVisualizer)

hmtoggle_arrow1Hierarchy

Description

The shape is defined in ShapeProperties.

A color and a rotation angle of this shape depend on the visualized value. The visualizer searches in ConditionalShapeProperties for the item corresponding to the visualized value. If none of the items corresponds to the visualized value (it may happen for low values), the default color and rotation angle is used.

Shape size may be limited by MaxSize.

By default, the shape is inscribed in a square. You can stretch it by changing ShapeScaleX.

Examples

Example 1: ShapeProperties.Shape = rvrshArrow1, ShapeProperties.StartAngle = 180, angles in ConditionalShapeProperties are from -60 to -180 (so arrows are rotated by 180°, 120°, 60°, 0°), Gradient = False

SCVis_Arrows

Example 2: The same settings, Gradient = True

SCVis_GradientArrows

Example 3: ShapeProperties.Shape = rvrshCircle, LineUsesFillColor = False, LineColor = clSilver

SCVis_TrafficLight

Example 4: ShapeProperties.Shape = rvrshBluntPointStar, ShapeProperties.PointCount = 8, Gradient = False

SCVis_BPStar

Note: in all these examples, a visualized value is increased from left to right. The leftmost shape is drawn using Color and ShapeProperties.StartAngle. Colors and rotations of other shapes are defined in ConditionalShapeProperties

See also

TRVReportTableItemInfo.BackgroundVisualizers


Report Workshop © trichview.com