-
- All Implemented Interfaces:
-
java.io.Serializable
public final class Highlight implements Serializable
Contains information needed to determine the highlighted value.
-
-
Field Summary
Fields Modifier and Type Field Description private Floatxprivate Floatyprivate FloatxPxprivate FloatyPxprivate IntegerdataIndexprivate final IntegerdataSetIndexprivate IntegerstackIndexprivate YAxis.AxisDependencyaxisprivate FloatdrawXprivate FloatdrawYprivate final BooleanisStacked
-
Constructor Summary
Constructors Constructor Description Highlight(Float x, Float y, Integer dataSetIndex, Integer dataIndex)Highlight(Float x, Float y, Integer dataSetIndex)Highlight(Float x, Integer dataSetIndex, Integer stackIndex)Highlight(Float x, Float y, Float xPx, Float yPx, Integer dataSetIndex, YAxis.AxisDependency axis)constructor Highlight(Float x, Float y, Float xPx, Float yPx, Integer dataSetIndex, Integer stackIndex, YAxis.AxisDependency axis)Constructor, only used for stacked-barchart.
-
Method Summary
Modifier and Type Method Description final FloatgetX()the x-value of the highlighted value final UnitsetX(Float x)final FloatgetY()the y-value of the highlighted value final UnitsetY(Float y)final FloatgetXPx()the x-pixel of the highlight final UnitsetXPx(Float xPx)final FloatgetYPx()the y-pixel of the highlight final UnitsetYPx(Float yPx)final IntegergetDataIndex()the index of the data object - in case it refers to more than one final UnitsetDataIndex(Integer dataIndex)the index of the data object - in case it refers to more than one final IntegergetDataSetIndex()the index of the dataset the highlighted value is in final IntegergetStackIndex()index which value of a stacked bar entry is highlighted, default -1 final UnitsetStackIndex(Integer stackIndex)final YAxis.AxisDependencygetAxis()the axis the highlighted value belongs to final UnitsetAxis(YAxis.AxisDependency axis)final FloatgetDrawX()the x-position (pixels) on which this highlight object was last drawn final UnitsetDrawX(Float drawX)final FloatgetDrawY()the y-position (pixels) on which this highlight object was last drawn final UnitsetDrawY(Float drawY)final BooleangetIsStacked()final UnitsetDraw(Float x, Float y)Sets the x- and y-position (pixels) where this highlight was last drawn. final BooleanequalTo(Highlight h)Returns true if this highlight object is equal to the other (compares xIndex and dataSetIndex) StringtoString()-
-
Constructor Detail
-
Highlight
Highlight(Float x, Float y, Float xPx, Float yPx, Integer dataSetIndex, YAxis.AxisDependency axis)
constructor- Parameters:
x- the x-value of the highlighted valuey- the y-value of the highlighted valuedataSetIndex- the index of the DataSet the highlighted value belongs to
-
Highlight
Highlight(Float x, Float y, Float xPx, Float yPx, Integer dataSetIndex, Integer stackIndex, YAxis.AxisDependency axis)
Constructor, only used for stacked-barchart.- Parameters:
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 selected
-
-
Method Detail
-
getDataIndex
final Integer getDataIndex()
the index of the data object - in case it refers to more than one
-
setDataIndex
final Unit setDataIndex(Integer dataIndex)
the index of the data object - in case it refers to more than one
-
getDataSetIndex
final Integer getDataSetIndex()
the index of the dataset the highlighted value is in
-
getStackIndex
final Integer getStackIndex()
index which value of a stacked bar entry is highlighted, default -1
-
setStackIndex
final Unit setStackIndex(Integer stackIndex)
-
getAxis
final YAxis.AxisDependency getAxis()
the axis the highlighted value belongs to
-
setAxis
final Unit setAxis(YAxis.AxisDependency axis)
-
getDrawX
final Float getDrawX()
the x-position (pixels) on which this highlight object was last drawn
-
getDrawY
final Float getDrawY()
the y-position (pixels) on which this highlight object was last drawn
-
getIsStacked
final Boolean getIsStacked()
-
setDraw
final Unit setDraw(Float x, Float y)
Sets the x- and y-position (pixels) where this highlight was last drawn.
-
equalTo
final Boolean equalTo(Highlight h)
Returns true if this highlight object is equal to the other (compares xIndex and dataSetIndex)
-
-
-
-