Common utilities
- Author
- Bernard Bou
◆ ToolTipUtils()
grammarscope.common.utils.ToolTipUtils.ToolTipUtils |
( |
| ) |
|
|
private |
◆ grammaticalStructureToTooltipString()
static String grammarscope.common.utils.ToolTipUtils.grammaticalStructureToTooltipString |
( |
final AGrammaticalStructure |
grammaticalStructure, |
|
|
final long |
format |
|
) |
| |
|
static |
Convert grammatical structure to tooltip string
- Parameters
-
grammaticalStructure | grammatical structure |
format | format |
- Returns
- tooltip-formatted string
◆ lineBreak()
static String grammarscope.common.utils.ToolTipUtils.lineBreak |
( |
final String |
str, |
|
|
final int |
span |
|
) |
| |
|
static |
Force break after x characters
- Parameters
-
str | string |
span | line span (x) |
- Returns
- string with line breaks
◆ makeNameValueTooltipString()
static String grammarscope.common.utils.ToolTipUtils.makeNameValueTooltipString |
( |
final String |
name, |
|
|
final String |
value0 |
|
) |
| |
|
static |
Make name-value tooltip string
- Parameters
-
- Returns
- tooltip string
◆ markedStringToTooltipString()
static String grammarscope.common.utils.ToolTipUtils.markedStringToTooltipString |
( |
final String |
str0 | ) |
|
|
static |
Convert string to tooltip string ($X$ is rendered in blue)
- Parameters
-
- Returns
- tooltip-formatted string
◆ stringToKeyEnhancedTooltipString()
static String grammarscope.common.utils.ToolTipUtils.stringToKeyEnhancedTooltipString |
( |
final String |
str0, |
|
|
final String... |
keys |
|
) |
| |
|
static |
Convert string to tooltip string
- Parameters
-
str0 | string |
keys | keys to enhance |
- Returns
- tooltip-formatted string
◆ stringToTooltipString() [1/2]
static String grammarscope.common.utils.ToolTipUtils.stringToTooltipString |
( |
final String |
str, |
|
|
final int |
span |
|
) |
| |
|
static |
Force break after x characters
- Parameters
-
str | string |
span | line span (x) |
- Returns
- string with html line breaks
◆ stringToTooltipString() [2/2]
static String grammarscope.common.utils.ToolTipUtils.stringToTooltipString |
( |
final String |
str0 | ) |
|
|
static |
Convert string to tooltip string (replace line breaks and spaces)
- Parameters
-
- Returns
- tooltip-formatted string
◆ stripPath()
static String grammarscope.common.utils.ToolTipUtils.stripPath |
( |
final String |
value | ) |
|
|
static |
Strip path in value
- Parameters
-
- Returns
- value with stripped path
◆ treeToTooltipString()
static String grammarscope.common.utils.ToolTipUtils.treeToTooltipString |
( |
final AParseTree |
tree, |
|
|
final long |
format |
|
) |
| |
|
static |
Convert tree to tooltip string
- Parameters
-
tree | sentence |
format | guidelines |
- Returns
- tooltip-formatted string
◆ treeToToolTipString()
static String grammarscope.common.utils.ToolTipUtils.treeToToolTipString |
( |
final String |
str0 | ) |
|
|
static |
Convert parse tree string to tooltip string
- Parameters
-
- Returns
- tooltip-formatted string
◆ typedDependenciesToTooltipString()
static String grammarscope.common.utils.ToolTipUtils.typedDependenciesToTooltipString |
( |
final ATypedDependencies |
typedDependencies | ) |
|
|
static |
Convert typed dependencies to tooltip string
- Parameters
-
typedDependencies | typed dependencies |
- Returns
- tooltip-formatted string
◆ KEY_REPLACEMENT
final String grammarscope.common.utils.ToolTipUtils.KEY_REPLACEMENT = "<font color=blue>$1</font>" |
|
staticprivate |
◆ LEAF_REPLACEMENT
final String grammarscope.common.utils.ToolTipUtils.LEAF_REPLACEMENT = "<b>$1</b>" |
|
staticprivate |
◆ MARKED_REPLACEMENT
final String grammarscope.common.utils.ToolTipUtils.MARKED_REPLACEMENT = "<font color=blue>$1</font>" |
|
staticprivate |
◆ NODE_REPLACEMENT
final String grammarscope.common.utils.ToolTipUtils.NODE_REPLACEMENT = "<font color=red><b>$1</b></font>" |
|
staticprivate |
◆ SCORE_REPLACEMENT
final String grammarscope.common.utils.ToolTipUtils.SCORE_REPLACEMENT = "<font color=gray>$1</font>" |
|
staticprivate |
The documentation for this class was generated from the following file: