public static enum HTMLCanvasElement.ContextType extends Enum<HTMLCanvasElement.ContextType>
| Enum Constant and Description |
|---|
CONTEXT_2D |
WEBGL |
WEBGL2 |
| Modifier and Type | Method and Description |
|---|---|
String |
getType() |
static HTMLCanvasElement.ContextType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HTMLCanvasElement.ContextType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HTMLCanvasElement.ContextType CONTEXT_2D
public static final HTMLCanvasElement.ContextType WEBGL
public static final HTMLCanvasElement.ContextType WEBGL2
public static HTMLCanvasElement.ContextType[] values()
for (HTMLCanvasElement.ContextType c : HTMLCanvasElement.ContextType.values()) System.out.println(c);
public static HTMLCanvasElement.ContextType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getType()
Copyright © 2018 Xalys. All rights reserved.