Skip to content

Commit 83e8ea7

Browse files
authored
Merge pull request #348 from AppDevNext/RendererKotlin
Renderer kotlin
2 parents b6e15b5 + 5be81b9 commit 83e8ea7

File tree

7 files changed

+498
-538
lines changed

7 files changed

+498
-538
lines changed

MPChartLib/src/main/java/com/github/mikephil/charting/renderer/DataRenderer.java

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,7 @@ protected boolean isDrawingValuesAllowed(ChartInterface chart) {
7272
}
7373

7474
/**
75-
* Returns the Paint object this renderer uses for drawing the values
76-
* (value-text).
77-
*
78-
* @return
75+
* Returns the Paint object this renderer uses for drawing the values (value-text).
7976
*/
8077
public Paint getPaintValues() {
8178
return mValuePaint;
@@ -84,17 +81,13 @@ public Paint getPaintValues() {
8481
/**
8582
* Returns the Paint object this renderer uses for drawing highlight
8683
* indicators.
87-
*
88-
* @return
8984
*/
9085
public Paint getPaintHighlight() {
9186
return highlightPaint;
9287
}
9388

9489
/**
9590
* Returns the Paint object used for rendering.
96-
*
97-
* @return
9891
*/
9992
public Paint getPaintRender() {
10093
return renderPaint;
@@ -103,8 +96,6 @@ public Paint getPaintRender() {
10396
/**
10497
* Applies the required styling (provided by the DataSet) to the value-paint
10598
* object.
106-
*
107-
* @param set
10899
*/
109100
protected void applyValueTextStyle(IDataSet set) {
110101

@@ -121,15 +112,11 @@ protected void applyValueTextStyle(IDataSet set) {
121112

122113
/**
123114
* Draws the actual data in form of lines, bars, ... depending on Renderer subclass.
124-
*
125-
* @param c
126115
*/
127116
public abstract void drawData(Canvas c);
128117

129118
/**
130119
* Loops over all Entrys and draws their values.
131-
*
132-
* @param c
133120
*/
134121
public abstract void drawValues(Canvas c);
135122

@@ -143,7 +130,6 @@ protected void applyValueTextStyle(IDataSet set) {
143130
* @param dataSetIndex the index of the DataSet the drawn Entry belongs to
144131
* @param x position
145132
* @param y position
146-
* @param color
147133
*/
148134
public void drawValue(Canvas c, IValueFormatter formatter, float value, Entry entry, int dataSetIndex, float x, float y, int color) {
149135
mValuePaint.setColor(color);
@@ -152,15 +138,11 @@ public void drawValue(Canvas c, IValueFormatter formatter, float value, Entry en
152138

153139
/**
154140
* Draws any kind of additional information (e.g. line-circles).
155-
*
156-
* @param c
157141
*/
158142
public abstract void drawExtras(Canvas c);
159143

160144
/**
161145
* Draws all highlight indicators for the values that are currently highlighted.
162-
*
163-
* @param c
164146
* @param indices the highlighted values
165147
*/
166148
public abstract void drawHighlighted(Canvas c, Highlight[] indices);

0 commit comments

Comments
 (0)