GrammarScope  4.0.0
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
grammarscope.browser.Settings Class Reference
Collaboration diagram for grammarscope.browser.Settings:
Collaboration graph
[legend]

Classes

enum  Setting
 

Public Member Functions

 Settings ()
 
void setValueUnguarded (final Setting setting, final Object value) throws IllegalArgumentException, IllegalAccessException
 
Object getValueUnguarded (final Setting setting) throws IllegalArgumentException, IllegalAccessException
 
void setValue (final Setting setting, final Object value)
 
Object getValue (final Setting setting)
 
Properties toProperties ()
 
void setValueFromString (final Setting setting, final String str) throws IllegalArgumentException, IllegalAccessException, ClassNotFoundException
 
String getValueString (final Setting setting) throws IllegalArgumentException, IllegalAccessException
 
Properties makeClientProperties ()
 

Static Public Member Functions

static Settings fromProperties (final Properties properties)
 
static String toStyleString (final int style)
 
static Map< String, String > diff (final Properties oldProperties, final Properties newProperties)
 
static void main (final String[] args) throws IllegalArgumentException, IllegalAccessException
 

Public Attributes

Provider provider
 
String tokenizerLanguage
 
String posTaggerModel
 
String parserModel
 
String parserOptions
 
Boolean loadDepParser
 
String depParserModel
 
String depParserOptions
 
Language language
 
String annotators
 
String annotatorsOptions
 
String relations
 
Boolean workflow2
 
String filter
 
String filter2
 
String palette
 
String base
 
String imagebase
 
String document
 
String xmlstaticdocument
 
String xmldyndocument
 
String xmlservleturltemplate
 
TypedDependencyProvider dependencyProvider
 
TypedDependencyMode dependencyMode
 
Long renderMode
 
ToolMode toolMode
 
Float linespacing
 
Font font
 
Color forecolor
 
Color backcolor
 
Color posColor
 
Color relationColor
 
Color semanticgraphColor
 
Color namedentityColor
 
Color sentimentColor
 
Color coreferenceColor
 
Color posBackColor
 
Color relationBackColor
 
Color semanticgraphBackColor
 
Color namedentityBackColor
 
Color sentimentBackColor
 
Color coreferenceBackColor
 
Boolean longName
 
TooltipMode tooltipSentence
 
Boolean tooltipAnnotation
 
Boolean relationHighlightHead
 
Boolean relationHighlightMarkHead
 
Boolean propagateFilter
 
Boolean propagatePalette
 
Boolean padHatch
 
Boolean padGradient
 
Boolean edgeCurve
 
Boolean relaunchOnChange
 
Integer xMemory
 

Static Public Attributes

static final String servletUrlTemplateDefault = "http://localhost:8080/grammarscope-xml/corenlp?text=${TEXT}&&url=${URL}&&useurl=${USEURL}"
 

Detailed Description

Settings

Author
Bernard Bou

Constructor & Destructor Documentation

◆ Settings()

grammarscope.browser.Settings.Settings ( )

Constructor

Member Function Documentation

◆ diff()

static Map<String, String> grammarscope.browser.Settings.diff ( final Properties  oldProperties,
final Properties  newProperties 
)
static

Diff two properties

Parameters
oldPropertiesold properties
newPropertiesnew properties
Returns
changed values

◆ fromProperties()

static Settings grammarscope.browser.Settings.fromProperties ( final Properties  properties)
static

Make settings from properties

Parameters
propertiesproperties
Returns
settings

◆ getValue()

Object grammarscope.browser.Settings.getValue ( final Setting  setting)

Get value

Parameters
settingsetting
Returns
value

◆ getValueString()

String grammarscope.browser.Settings.getValueString ( final Setting  setting) throws IllegalArgumentException, IllegalAccessException

Get value string

Parameters
settingsettings
Returns
string representing value
Exceptions
IllegalArgumentExceptionexception
IllegalAccessExceptionexception

◆ getValueUnguarded()

Object grammarscope.browser.Settings.getValueUnguarded ( final Setting  setting) throws IllegalArgumentException, IllegalAccessException

Get value

Parameters
settingsetting
Returns
value
Exceptions
IllegalArgumentExceptionexception
IllegalAccessExceptionexception

◆ main()

static void grammarscope.browser.Settings.main ( final String[]  args) throws IllegalArgumentException, IllegalAccessException
static

Stand-alone entry point

Parameters
argsunused
Exceptions
IllegalArgumentExceptionexception
IllegalAccessExceptionexception

◆ makeClientProperties()

Properties grammarscope.browser.Settings.makeClientProperties ( )

Make client properties from settings and command-line arguments

Returns
client properties

◆ setValue()

void grammarscope.browser.Settings.setValue ( final Setting  setting,
final Object  value 
)

Set value

Parameters
settingsetting
valuevalue

◆ setValueFromString()

void grammarscope.browser.Settings.setValueFromString ( final Setting  setting,
final String  str 
) throws IllegalArgumentException, IllegalAccessException, ClassNotFoundException

Set value from string

Parameters
settingsetting
strsource string
Exceptions
IllegalArgumentExceptionexception
IllegalAccessExceptionexception
ClassNotFoundExceptionexception

