Class: ColorConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
17.1.0

G12196-01

Since:
  • 0.6.0
Module:
  • ojvalidationfactory-base

Note: This class is deprecated since 8.0.0. Directly create new instances of oj.ColorConverter instead.

QuickNav

Description

A factory implementation to create the built-in color converter of type oj.ColorConverter.


Usage

Typescript Import Format
//This class is not exported from module and can not be accessed in runtime.
//However to enable typechecking and ducktyping, you can access it as an interface.
import {ColorConverterFactory} from "ojs/ojvalidationfactory-base";

//To access this type in your code,
class MyClass implements ColorConverterFactory{
//or,
let myVariable: ColorConverterFactory;

For additional information visit:


A factory implementation to create the built-in color converter of type oj.ColorConverter.

Methods

createConverter(options) : {oj.ColorConverter}

Creates an immutable (jet) color converter instance.
Parameters:
Name Type Argument Description
options oj.ColorConverter.ConverterOptions <optional>
an object literal used to provide an optional information to initialize the jet color converter. For details on what to pass for options, refer to oj.ColorConverter.
Returns:
Type
oj.ColorConverter