|
1 | 1 | package com.github.mikephil.charting.components; |
2 | 2 |
|
3 | | -import android.content.Context; |
4 | 3 | import android.graphics.Canvas; |
5 | | -import android.view.LayoutInflater; |
6 | | -import android.view.View; |
7 | | -import android.widget.RelativeLayout; |
8 | 4 |
|
9 | 5 | import com.github.mikephil.charting.data.Entry; |
10 | 6 | import com.github.mikephil.charting.highlight.Highlight; |
11 | | -import com.github.mikephil.charting.utils.FSize; |
12 | 7 | import com.github.mikephil.charting.utils.MPPointF; |
13 | 8 |
|
14 | 9 | public interface IMarker { |
15 | 10 |
|
16 | 11 | /** |
17 | | - * @return The desired offset you wish the IMarker to have on the x-axis. |
| 12 | + * @return The desired (general) offset you wish the IMarker to have on the x- and y-axis. |
18 | 13 | * By returning x: -(width / 2) you will center the IMarker horizontally. |
19 | 14 | * By returning y: -(height / 2) you will center the IMarker vertically. |
20 | 15 | */ |
21 | 16 | MPPointF getOffset(); |
22 | 17 |
|
23 | 18 | /** |
24 | | - * @return The offset for drawing at the specific `point` |
| 19 | + * @return The offset for drawing at the specific `point`. This allows conditional adjusting of the Marker position. |
25 | 20 | * If you have no adjustments to make, return getOffset(). |
26 | 21 | * |
27 | 22 | * @param posX This is the X position at which the marker wants to be drawn. |
@@ -36,7 +31,7 @@ public interface IMarker { |
36 | 31 | * |
37 | 32 | * @param e The Entry the IMarker belongs to. This can also be any subclass of Entry, like BarEntry or |
38 | 33 | * CandleEntry, simply cast it at runtime. |
39 | | - * @param highlight the highlight object contains information about the highlighted value such as it's dataset-index, the |
| 34 | + * @param highlight The highlight object contains information about the highlighted value such as it's dataset-index, the |
40 | 35 | * selected range or stack-index (only stacked bar entries). |
41 | 36 | */ |
42 | 37 | void refreshContent(Entry e, Highlight highlight); |
|