public class Highlight
extends java.lang.Object
| Constructor and Description |
|---|
Highlight(int x,
float value,
int dataIndex,
int dataSetIndex)
constructor
|
Highlight(int x,
float value,
int dataIndex,
int dataSetIndex,
int stackIndex)
Constructor, only used for stacked-barchart.
|
Highlight(int x,
float value,
int dataIndex,
int dataSetIndex,
int stackIndex,
Range range)
Constructor, only used for stacked-barchart.
|
Highlight(int x,
int dataSetIndex)
Constructor, only used for stacked-barchart.
|
| 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)
|
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
|
Range |
getRange()
Returns the range of values the selected value of a stacked bar is in.
|
int |
getStackIndex()
Only needed if a stacked-barchart entry was highlighted.
|
float |
getValue()
returns the y-value of the highlighted value
|
int |
getXIndex()
returns the index of the highlighted value on the x-axis
|
java.lang.String |
toString() |
public Highlight(int x,
float value,
int dataIndex,
int dataSetIndex)
x - the index of the highlighted value on the x-axisvalue - the y-value of the highlighted valuedataIndex - the index of the Data the highlighted value belongs todataSetIndex - the index of the DataSet the highlighted value belongs topublic Highlight(int x,
float value,
int dataIndex,
int dataSetIndex,
int stackIndex)
x - the index of the highlighted value on the x-axisvalue - the y-value of the highlighted valuedataIndex - the index of the Data the highlighted value belongs todataSetIndex - the index of the DataSet the highlighted value belongs tostackIndex - references which value of a stacked-bar entry has been
selectedpublic Highlight(int x,
float value,
int dataIndex,
int dataSetIndex,
int stackIndex,
Range range)
x - the index of the highlighted value on the x-axisvalue - the y-value of the highlighted valuedataIndex - the index of the Data the highlighted value belongs todataSetIndex - the index of the DataSet the highlighted value belongs tostackIndex - references which value of a stacked-bar entry has been
selectedrange - the range the selected stack-value is inpublic Highlight(int x,
int dataSetIndex)
x - the index of the highlighted value on the x-axisdataSetIndex - the index of the DataSet the highlighted value belongs topublic int getXIndex()
public float getValue()
public int getDataIndex()
public int getDataSetIndex()
public int getStackIndex()
public Range getRange()
public boolean equalTo(Highlight h)
h - public java.lang.String toString()
toString in class java.lang.Object