public interface TooltipAdapter
Modifier and Type | Method and Description |
---|---|
boolean |
alignTooltipVertically()
States whether the tooltip should be placed vertically or horizontally to the currently selected target.
|
RectF |
availableLayoutSlot()
The currently available layout slot in which the tooltip should fit.
|
TooltipContentAdapter |
contentAdapter()
Provides a content adapter for the current tooltip instance.
|
RadRect |
getPlotAreaClip()
Gets the clip of the current plot area.
|
Object[] |
getTooltipData(Object context)
Gets the data for the tooltip using the passed context.
|
Point |
rawOffset()
The offset from the touch event according to the current target view instance and the world coordinates of the same touch event.
|
void |
setContentAdapter(TooltipContentAdapter adapter) |
Point rawOffset()
RectF availableLayoutSlot()
boolean alignTooltipVertically()
true
to place it above or bellow with above being the first choice, false
to place it left or right with right being the first choice.Object[] getTooltipData(Object context)
context
- context used to extract the data for the current tooltip.RadRect getPlotAreaClip()
TooltipContentAdapter contentAdapter()
TooltipContentAdapter
void setContentAdapter(TooltipContentAdapter adapter)