public static enum View.RenderMode extends java.lang.Enum<View.RenderMode>
Enum Constant and Description |
---|
ALL |
COREFERENCES |
HIGHLIGHT |
NAMEDENTITIES |
NONE |
POSES |
RELATIONS |
SENTIMENTS |
TYPEDDEPENDENCIES |
Modifier and Type | Field and Description |
---|---|
static int |
ALPHA |
private long |
mask
Mask
|
static long |
PAD_MASK |
Modifier and Type | Method and Description |
---|---|
long |
mask()
Get mask
|
static java.lang.Long |
merge(java.lang.Boolean posesMode,
java.lang.Boolean namedEntitiesMode,
java.lang.Boolean relationsMode,
java.lang.Boolean typedDependenciesMode,
java.lang.Boolean sentimentsMode,
java.lang.Boolean corefsMode,
java.lang.Boolean highlightHeadMode)
Merge modes into composite value
|
static long |
merge(View.RenderMode... renderModes)
Merge modes into composite value
|
static View.RenderMode[] |
orderedValues()
Ordered modes
|
static int |
padBits(long compositeMode0)
Number of bits set in composite value
|
static java.lang.Boolean[] |
split(java.lang.Long compositeMode)
Split composite value into its component parts
|
boolean |
test(long compositeMode)
Test if this composite value has this mode
|
long |
toggle(long compositeMode)
Toggle bit in composite value
|
static View.RenderMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static View.RenderMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final View.RenderMode NONE
public static final View.RenderMode POSES
public static final View.RenderMode NAMEDENTITIES
public static final View.RenderMode RELATIONS
public static final View.RenderMode TYPEDDEPENDENCIES
public static final View.RenderMode SENTIMENTS
public static final View.RenderMode COREFERENCES
public static final View.RenderMode HIGHLIGHT
public static final View.RenderMode ALL
public static final int ALPHA
public static final long PAD_MASK
private final long mask
public static View.RenderMode[] values()
for (View.RenderMode c : View.RenderMode.values()) System.out.println(c);
public static View.RenderMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic long mask()
public boolean test(long compositeMode)
compositeMode
- composite modepublic long toggle(long compositeMode)
compositeMode
- composite modepublic static java.lang.Boolean[] split(java.lang.Long compositeMode)
compositeMode
- composite valuepublic static java.lang.Long merge(java.lang.Boolean posesMode, java.lang.Boolean namedEntitiesMode, java.lang.Boolean relationsMode, java.lang.Boolean typedDependenciesMode, java.lang.Boolean sentimentsMode, java.lang.Boolean corefsMode, java.lang.Boolean highlightHeadMode)
posesMode
- POS modenamedEntitiesMode
- named entities moderelationsMode
- relations modetypedDependenciesMode
- typed dependencies modesentimentsMode
- sentiments modecorefsMode
- coreference modehighlightHeadMode
- highlight heads modepublic static long merge(View.RenderMode... renderModes)
renderModes
- render modespublic static int padBits(long compositeMode0)
compositeMode0
- composite modepublic static View.RenderMode[] orderedValues()