MapDomainArrayManager
geovisto-map / MapDomainArrayManager
Class: MapDomainArrayManager\<T>
This class provide functions for using map domains which can be identified by uniquie string.
Author
Jiri Hynek
Extended by
Type parameters
• T extends IMapDomain
Implements
Constructors
new MapDomainArrayManager()
new MapDomainArrayManager\<
T
>(domains
):MapDomainArrayManager
\<T
>
It initializes a map domain manager.
Parameters
• domains: undefined
| T
[]
Returns
Source
model/internal/domain/generic/MapDomainArrayManager.ts:16
Properties
domains
private
domains:T
[]
Source
model/internal/domain/generic/MapDomainArrayManager.ts:11
Methods
add()
add(
domains
):void
It adds a domain to the list of domains.
Override this function.
Parameters
• domains: T
Returns
void
Implementation of
Source
model/internal/domain/generic/MapDomainArrayManager.ts:56
getDefault()
getDefault():
undefined
|T
The function returns the first domain of the array.
Returns
undefined
| T
Implementation of
IMapDomainArrayManager
.getDefault
Source
model/internal/domain/generic/MapDomainArrayManager.ts:30
getDomain()
getDomain(
name
):undefined
|T
The function returns map domains of given type.
Parameters
• name: string
Returns
undefined
| T
Implementation of
IMapDomainArrayManager
.getDomain
Source
model/internal/domain/generic/MapDomainArrayManager.ts:99
getDomainNames()
getDomainNames():
string
[]
Help function which returns the list of domain string labels (map domain types).
Returns
string
[]
Implementation of
IMapDomainArrayManager
.getDomainNames
Source
model/internal/domain/generic/MapDomainArrayManager.ts:83
getDomains()
getDomains():
T
[]
The function returns available map domains.
Returns
T
[]
Implementation of
IMapDomainArrayManager
.getDomains
Source
model/internal/domain/generic/MapDomainArrayManager.ts:23
isEmpty()
isEmpty():
boolean
The function returns true if size() is 0.
Returns
boolean
Implementation of
IMapDomainArrayManager
.isEmpty
Source
model/internal/domain/generic/MapDomainArrayManager.ts:45
remove()
remove(
domains
):void
It removes a domain from the list of domains.
Parameters
• domains: T
Returns
void
Implementation of
Source
model/internal/domain/generic/MapDomainArrayManager.ts:65
removeByName()
removeByName(
id
):void
It removes a domain from the list of domains.
Override this function.
Parameters
• id: string
Returns
void
Implementation of
IMapDomainArrayManager
.removeByName
Source
model/internal/domain/generic/MapDomainArrayManager.ts:76
size()
size():
number
The function returns number of domains.
Returns
number