Last updated

API / geotoolkit / controls / tools / scroll / ScrollFactory / ScrollFactory

Class: 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

Table of contents

Constructors
Methods

Contents

Constructors

new ScrollFactory()

new ScrollFactory()

Methods

getClassName

getClassName(): string

Returns

string


getScrollbar

getScrollbar(name, options): HorizontalScroll

Parameters

Name Type
name"geotoolkit.controls.tools.scroll.HorizontalScroll"
optionsOptions

Returns

HorizontalScroll

getScrollbar(name, options): HorizontalScroll

Parameters

Name Type
name"geotoolkit.controls.tools.scroll.VerticalScroll"
optionsOptions

Returns

HorizontalScroll

getScrollbar(name, options): HorizontalScroll

Parameters

Name Type
namestring
optionsOptions

Returns

HorizontalScroll


registerScrollbar

registerScrollbar(name, constructor): ScrollFactory

Register scrollbar

Parameters

Name Type Description
namestringclass name or unique name
constructor(opt: any) => AbstractScrollfunction which instantiates the required scrollbar

Returns

ScrollFactory


getClassName

Static getClassName(): string

Returns

string


getInstance

Static getInstance(): ScrollFactory

Get instance

Returns

ScrollFactory

instance