DigitMarkerIconPainter class

A specialized painter for rendering digit contract markers on financial charts.

DigitMarkerIconPainter extends the abstract MarkerGroupIconPainter class to provide specific rendering logic for digit-based contracts. Digit contracts are a type of financial contract where the outcome depends on the last digit of the price at a specific time.

This painter visualizes various aspects of digit contracts on the chart, including:

  • The starting point of the contract
  • Individual price ticks with their last digit highlighted
  • The exit/end point of the contract

The painter uses different visual representations for different marker types:

  • Start markers are shown as location pins with optional labels
  • Tick markers are shown as circles with the last digit of the price inside
  • Exit markers are shown as flag icons with the last digit of the price

This class is part of the chart's visualization pipeline and works in conjunction with MarkerGroupPainter to render marker groups on the chart canvas.

Inheritance

Constructors

DigitMarkerIconPainter({int pipSize = 4})
Creates a new DigitMarkerIconPainter instance with the specified precision.

Properties

hashCode int
The hash code for this object.
no setterinherited
pipSize int
The number of decimal places to display for price values.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintCircle(Canvas canvas, Offset center, Offset anchor, MarkerDirection direction, MarkerStyle style) → void
Paint circle
inherited
paintMarker(Canvas canvas, Offset center, Offset anchor, MarkerDirection direction, MarkerStyle style) → void
Paints single marker on the canvas Overrides the parent class method with an empty implementation.
inherited
paintMarkerGroup(Canvas canvas, Size size, ChartTheme theme, MarkerGroup markerGroup, EpochToX epochToX, QuoteToY quoteToY, PainterProps painterProps, AnimationInfo animationInfo) → void
Renders a group of digit contract markers on the chart canvas.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited