API / geotoolkit / schematics / tooltip / ComponentNodeTooltip / ComponentNodeTooltip
tooltip.ComponentNodeTooltip.ComponentNodeTooltip
The base abstract class for tooltips to use in ToolTipRegistry. See example of simple tooltip usage in @int/geotoolkit/controls/tools/SimpleToolTip
| Name | Type |
|---|---|
T | extends Node |
↳
ComponentNodeTooltip
Constructors
- [new ComponentNodeTooltip<T>(format)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.schematics.tooltip-1.componentnodetooltip.componentnodetooltip.md#new componentnodetooltip<t>(format))
Methods
Css Properties
| Name | Type | Description |
|---|---|---|
enabled | boolean | Enabled state |
format | ToolTipFormat | Tooltip formaters |
format-visualformat | string | Format of tooltip over visual visual.symbol - visual symbol visual.name - visual name visual.value - visual value visual.unit - visual unit (for curve) visual.columnnumber - column number (for log2d visual) |
radius | number | Radius of selection |
symbolclass | string | Tooltip symbol class |
Constructors
• Protected new ComponentNodeTooltip<T>(format?)
| Name | Type |
|---|---|
T | extends Node<T> |
| Name | Type |
|---|---|
Optional format | ToolTipFormat |
NodeTooltip.constructor
Methods
▸ clone(): NodeTooltip<Node>
Create clone
NodeTooltip<Node>
clone
▸ Protected copyConstructor(src, deepCopy?): ComponentNodeTooltip<T>
Copy constructor function.<br> Function used as part of the cloning mechanism.<br> Implementations should copy the given instance state to this instance.<br>
| Name | Type | Description |
|---|---|---|
src | NodeTooltip<Node> | Source to copy from |
Optional deepCopy | boolean | deep copy |
ComponentNodeTooltip<T>
this
▸ Protected formatSymbol(fillStyle, lineStyle?, symbolClass?): string
format symbol string
| Name | Type | Description |
|---|---|---|
fillStyle | string | ColoredStyle | symbol fill style |
Optional lineStyle | string | ColoredStyle | symbol line style |
Optional symbolClass | string | symbol css class |
string
▸ getClassName(): string
string
▸ getFormat(): string | ToolTipFormatter
return tooltip format options
string | ToolTipFormatter
▸ getProperties(): PropertiesOut
Returns all the properties pertaining to this object
An object containing the properties
▸ getRadius(): number
Returns radius of selection
number
radius of selection
▸ getSymbolClass(): string
return symbol class
string
▸ getTooltip(component, pt, registry?, options?): string
Return formatted string from information which can be collected at specific screen coordinates
| Name | Type | Description |
|---|---|---|
component | T | component node |
pt | Point | point in canvas model limits |
Optional registry | ToolTipRegistry | tool tip registry |
Optional options | Record<string, any> | additional options |
string
▸ hitTest(component, pt, registry?, options?): ToolTipInfo
Return information from component that can be collected at specific screen coordinates
| Name | Type | Description |
|---|---|---|
component | T | component node |
pt | Point | point in canvas model limits |
Optional registry | ToolTipRegistry | tool tip registry |
Optional options | Record<string, any> | additional options |
▸ isEnabled(): boolean
returns enable state
boolean
state
▸ setEnabled(enabled): ComponentNodeTooltip<T>
set enable state
| Name | Type | Description |
|---|---|---|
enabled | boolean | sets the enabled state |
ComponentNodeTooltip<T>
this
▸ setFormat(format): ComponentNodeTooltip<T>
Set tool tip format options
| Name | Type | Description |
|---|---|---|
format | string | ToolTipFormatter | tooltip format options |
ComponentNodeTooltip<T>
▸ setProperties(properties?): ComponentNodeTooltip<T>
Sets all the properties pertaining to this object
| Name | Type | Description |
|---|---|---|
Optional properties | Properties | An object containing the properties to set |
ComponentNodeTooltip<T>
this
▸ setSymbolClass(symbolClass): ComponentNodeTooltip<T>
Set symbol class
| Name | Type | Description |
|---|---|---|
symbolClass | string | tooltip symbol class |
ComponentNodeTooltip<T>
▸ Static getClassName(): string
string