MainRenderer class

Inheritance

Constructors

MainRenderer({required MainRendererStyle style, required Rect chartRect, required double maxValue, required double minValue, MainState state = MainState.NONE, bool isLine = false, required double scaleX, List<int> maDayList = const [5, 10, 20], String dataFormat(double value)?})

Properties

chartPaint Paint
getter/setter pairinherited
chartRect Rect
getter/setter pairinherited
dataFormat String Function(double value)?
finalinherited
gridPaint Paint
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
isLine bool
final
maDayList List<int>
getter/setter pair
maxValue double
getter/setter pairinherited
minValue double
getter/setter pairinherited
mLineFillPaint Paint
getter/setter pair
mLineFillPath Path?
getter/setter pair
mLineFillShader Shader?
getter/setter pair
mLinePaint Paint
getter/setter pair
mLinePath Path?
getter/setter pair
mLineStrokeWidth double
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleX double
getter/setter pair
scaleY double
getter/setter pairinherited
state MainState
final
style MainRendererStyle
final

Methods

drawBollLine(CandleEntity lastPoint, CandleEntity curPoint, Canvas canvas, double lastX, double curX) → void
drawCandle(CandleEntity curPoint, Canvas canvas, double curX) → void
drawChart(CandleEntity lastPoint, CandleEntity curPoint, double lastX, double curX, Size size, Canvas canvas) → void
override
drawGrid(Canvas canvas, int gridRows, int gridColumns) → void
override
drawLine(double? lastPrice, double? curPrice, Canvas canvas, double lastX, double curX, Color color) → void
inherited
drawMaLine(CandleEntity lastPoint, CandleEntity curPoint, Canvas canvas, double lastX, double curX) → void
drawPolyLine(double lastPrice, double curPrice, Canvas canvas, double lastX, double curX) → void
drawText(Canvas canvas, CandleEntity data, double x) → void
override
drawVerticalText(dynamic canvas, dynamic textStyle, int gridRows) → void
override
format(double? n) String
inherited
getTextStyle(Color color) TextStyle
inherited
getY(double y) double
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateTrendLineData() → void

Operators

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