MainRenderer class

Inheritance

Constructors

MainRenderer(Rect mainRect, double maxValue, double minValue, double topPadding, MainState state, bool isLine, int fixedLength, {List<int> maDayList = const [5, 10, 20], String fontFamily, List<Color> bgColor})

Properties

backgroundPaint Paint
read / writeinherited
bgColor List<Color>
finalinherited
chartPaint Paint
read / writeinherited
chartRect Rect
read / writeinherited
fixedLength int
read / writeinherited
fontFamily String
finalinherited
gridPaint Paint
read / writeinherited
hashCode int
The hash code for this object.
read-onlyinherited
isLine bool
read / write
maDayList List<int>
read / write
maxValue double
read / writeinherited
mCandleLineWidth double
read / write
mCandleWidth double
read / write
minValue double
read / writeinherited
mLineFillPaint Paint
read / write
mLineFillPath Path
read / write
mLineFillShader Shader
read / write
mLinePaint Paint
read / write
mLinePath Path
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scaleY double
read / writeinherited
state MainState
read / write
topPadding double
read / writeinherited

Methods

drawBollLine(CandleEntity from, CandleEntity to, Canvas canvas, double fromX, double toX) → 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
drawPath(List<double> prices, List<double> xs, Canvas canvas, Color color) → void
inherited
drawPolyline(double lastPrice, double curPrice, Canvas canvas, double lastX, double curX) → dynamic
drawRightText(Canvas canvas, Size size, dynamic textStyle, int gridRows) → void
override
drawText(Canvas canvas, CandleEntity data, double x) → void
override
format(double n) String
inherited
getTextStyle(Color color, {bool bold = false, bool light = false}) TextStyle
inherited
getTextStyleBold(Color color) TextStyle
inherited
getTextStyleLight(Color color) TextStyle
inherited
getY(double y) double
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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