MainRenderer class

Inheritance

Constructors

MainRenderer(Rect mainRect, double maxValue, double minValue, double topPadding, List<MainIndicator> indicatorLi, bool isLine, int fixedLength, KChartStyle chartStyle, KChartColors chartColors, double scaleX, VerticalTextAlignment verticalTextAlignment, double mBottomPadding)

Properties

chartColors KChartColors
final
chartPaint Paint
getter/setter pairinherited
chartRect Rect
getter/setter pairinherited
chartStyle KChartStyle
final
fixedLength int
getter/setter pairinherited
gridPaint Paint
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
indicatorLi List<MainIndicator>
getter/setter pair
isLine bool
getter/setter pair
maxValue double
getter/setter pairinherited
mBottomPadding double
final
mCandleLineWidth double
getter/setter pair
mCandleWidth double
getter/setter pair
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
topPadding double
getter/setter pairinherited
verticalTextAlignment VerticalTextAlignment
final

Methods

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
drawPolyline(double lastPrice, double curPrice, Canvas canvas, double lastX, double curX) → dynamic
drawText(Canvas canvas, CandleEntity data, double x) → void
override
drawVerticalText(dynamic canvas, dynamic textStyle, int gridRows) → void
override
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