Class: ColorConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
10.0.0

F32683-01

Since:
  • 0.6.0
Module:
  • ojvalidationfactory-base

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:


Deprecated:
Since Description
8.0.0 Directly create new instances of ColorConverter instead.
A factory implementation to create the built-in color converter of type oj.ColorConverter.
Deprecated:
Since Description
8.0.0 Directly create new instances of ColorConverter instead.

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