API / geotoolkit / controls / tools / scroll / ScrollFactory / ScrollFactory
scroll.ScrollFactory.ScrollFactory
Scroll factory
This factory registers a name-function pair. the function is responsible for creating an instance of a scrollbar which inherits from geotoolkit.controls.tools.scroll.AbstractScroll, and returns it
Constructors
Methods
▸ getClassName(): string
string
▸ getScrollbar(name, options): HorizontalScroll
| Name | Type |
|---|---|
name | "geotoolkit.controls.tools.scroll.HorizontalScroll" |
options | Options |
▸ getScrollbar(name, options): HorizontalScroll
| Name | Type |
|---|---|
name | "geotoolkit.controls.tools.scroll.VerticalScroll" |
options | Options |
▸ getScrollbar(name, options): HorizontalScroll
| Name | Type |
|---|---|
name | string |
options | Options |
▸ registerScrollbar(name, constructor): ScrollFactory
Register scrollbar
| Name | Type | Description |
|---|---|---|
name | string | class name or unique name |
constructor | (opt: any) => AbstractScroll | function which instantiates the required scrollbar |
▸ Static getClassName(): string
string
▸ Static getInstance(): ScrollFactory
Get instance
instance