public class Highlight
extends java.lang.Object
| Constructor and Description |
|---|
Highlight(float x,
float y,
float xPx,
float yPx,
int dataSetIndex,
int stackIndex,
YAxis.AxisDependency axis)
Constructor, only used for stacked-barchart.
|
Highlight(float x,
float y,
float xPx,
float yPx,
int dataSetIndex,
YAxis.AxisDependency axis)
constructor
|
Highlight(float x,
float y,
int dataSetIndex) |
Highlight(float x,
float y,
int dataSetIndex,
int dataIndex) |
Highlight(float x,
int dataSetIndex,
int stackIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalTo(Highlight h)
Returns true if this highlight object is equal to the other (compares
xIndex and dataSetIndex)
|
YAxis.AxisDependency |
getAxis()
Returns the axis the highlighted value belongs to.
|
int |
getDataIndex()
the index of the data object - in case it refers to more than one
|
int |
getDataSetIndex()
returns the index of the DataSet the highlighted value is in
|
float |
getDrawX()
Returns the x-position in pixels where this highlight object was last drawn.
|
float |
getDrawY()
Returns the y-position in pixels where this highlight object was last drawn.
|
int |
getStackIndex()
Only needed if a stacked-barchart entry was highlighted.
|
float |
getX()
returns the x-value of the highlighted value
|
float |
getXPx()
returns the x-position of the highlight in pixels
|
float |
getY()
returns the y-value of the highlighted value
|
float |
getYPx()
returns the y-position of the highlight in pixels
|
boolean |
isStacked() |
void |
setDataIndex(int mDataIndex) |
void |
setDraw(float x,
float y)
Sets the x- and y-position (pixels) where this highlight was last drawn.
|
java.lang.String |
toString() |
public Highlight(float x,
float y,
int dataSetIndex,
int dataIndex)
public Highlight(float x,
float y,
int dataSetIndex)
public Highlight(float x,
int dataSetIndex,
int stackIndex)
public Highlight(float x,
float y,
float xPx,
float yPx,
int dataSetIndex,
YAxis.AxisDependency axis)
x - the x-value of the highlighted valuey - the y-value of the highlighted valuedataSetIndex - the index of the DataSet the highlighted value belongs topublic Highlight(float x,
float y,
float xPx,
float yPx,
int dataSetIndex,
int stackIndex,
YAxis.AxisDependency axis)
x - the index of the highlighted value on the x-axisy - the y-value of the highlighted valuedataSetIndex - the index of the DataSet the highlighted value belongs tostackIndex - references which value of a stacked-bar entry has been
selectedpublic float getX()
public float getY()
public float getXPx()
public float getYPx()
public int getDataIndex()
public void setDataIndex(int mDataIndex)
public int getDataSetIndex()
public int getStackIndex()
public boolean isStacked()
public YAxis.AxisDependency getAxis()
public void setDraw(float x,
float y)
x - y - public float getDrawX()
public float getDrawY()
public boolean equalTo(Highlight h)
h - public java.lang.String toString()
toString in class java.lang.Object