GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Documentation update · FlyingAndroid/MPAndroidChart@0f04e9c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • MPChartLib/src/main/java/com/github/mikephil/charting/components
    • IMarker.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎MPChartLib/src/main/java/com/github/mikephil/charting/components/IMarker.java‎

Copy file name to clipboardExpand all lines: MPChartLib/src/main/java/com/github/mikephil/charting/components/IMarker.java
+3-8Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
11
package com.github.mikephil.charting.components;
22

3-
import android.content.Context;
43
import android.graphics.Canvas;
5-
import android.view.LayoutInflater;
6-
import android.view.View;
7-
import android.widget.RelativeLayout;
84

95
import com.github.mikephil.charting.data.Entry;
106
import com.github.mikephil.charting.highlight.Highlight;
11-
import com.github.mikephil.charting.utils.FSize;
127
import com.github.mikephil.charting.utils.MPPointF;
138

149
public interface IMarker {
1510

1611
/**
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.
1813
* By returning x: -(width / 2) you will center the IMarker horizontally.
1914
* By returning y: -(height / 2) you will center the IMarker vertically.
2015
*/
2116
MPPointF getOffset();
2217

2318
/**
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.
2520
* If you have no adjustments to make, return getOffset().
2621
*
2722
* @param posX This is the X position at which the marker wants to be drawn.
@@ -36,7 +31,7 @@ public interface IMarker {
3631
*
3732
* @param e The Entry the IMarker belongs to. This can also be any subclass of Entry, like BarEntry or
3833
* 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
4035
* selected range or stack-index (only stacked bar entries).
4136
*/
4237
void refreshContent(Entry e, Highlight highlight);

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.