MainRenderer class
- Inheritance
-
- Object
- BaseChartRenderer<
CandleEntity> - MainRenderer
Constructors
-
MainRenderer(Rect mainRect, double maxValue, double minValue, double topPadding, MainState state, bool isLine, int fixedLength, ChartStyle chartStyle, ChartColors chartColors, double scaleX, VerticalTextAlignment verticalTextAlignment, [List<
int> maDayList = const [5, 10, 20]])
Properties
- chartColors → ChartColors
-
final
- chartPaint ↔ Paint
-
getter/setter pairinherited
- chartRect ↔ Rect
-
getter/setter pairinherited
- chartStyle → ChartStyle
-
final
- fixedLength ↔ int
-
getter/setter pairinherited
- gridPaint ↔ Paint
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLine ↔ bool
-
getter/setter pair
-
maDayList
↔ List<
int> -
getter/setter pair
- maxValue ↔ double
-
getter/setter pairinherited
- 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
- state ↔ MainState
-
getter/setter pair
- topPadding ↔ double
-
getter/setter pairinherited
- verticalTextAlignment → VerticalTextAlignment
-
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) → dynamic -
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