HierarchyToolState
geovisto-map / HierarchyToolState
Class: HierarchyToolState
State of hierarchy tool
Authorβ
VojtΔch MalΓ½
Authorβ
Jiri Hynek
Extendsβ
Implementsβ
Constructorsβ
new HierarchyToolState()β
new HierarchyToolState(
tool
):HierarchyToolState
Parametersβ
β’ tool: IHierarchyTool
\<IMapToolProps
, IHierarchyToolDefaults
, IHierarchyToolState
\<IMapToolProps
, IHierarchyToolDefaults
, IHierarchyToolConfig
>, IHierarchyToolConfig
, IMapToolInitProps
\<IHierarchyToolConfig
>>
Returnsβ
Overridesβ
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyToolState.ts:24
Propertiesβ
hierarchiesβ
private
hierarchies:IHierarchyConfig
[]
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyToolState.ts:22
Methodsβ
deserialize()β
deserialize(
config
):void
The metod takes config and deserializes the values.
Parametersβ
β’ config: IHierarchyToolConfig
Returnsβ
void
Implementation ofβ
IHierarchyToolState
.deserialize
Overridesβ
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyToolState.ts:35
getHierarchies()β
getHierarchies():
IHierarchyConfig
[]
It returns the list of hierarchy specififactions.
Returnsβ
Implementation ofβ
IHierarchyToolState
.getHierarchies
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyToolState.ts:54
getIcon()β
getIcon():
string
It returns the icon property of the tool state.
Returnsβ
string
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:120
getId()β
getId():
string
It returns the id property of the tool state.
Returnsβ
string
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/object/MapObjectState.ts:87
getLabel()β
getLabel():
string
It returns the label property of the tool state.
Returnsβ
string
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:104
getMap()β
getMap():
IMap
\<IMapProps
,IMapDefaults
,IMapState
\<IMapProps
,IMapDefaults
,IMapConfig
>,IMapConfig
,IMapInitProps
\<IMapConfig
>>
It returns the map property of the tool state.
Returnsβ
IMap
\<IMapProps
, IMapDefaults
, IMapState
\<IMapProps
, IMapDefaults
, IMapConfig
>, IMapConfig
, IMapInitProps
\<IMapConfig
>>
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:136
getMapObject()β
protected
getMapObject():IMapObject
\<IMapObjectProps
,IMapObjectDefaults
\<IMapObjectProps
,IMapObjectConfig
>,IMapObjectState
\<IMapObjectProps
,IMapObjectDefaults
\<IMapObjectProps
,IMapObjectConfig
>,IMapObjectConfig
,IMapObjectInitProps
\<IMapObjectConfig
>>,IMapObjectConfig
,IMapObjectInitProps
\<IMapObjectConfig
>>
It makes the map object visible to extended classes.
Returnsβ
IMapObject
\<IMapObjectProps
, IMapObjectDefaults
\<IMapObjectProps
, IMapObjectConfig
>, IMapObjectState
\<IMapObjectProps
, IMapObjectDefaults
\<IMapObjectProps
, IMapObjectConfig
>, IMapObjectConfig
, IMapObjectInitProps
\<IMapObjectConfig
>>, IMapObjectConfig
, IMapObjectInitProps
\<IMapObjectConfig
>>
Inherited fromβ
Sourceβ
model/internal/object/MapObjectState.ts:39
getType()β
getType():
string
It returns the type property of the tool state.
Returnsβ
string
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/object/MapObjectState.ts:80
initialize()β
initialize(
defaults
,props
,initProps
):void
It resets the state with respect to the initial props.
Parametersβ
β’ defaults: IHierarchyToolDefaults
β’ props: IMapToolProps
β’ initProps: IMapToolInitProps
\<IMapToolProps
>
Returnsβ
void
Implementation ofβ
IHierarchyToolState
.initialize
Overridesβ
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyToolState.ts:28
isEnabled()β
isEnabled():
boolean
It returns the enabled property of the tool state.
Returnsβ
boolean
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:88
serialize()β
serialize(
defaults
):IMapToolConfig
The method serializes the map object state. Optionally, a serialized value can be let undefined if it equals the default value.
Parametersβ
β’ defaults: undefined
| IMapToolDefaults
Returnsβ
Implementation ofβ
Overridesβ
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyToolState.ts:43
setEnabled()β
setEnabled(
enabled
):void
It sets the enabled property of tool state.
Parametersβ
β’ enabled: boolean
Returnsβ
void
Implementation ofβ
IHierarchyToolState
.setEnabled
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:97
setHierarchies()β
setHierarchies(
hierachies
):void
It sets the list of hierarchy specififactions.
Parametersβ
β’ hierachies: IHierarchyConfig
[]
Returnsβ
void
Implementation ofβ
IHierarchyToolState
.setHierarchies
Sourceβ
tools/hierarchy/model/internal/tool/HierarchyToolState.ts:63
setIcon()β
setIcon(
icon
):void
It sets the icon property of the tool state.
Parametersβ
β’ icon: string
Returnsβ
void
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:129
setId()β
setId(
id
):void
It sets the id property of the tool state.
Parametersβ
β’ id: string
Returnsβ
void
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/object/MapObjectState.ts:96
setLabel()β
setLabel(
label
):void
It sets the label property of the tool state.
Parametersβ
β’ label: string
Returnsβ
void
Implementation ofβ
Inherited fromβ
Sourceβ
model/internal/tool/MapToolState.ts:113
setMap()β
protected
setMap(map
):void
It sets the map property of the tool state.
Parametersβ
β’ map: IMap
\<IMapProps
, IMapDefaults
, IMapState
\<IMapProps
, IMapDefaults
, IMapConfig
>, IMapConfig
, IMapInitProps
\<IMapConfig
>>
Returnsβ
void