drawStyledPoint method
void
drawStyledPoint(
- EdgePoint point,
- EpochToX epochToX,
- QuoteToY quoteToY,
- Canvas canvas,
- DrawingPaintStyle paintStyle,
- LineStyle lineStyle, {
- double radius = pointRadius,
inherited
Draws a trend line point with consistent styling across platforms.
This method provides a standardized way to draw trend line endpoints
using the shared pointRadius constant. It converts the EdgePoint
to screen coordinates and renders a styled circle.
Parameters:
point: The chart coordinate point to drawepochToX: Function to convert epoch to screen X coordinatequoteToY: Function to convert quote to screen Y coordinatecanvas: The canvas to draw onpaintStyle: Drawing paint configurationlineStyle: Line styling configurationradius: Optional custom radius (defaults topointRadius)
Implementation
void drawStyledPoint(
EdgePoint point,
EpochToX epochToX,
QuoteToY quoteToY,
Canvas canvas,
DrawingPaintStyle paintStyle,
LineStyle lineStyle, {
double radius = pointRadius,
}) {
drawPoint(
point,
epochToX,
quoteToY,
canvas,
paintStyle,
lineStyle,
radius: radius,
);
}