GrammarScope  4.0.0
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
grammarscope.browser.View.RenderMode Enum Reference

Public Member Functions

 RenderMode (final long mask)
 
long mask ()
 
boolean test (final long compositeMode)
 
long toggle (final long compositeMode)
 

Static Public Member Functions

static Boolean[] split (final Long compositeMode)
 
static Long merge (final Boolean posesMode, final Boolean namedEntitiesMode, final Boolean relationsMode, final Boolean typedDependenciesMode, final Boolean sentimentsMode, final Boolean corefsMode, final Boolean highlightHeadMode)
 
static long merge (final RenderMode... renderModes)
 
static int padBits (final long compositeMode0)
 
static RenderMode[] orderedValues ()
 

Public Attributes

 NONE =(0)
 
 POSES =(0x1)
 
 NAMEDENTITIES =(0x2)
 
 RELATIONS =(0x4)
 
 TYPEDDEPENDENCIES =(0x8)
 
 SENTIMENTS =(0x10)
 
 COREFERENCES =(0x20)
 
 HIGHLIGHT =(0x100)
 
 ALL =(0x3F)
 

Static Public Attributes

static final int ALPHA = 0xE0
 
static final long PAD_MASK = POSES.mask | NAMEDENTITIES.mask | RELATIONS.mask | TYPEDDEPENDENCIES.mask | SENTIMENTS.mask | COREFERENCES.mask
 

Private Attributes

final long mask
 

Detailed Description

Rendering mode

Author
Bernard Bou

Constructor & Destructor Documentation

◆ RenderMode()

grammarscope.browser.View.RenderMode.RenderMode ( final long  mask)

Constructor

Parameters
maskin composite value

Member Function Documentation

◆ mask()

long grammarscope.browser.View.RenderMode.mask ( )

Get mask

Returns
mask

◆ merge() [1/2]

static Long grammarscope.browser.View.RenderMode.merge ( final Boolean  posesMode,
final Boolean  namedEntitiesMode,
final Boolean  relationsMode,
final Boolean  typedDependenciesMode,
final Boolean  sentimentsMode,
final Boolean  corefsMode,
final Boolean  highlightHeadMode 
)
static

Merge modes into composite value

Parameters
posesModePOS mode
namedEntitiesModenamed entities mode
relationsModerelations mode
typedDependenciesModetyped dependencies mode
sentimentsModesentiments mode
corefsModecoreference mode
highlightHeadModehighlight heads mode
Returns
composite mode

◆ merge() [2/2]

static long grammarscope.browser.View.RenderMode.merge ( final RenderMode...  renderModes)
static

Merge modes into composite value

Parameters
renderModesrender modes
Returns
composite value

◆ orderedValues()

static RenderMode [] grammarscope.browser.View.RenderMode.orderedValues ( )
static

Ordered modes

Returns
array of modes

◆ padBits()

static int grammarscope.browser.View.RenderMode.padBits ( final long  compositeMode0)
static

Number of bits set in composite value

Parameters
compositeMode0composite mode
Returns
number of bits set in composite value

◆ split()

static Boolean [] grammarscope.browser.View.RenderMode.split ( final Long  compositeMode)
static

Split composite value into its component parts

Parameters
compositeModecomposite value
Returns
array of booleans: [0] POSES, [1] NAMEDENTITIES, [2] RELATIONS, [3] TYPEDDEPENDENCIES, [4] SENTIMENTS, [5] COREFERENCES, [6] HIGHLIGHTHEAD

◆ test()

boolean grammarscope.browser.View.RenderMode.test ( final long  compositeMode)

Test if this composite value has this mode

Parameters
compositeModecomposite mode
Returns
true if this composite value has this mode

◆ toggle()

long grammarscope.browser.View.RenderMode.toggle ( final long  compositeMode)

Toggle bit in composite value

Parameters
compositeModecomposite mode
Returns
toggled composite mode

Member Data Documentation

◆ ALL

grammarscope.browser.View.RenderMode.ALL =(0x3F)

◆ ALPHA

final int grammarscope.browser.View.RenderMode.ALPHA = 0xE0
static

◆ COREFERENCES

grammarscope.browser.View.RenderMode.COREFERENCES =(0x20)

◆ HIGHLIGHT

grammarscope.browser.View.RenderMode.HIGHLIGHT =(0x100)

◆ mask

final long grammarscope.browser.View.RenderMode.mask
private

Mask

◆ NAMEDENTITIES

grammarscope.browser.View.RenderMode.NAMEDENTITIES =(0x2)

◆ NONE

grammarscope.browser.View.RenderMode.NONE =(0)

◆ PAD_MASK

final long grammarscope.browser.View.RenderMode.PAD_MASK = POSES.mask | NAMEDENTITIES.mask | RELATIONS.mask | TYPEDDEPENDENCIES.mask | SENTIMENTS.mask | COREFERENCES.mask
static

◆ POSES

grammarscope.browser.View.RenderMode.POSES =(0x1)

◆ RELATIONS

grammarscope.browser.View.RenderMode.RELATIONS =(0x4)

◆ SENTIMENTS

grammarscope.browser.View.RenderMode.SENTIMENTS =(0x10)

◆ TYPEDDEPENDENCIES

grammarscope.browser.View.RenderMode.TYPEDDEPENDENCIES =(0x8)

The documentation for this enum was generated from the following file: