ThemesTool
geovisto-map / ThemesTool
Class: ThemesTool
This class provides the themes tool.
Author
Jiri Hynek
Extends
Implements
Constructors
new ThemesTool()
new ThemesTool(
props?):ThemesTool
It creates a new tool with respect to the props.
Parameters
• props?: IThemesToolProps
Returns
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:49
Properties
mapForm
privatemapForm:IMapForm
TODO: move to the tool state.
Source
tools/themes/model/internal/tool/ThemesTool.ts:42
api
staticprivateapi:IThemesToolAPI=ThemesToolAPI
tool api
Source
tools/themes/model/internal/tool/ThemesTool.ts:37
Methods
copy()
copy():
IThemesTool\<IThemesToolProps,IThemesToolDefaults,IThemesToolState\<IThemesToolProps,IThemesToolDefaults,IThemesToolConfig>,IThemesToolConfig,IMapToolInitProps\<IThemesToolConfig>>
It creates a copy of the uninitialized tool.
Returns
IThemesTool\<IThemesToolProps, IThemesToolDefaults, IThemesToolState\<IThemesToolProps, IThemesToolDefaults, IThemesToolConfig>, IThemesToolConfig, IMapToolInitProps\<IThemesToolConfig>>
Implementation of
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:56
create()
create():
this
It creates new filter tool.
Returns
this
Implementation of
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:126
createDefaults()
protectedcreateDefaults():IThemesToolDefaults
It creates new defaults of the tool.
Returns
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:77
createMapForm()
protectedcreateMapForm():IMapForm
It creates new tab fragment.
Returns
Source
tools/themes/model/internal/tool/ThemesTool.ts:186
createState()
protectedcreateState():IThemesToolState\<IThemesToolProps,IThemesToolDefaults,IThemesToolConfig>
It returns the tool state.
Returns
IThemesToolState\<IThemesToolProps, IThemesToolDefaults, IThemesToolConfig>
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:91
getAPIGetter()
getAPIGetter():
undefined|IThemesToolAPIGetter
It returns the tool API
Returns
undefined | IThemesToolAPIGetter
Implementation of
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:98
getDefaults()
getDefaults():
IThemesToolDefaults
It returns default values of the themes tool.
Returns
Implementation of
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:70
getId()
getId():
string
Help function which returns the id of the object.
Returns
string
Implementation of
Inherited from
Source
model/internal/object/MapObject.ts:93
getMap()
getMap():
undefined|IMap\<IMapProps,IMapDefaults,IMapState\<IMapProps,IMapDefaults,IMapConfig>,IMapConfig,IMapInitProps\<IMapConfig>>
Help function returns map which uses this tool.
Do not override this function. Use the state class instead.
Returns
undefined | IMap\<IMapProps, IMapDefaults, IMapState\<IMapProps, IMapDefaults, IMapConfig>, IMapConfig, IMapInitProps\<IMapConfig>>
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:112
getMapForm()
getMapForm():
IMapForm
It returns tab control with respect to the configuration
Returns
Implementation of
Source
tools/themes/model/internal/tool/ThemesTool.ts:176
getProps()
getProps():
IThemesToolProps
It returns the props given by the programmer.
Returns
Implementation of
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:63
getState()
getState():
IThemesToolState\<IThemesToolProps,IThemesToolDefaults,IThemesToolConfig>
It returns the themes tool state.
Returns
IThemesToolState\<IThemesToolProps, IThemesToolDefaults, IThemesToolConfig>
Implementation of
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:84
getType()
getType():
string
Help function which returns the type of the object.
Returns
string
Implementation of
Inherited from
Source
model/internal/object/MapObject.ts:86
handleEvent()
handleEvent(
event):void
This function is called when a custom event is invoked.
Override this function, if needed.
Parameters
• event: IMapEvent\<IMapObject\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectState\<IMapObjectProps, IMapObjectDefaults\<IMapObjectProps, IMapObjectConfig>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>, IMapObjectConfig, IMapObjectInitProps\<IMapObjectConfig>>>
Returns
void
Inherited from
Source
model/internal/tool/MapTool.ts:171
initialize()
initialize(
initProps):this
Overrides the super method.
Parameters
• initProps: IMapToolInitProps\<IThemesToolConfig>
Returns
this
Implementation of
Overrides
Source
tools/themes/model/internal/tool/ThemesTool.ts:109
initializeAPI()
protectedinitializeAPI():void
Help method which initializes the API.
Returns
void
Source
tools/themes/model/internal/tool/ThemesTool.ts:117
isEnabled()
isEnabled():
boolean
Help getter which returns enabled property of state.
Do not override this function. Use the state class instead.
Returns
boolean
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:130
isSingleton()
isSingleton():
boolean
Help getter which returns a logtical value whether the tool type is singleton.
Returns
boolean
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:81
setEnabled()
setEnabled(
enabled):void
Some tools might be dynamicaly enabled/disabled. This function is called externally when the tool is enabled/disabled.
Override this function, if needed.
Parameters
• enabled: boolean
Returns
void
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:142
setProps()
protectedsetProps(props):void
It updates the props.
Parameters
• props: IMapObjectProps
Returns
void
Inherited from
Source
model/internal/object/MapObject.ts:38
setTheme()
setTheme(
theme):void
It updates the theme and notifies listeners.
Parameters
• theme: IMapTheme
Returns
void
Implementation of
Source
tools/themes/model/internal/tool/ThemesTool.ts:141
switchEnabled()
switchEnabled():
void
Help function which switches enabled state (enabled/disabled).
Do not override this function. Use setEnabled instead.
Returns
void
Implementation of
Inherited from
Source
model/internal/tool/MapTool.ts:158
updateGlobalStyles()
protectedupdateGlobalStyles(theme):void
This function updates the global styles.
Parameters
• theme: IMapTheme
Returns
void