Interface for factory classes for IInputHandler creation.
Inheritance Hierarchy
IGenericInputHandlerFactory
Type Details
- yfiles module
- view-graphml
- yfiles-umd modules
- view-graphml, view
- Legacy UMD name
- yfiles.graphml.IGenericInputHandlerFactory
Methods
createInputHandler
(keyType: Class, valueType: Class, evt: QueryInputHandlersEventArgs) : IInputHandlerCreate an IInputHandler instance based on the given evt
.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- keyType - Class
- The key type as inferred by the caller from the GraphML contents.
- valueType - Class
- The type of the value as inferred by the caller from the GraphML contents.
- evt - QueryInputHandlersEventArgs
- The event argument that is used like in QueryInputHandlers
Returns
- ↪IInputHandler
- The specific input handler to use.
Static Methods
create
(createInputHandler: function(Class, Class, QueryInputHandlersEventArgs):IInputHandler) : IGenericInputHandlerFactoryCreates an implementation of the interface IGenericInputHandlerFactory by using the given function as implementation for its createInputHandler method.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- createInputHandler - function(Class, Class, QueryInputHandlersEventArgs):IInputHandler
- A function for IGenericInputHandlerFactory's single abstract method createInputHandler.
Returns
- ↪IGenericInputHandlerFactory
- An instance of the IGenericInputHandlerFactory interface based on the given function.