Skip to content

Commit 271438c

Browse files
authored
halfhp#39 - FastLineAndPointRenderer will not render vertices in legend items. (halfhp#40)
1 parent ab1ee7d commit 271438c

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

androidplot-core/src/main/java/com/androidplot/xy/FastLineAndPointRenderer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ protected void doDrawLegendIcon(Canvas canvas, RectF rect, Formatter formatter)
116116
if(formatter.hasLinePaint()) {
117117
canvas.drawLine(rect.left, rect.bottom, rect.right, rect.top, formatter.getLinePaint());
118118
}
119+
120+
if(formatter.hasVertexPaint()) {
121+
canvas.drawPoint(rect.centerX(), rect.centerY(), formatter.getVertexPaint());
122+
}
119123
}
120124

121125
/**

docs/release_notes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
For details on what to expect in general when updating to a new version of Androiplot, check out the
33
[versioning doc](versioning.md).
44

5+
# 1.4.3
6+
* (#39) `FastLineAndPointRenderer` now renders vertices for legend items.
7+
58
# 1.4.2
69
* (#32) New step mode: `INCREMENT_BY_FIT`.
710
* (#33) PanZoom support for 'INCREMENT_BY_FIT'.

0 commit comments

Comments
 (0)