public class Highlight
extends java.lang.Object
| Constructor and Description |
|---|
Highlight(int x,
int dataSet)
constructor
|
Highlight(int x,
int dataSet,
int stackIndex)
Constructor, only used for stacked-barchart.
|
Highlight(int x,
int dataSet,
int stackIndex,
Range range)
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 |
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.
|
int |
getXIndex()
returns the index of the highlighted value on the x-axis
|
java.lang.String |
toString() |
public Highlight(int x,
int dataSet)
x - the index of the highlighted value on the x-axisdataSet - the index of the DataSet the highlighted value belongs topublic Highlight(int x,
int dataSet,
int stackIndex)
x - the index of the highlighted value on the x-axisdataSet - the index of the DataSet the highlighted value belongs tostackIndex - references which value of a stacked-bar entry has been
selectedpublic Highlight(int x,
int dataSet,
int stackIndex,
Range range)
x - the index of the highlighted value on the x-axisdataSet - 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 int getDataSetIndex()
public int getXIndex()
public int getStackIndex()
public Range getRange()
public boolean equalTo(Highlight h)
h - public java.lang.String toString()
toString in class java.lang.Object