BarGraphPainter class Null safety

그래프 페인터 yLabel은 bar_graph_ylabel_painter.dart에서 별도로 그립니다.

Inheritance
Implementers

Constructors

BarGraphPainter({List<BarDataDay>? barItemsDay, bool isBiDirectional = false, double barWidth = 20.0, int hourCntInDay = 1, bool isGroupAvg = true, bool yLabelVisible = false, bool horizontalLineVisible = true, Cow? cow})

Properties

barHeightRatio double
read / write
barItemsDay List<BarDataDay>?
그래프 데이터
read / write
barPaint Paint
final
barPaintDark Paint
final
barPaintHighlight Paint
final
barPaintLight Paint
final
barPaintSit Paint
final
barPaintSitHighlight Paint
final
barPaintStand Paint
final
barPaintStandHighlight Paint
final
barSpace double
바 간 간격
read / write
barStartOffsetX double
첫 바의 시작 오프셋 X
read / write
barWidth double
바의 넓이
read / write
baseOffsetY double
read / write
cow Cow?
일령을 계산하기 위해 소정보를 담습니다.
read / write
current Offset
read / write
dotPaint1 Paint
final
dotPaint2 Paint
final
dotPaint3 Paint
final
hashCode int
The hash code for this object. [...]
read-only, inherited
horizontalLineDashSpace double
가로선의 점선간격
read / write
horizontalLineDashWidth double
가로선의 점선넓이
read / write
horizontalLineHeight double
가로선의 높이
read / write
horizontalLinePaint Paint
read / write
horizontalLineVisible bool
가로선을 보여줄것인지
read / write
hourCntInDay int
하루에 몇시간이 존재하는지, 일별 그래프면 1개, 시간별 그래프면 24개
read / write
isAvgLineVisible bool
read / write
isBiDirectional bool
앉기/서기 그래프의 경우 가운데 축을 기준으로 위아래로 표현합니다.
read / write
isGroupAvg bool
쓰지않음
read / write
isNightVisible bool
read / write
isRangeVisible bool
read / write
lineDotPaint Paint
final
linePaint Paint
final
maxBarHeight double
read / write
next Offset
read / write
nightPaint Paint
final
offset Offset
read / write
prev Offset
read / write
rangePaint Paint
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
semanticsBuilder SemanticsBuilderCallback?
Returns a function that builds semantic information for the picture drawn by this painter. [...]
read-only, inherited
smoothness double
read / write
temp Offset
read / write
xLabelBirthDayMargin double
x축 일령라벨 텍스트와 그래프간 간격
read / write
xLabelBirthDaySize double
x축 일령라벨 텍스트의 사이즈
read / write
xLabelBirthDayVisible bool
x축 일령라벨 텍스트를 보여줄것인지
read / write
xLabelDayMargin double
x축 날짜라벨 텍스트와 그래프간 간격
read / write
xLabelDaySize double
x축 날짜라벨 텍스트의 크기
read / write
xLabelDayVisible bool
x축 날짜라벨 텍스트를 보여줄것인지
read / write
xLabelHourMargin double
x축 시간라벨 텍스트와 그래프간 간격
read / write
xLabelHourSize double
x축 시간라벨 텍스트의 크기
read / write
xLabelHourVisible bool
x축 시간라벨 텍스트를 보여줄것인지
read / write
xLabelValueMargin double
바와 값텍스트의 간격
read / write
xLabelValueSize double
바 위에 표시되는 값텍스트의 사이즈
read / write
xLabelValueVisible bool
값텍스트를 보여줄것인지
read / write
yLabelCount int
y축 라벨의 개수
read / write
yLabelMargin double
y축 라벨과 그래프간 간격
read / write
yLabelSize double
y축 라벨의 크기
read / write
yLabelVisible bool
y축 라벨을 보여줄것인지
read / write
yLabelWidth double
y축 라벨의 가로넓이
read / write
yMaxVal double
y축 최대값, 그래프 값에 따라 동적으로 변경됩니다.
read / write
yMinVal double
y축 최소값, 그래프 값에 따라 동적으로 변경됩니다.
read / write
ySectionHeight double
read / write
yTopMargin double
y축 상단 여백
read / write

Methods

addListener(VoidCallback listener) → void
Register a closure to be notified when it is time to repaint. [...]
inherited
drawAvgLine(Canvas canvas, Size size, bool isBottom) → void
평균선을 그립니다.
drawBar(Canvas canvas, Size size, List<BarDataHour?> barDataHour, double offsetDx, int i) List
바를 그립니다.
drawHorizontalLine(Canvas canvas, double offsetDx, double yCenter) → void
가로선을 그립니다.
drawRangePath(Canvas canvas, Size size, bool isBottom) → void
범위(밴드)를 표시하는 그래프를 그립니다.
drawXLabelBirthDay(Canvas canvas, Size size, Offset barCenter, String label, String dayLabel) → void
x축 일령라벨을 그립니다.
drawXLabelDay(Canvas canvas, Size size, Offset barCenter, String label, String dayLabel, int k) → void
x축 날짜라벨을 그립니다.
drawXLabelHour(Canvas canvas, Size size, Offset barCenter, String label, String dayLabel) → void
x축 시간라벨을 그립니다.
drawXLabelValue(Canvas canvas, Size size, String valueLabel, String valueBottomLabel, Offset barCenter, double barHeight, double barHeightBottom) → void
x축 라벨을 그립니다.
drawYLabel(Canvas canvas, Size size, int k) → void
y축 라벨을 그립니다.
hitTest(Offset position) bool?
Called whenever a hit test is being performed on an object that is using this custom paint delegate. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
paint(Canvas canvas, Size size) → void
Called whenever the object needs to paint. The given Canvas has its coordinate space configured such that the origin is at the top left of the box. The area of the box is the size of the size argument. [...]
override
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies when it is time to repaint. [...]
inherited
shouldRebuildSemantics(covariant CustomPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former). [...]
inherited
shouldRepaint(covariant BarGraphPainter oldDelegate) bool
Called whenever a new instance of the custom painter delegate class is provided to the RenderCustomPaint object, or any time that a new CustomPaint object is created with a new instance of the custom painter delegate class (which amounts to the same thing, because the latter is implemented in terms of the former). [...]
override
toString() String
A string representation of this object. [...]
inherited

Operators

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