Package | com.yworks.canvas.input |
Class | public class TooltipTextProviders |
Inheritance | TooltipTextProviders Object |
MouseHoverInputMode
.
A tooltip text provider function returns a string or null for a given
CanvasComponent
and IPoint
.
See also
Method | Defined By | ||
---|---|---|---|
getGraphItemMapperTextProvider(itemClass:Class, mapperKey:String):Function [static]
Returns a text provider function that queries the mapperRegistry of the
current IGraph for the given mapperKey if an item of
the given itemClass is hit. | TooltipTextProviders | ||
getUserTagTextProvider(itemClass:Class):Function [static]
Returns a text provider function that queries the tag of the
ITagOwner of the hit item if an item of
the given itemClass is hit. | TooltipTextProviders |
getGraphItemMapperTextProvider | () | method |
public static function getGraphItemMapperTextProvider(itemClass:Class, mapperKey:String):Function
Returns a text provider function that queries the mapperRegistry
of the
current IGraph
for the given mapperKey
if an item of
the given itemClass
is hit.
Parameters
itemClass:Class — The item class for which a tooltip should be shown
| |
mapperKey:String — The key for the graph's mapperRegistry which
maps to strings that should be used as tooltips.
|
Function — the text provider function
|
getUserTagTextProvider | () | method |
public static function getUserTagTextProvider(itemClass:Class):Function
Returns a text provider function that queries the tag
of the
ITagOwner
of the hit item if an item of
the given itemClass
is hit.
Parameters
itemClass:Class — The item class for which a tooltip should be shown
|
Function — the text provider function
|
See also