◆ setValueUnguarded()

void grammarscope.browser.Settings.setValueUnguarded ( final Setting  setting,
final Object  value 
) throws IllegalArgumentException, IllegalAccessException

Set value

Parameters
settingsetting
valuevalue
Exceptions
IllegalArgumentExceptionexception
IllegalAccessExceptionexception

◆ toProperties()

Properties grammarscope.browser.Settings.toProperties ( )

Convert settings to properties

Returns
properties

◆ toStyleString()

static String grammarscope.browser.Settings.toStyleString ( final int  style)
static

Make font style string

Parameters
stylePLAIN, BOLD, ITALIC, or BOLD+ITALIC
Returns
style string

Member Data Documentation

◆ annotators

String grammarscope.browser.Settings.annotators

◆ annotatorsOptions

String grammarscope.browser.Settings.annotatorsOptions

◆ backcolor

Color grammarscope.browser.Settings.backcolor

◆ base

String grammarscope.browser.Settings.base

◆ coreferenceBackColor

Color grammarscope.browser.Settings.coreferenceBackColor

◆ coreferenceColor

Color grammarscope.browser.Settings.coreferenceColor

◆ dependencyMode

TypedDependencyMode grammarscope.browser.Settings.dependencyMode

◆ dependencyProvider

TypedDependencyProvider grammarscope.browser.Settings.dependencyProvider

◆ depParserModel

String grammarscope.browser.Settings.depParserModel

◆ depParserOptions

String grammarscope.browser.Settings.depParserOptions

◆ document

String grammarscope.browser.Settings.document

◆ edgeCurve

Boolean grammarscope.browser.Settings.edgeCurve

◆ filter

String grammarscope.browser.Settings.filter

◆ filter2

String grammarscope.browser.Settings.filter2

◆ font

Font grammarscope.browser.Settings.font

◆ forecolor

Color grammarscope.browser.Settings.forecolor

◆ imagebase

String grammarscope.browser.Settings.imagebase

◆ language

Language grammarscope.browser.Settings.language

◆ linespacing

Float grammarscope.browser.Settings.linespacing

◆ loadDepParser

Boolean grammarscope.browser.Settings.loadDepParser

◆ longName

Boolean grammarscope.browser.Settings.longName

◆ namedentityBackColor

Color grammarscope.browser.Settings.namedentityBackColor

◆ namedentityColor

Color grammarscope.browser.Settings.namedentityColor

◆ padGradient

Boolean grammarscope.browser.Settings.padGradient

◆ padHatch

Boolean grammarscope.browser.Settings.padHatch

◆ palette

String grammarscope.browser.Settings.palette

◆ parserModel

String grammarscope.browser.Settings.parserModel

◆ parserOptions

String grammarscope.browser.Settings.parserOptions

◆ posBackColor

Color grammarscope.browser.Settings.posBackColor

◆ posColor

Color grammarscope.browser.Settings.posColor

◆ posTaggerModel

String grammarscope.browser.Settings.posTaggerModel

◆ propagateFilter

Boolean grammarscope.browser.Settings.propagateFilter

◆ propagatePalette

Boolean grammarscope.browser.Settings.propagatePalette

◆ provider

Provider grammarscope.browser.Settings.provider

◆ relationBackColor

Color grammarscope.browser.Settings.relationBackColor

◆ relationColor

Color grammarscope.browser.Settings.relationColor

◆ relationHighlightHead

Boolean grammarscope.browser.Settings.relationHighlightHead

◆ relationHighlightMarkHead

Boolean grammarscope.browser.Settings.relationHighlightMarkHead

◆ relations

String grammarscope.browser.Settings.relations

◆ relaunchOnChange

Boolean grammarscope.browser.Settings.relaunchOnChange

◆ renderMode

Long grammarscope.browser.Settings.renderMode

◆ semanticgraphBackColor

Color grammarscope.browser.Settings.semanticgraphBackColor

◆ semanticgraphColor

Color grammarscope.browser.Settings.semanticgraphColor

◆ sentimentBackColor

Color grammarscope.browser.Settings.sentimentBackColor

◆ sentimentColor

Color grammarscope.browser.Settings.sentimentColor

◆ servletUrlTemplateDefault

final String grammarscope.browser.Settings.servletUrlTemplateDefault = "http://localhost:8080/grammarscope-xml/corenlp?text=${TEXT}&&url=${URL}&&useurl=${USEURL}"
static

◆ tokenizerLanguage

String grammarscope.browser.Settings.tokenizerLanguage

◆ toolMode

ToolMode grammarscope.browser.Settings.toolMode

◆ tooltipAnnotation

Boolean grammarscope.browser.Settings.tooltipAnnotation

◆ tooltipSentence

TooltipMode grammarscope.browser.Settings.tooltipSentence

◆ workflow2

Boolean grammarscope.browser.Settings.workflow2

◆ xMemory

Integer grammarscope.browser.Settings.xMemory

◆ xmldyndocument

String grammarscope.browser.Settings.xmldyndocument

◆ xmlservleturltemplate

String grammarscope.browser.Settings.xmlservleturltemplate

◆ xmlstaticdocument

String grammarscope.browser.Settings.xmlstaticdocument

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