|
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 |
|
|
static final String | servletUrlTemplateDefault = "http://localhost:8080/grammarscope-xml/corenlp?text=${TEXT}&&url=${URL}&&useurl=${USEURL}" |
|
Settings
- Author
- Bernard Bou
◆ Settings()
grammarscope.browser.Settings.Settings |
( |
| ) |
|
◆ diff()
static Map<String, String> grammarscope.browser.Settings.diff |
( |
final Properties |
oldProperties, |
|
|
final Properties |
newProperties |
|
) |
| |
|
static |
Diff two properties
- Parameters
-
oldProperties | old properties |
newProperties | new properties |
- Returns
- changed values
◆ fromProperties()
static Settings grammarscope.browser.Settings.fromProperties |
( |
final Properties |
properties | ) |
|
|
static |
Make settings from properties
- Parameters
-
- Returns
- settings
◆ getValue()
Object grammarscope.browser.Settings.getValue |
( |
final Setting |
setting | ) |
|
Get value
- Parameters
-
- Returns
- value
◆ getValueString()
String grammarscope.browser.Settings.getValueString |
( |
final Setting |
setting | ) |
throws IllegalArgumentException, IllegalAccessException |
Get value string
- Parameters
-
- Returns
- string representing value
- Exceptions
-
IllegalArgumentException | exception |
IllegalAccessException | exception |
◆ getValueUnguarded()
Object grammarscope.browser.Settings.getValueUnguarded |
( |
final Setting |
setting | ) |
throws IllegalArgumentException, IllegalAccessException |
Get value
- Parameters
-
- Returns
- value
- Exceptions
-
IllegalArgumentException | exception |
IllegalAccessException | exception |
◆ main()
static void grammarscope.browser.Settings.main |
( |
final String[] |
args | ) |
throws IllegalArgumentException, IllegalAccessException |
|
static |
Stand-alone entry point
- Parameters
-
- Exceptions
-
IllegalArgumentException | exception |
IllegalAccessException | exception |
◆ 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
-
setting | setting |
value | value |
◆ setValueFromString()
void grammarscope.browser.Settings.setValueFromString |
( |
final Setting |
setting, |
|
|
final String |
str |
|
) |
| throws IllegalArgumentException, IllegalAccessException, ClassNotFoundException |
Set value from string
- Parameters
-
setting | setting |
str | source string |
- Exceptions
-
IllegalArgumentException | exception |
IllegalAccessException | exception |
ClassNotFoundException | exception |
◆ setValueUnguarded()
void grammarscope.browser.Settings.setValueUnguarded |
( |
final Setting |
setting, |
|
|
final Object |
value |
|
) |
| throws IllegalArgumentException, IllegalAccessException |
Set value
- Parameters
-
setting | setting |
value | value |
- Exceptions
-
IllegalArgumentException | exception |
IllegalAccessException | exception |
◆ 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
-
style | PLAIN, BOLD, ITALIC, or BOLD+ITALIC |
- Returns
- style string
◆ 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
◆ 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:
- grammarscope/browser/src/main/java/grammarscope/browser/Settings.java