![]() |
GrammarScope
4.0.0
|


Classes | |
| enum | RenderMode |
| enum | TooltipMode |
Static Public Member Functions | |
| static Rectangle | modelToView (final JTextComponent textComponent, final Segment segment) throws BadLocationException |
| static int | getTop (final JTextComponent textComponent) throws BadLocationException |
Protected Member Functions | |
| void | paintChildren (final Graphics g) |
| void | paintPadForeground (final Graphics g) |
Protected Member Functions inherited from grammarscope.browser.components.TextPane | |
| void | spaceLines (final float lineSpacing) |
| void | setCharacterStyle (final int from, final int to, final SimpleAttributeSet style, final boolean replace) |
| void | setParagraphStyle (@SuppressWarnings("SameParameterValue") final int from, final int to, final SimpleAttributeSet style, @SuppressWarnings("SameParameterValue") final boolean replace) |
Private Member Functions | |
| void | setBackcolor (final Color backColor) |
| void | setGradientFlag (final Boolean flag) |
| boolean | tryLayoutPad (final Graphics g) throws BadLocationException |
| boolean | layoutPad (final Graphics g) throws BadLocationException |
| void | paintPad (final Graphics g) throws BadLocationException |
| void | makeRenderers (final Graphics g) |
| Paint | makeHatchPaint () |
| Paint | makeGradientPaint (final int top, final int height) |
| String | getFocusToolTipText (final MouseEvent event) |
| String | getNumberToolTipText (final MouseEvent event) |
| String | getParseToolTipText (final MouseEvent event, final boolean scoreFlag) |
| String | getGrammaticalStructureToolTipText (final MouseEvent event, final boolean scoreFlag) |
| String | getTypedDependenciesToolTipText (final MouseEvent event) |
Private Attributes | |
| Document | document |
| int | hash |
| RelationOrderedFilter | relationFilter |
| RelationFilter | relationFilter2 |
| RelationPalette | relationPalette |
| TypedDependencyProvider | typedDependencyProvider |
| TypedDependencyMode | typedDependencyMode |
| final SimpleAttributeSet | paragraphStyle |
| final SimpleAttributeSet | defaultStyle |
| final SimpleAttributeSet | focusStyle |
| final SimpleAttributeSet | nonFocusStyle |
| long | renderMode |
| TooltipMode | sentenceTooltipMode |
| boolean | annotationTooltipMode |
| boolean | highlightHeadFlag |
| boolean | markHeadFlag |
| boolean | hatchFlag |
| boolean | gradientFlag |
| final boolean | tagBarsFlag |
| boolean | edgesAsCurvesFlag |
| boolean | annotatePadFlag |
| float | lineSpacing |
| int | increment |
| int | fontHeight |
| final Image | backgroundImage |
| Color | backColor |
| final HotSpots | hotSpots |
| Map< RenderMode, IRenderer > | renderers |
Static Private Attributes | |
| static final long | serialVersionUID = 2L |
| static final long | RENDERMODE_DEFAULT = RenderMode.RELATIONS.mask() |
| static final TooltipMode | SENTENCE_TOOLTIP_DEFAULT = TooltipMode.PARSE |
| static final boolean | ANNOTATION_TOOLTIP_DEFAULT = true |
| static final boolean | HIGHLIGHT_HEAD_DEFAULT = true |
| static final boolean | HIGHLIGHT_MARK_HEAD_DEFAULT = false |
| static final boolean | GRADIENT_DEFAULT = true |
| static final boolean | HATCH_DEFAULT = true |
| static final boolean | TAG_BARS_DEFAULT = true |
| static final boolean | EDGES_AS_CURVES_DEFAULT = true |
| static final float | LINE_SPACING_DEFAULT = 20.f |
| static final boolean | ANNOTATE_PAD_DEFAULT = true |
| static final int | LEFT_MARGIN = 50 |
| static final int | RIGHT_MARGIN = 50 |
| static final Color | DEFAULT_BACKCOLOR = new Color(204, 205, 255) |
| static final boolean | PARTITION_FLAG = true |
Document view
| grammarscope.browser.View.View | ( | ) |
Constructor
| void grammarscope.browser.View.applySettings | ( | final Settings | settings | ) |
Apply settings
| settings | settings |
| void grammarscope.browser.View.changeFont | ( | final Font | font, |
| final Color | color | ||
| ) |
Set font
| font | font |
| color | font color |
| void grammarscope.browser.View.changeTypedDependencyMode | ( | final TypedDependencyMode | mode | ) |
Set typed dependency mode
| mode | typed dependency mode |
| void grammarscope.browser.View.changeTypedDependencyProvider | ( | final TypedDependencyProvider | provider | ) |
Set typed dependency provider
| provider | typed dependency provider |
| void grammarscope.browser.View.clearFocusStyle | ( | ) |
Clear focus styles in substring
| void grammarscope.browser.View.clearHighlight | ( | ) |
Clear all styles
| void grammarscope.browser.View.forceLayout | ( | ) |
Force layout
| boolean grammarscope.browser.View.getAnnotationPadFlag | ( | ) |
| boolean grammarscope.browser.View.getAnnotationTooltipMode | ( | ) |
Get annotation tooltip mode
| Document grammarscope.browser.View.getDoc | ( | ) |
Get view's document
| boolean grammarscope.browser.View.getEdgesAsCurvesFlag | ( | ) |
Get render edges as curves flag
|
private |
Tooltip attached to registered hotspot
| event | mouse event |
| boolean grammarscope.browser.View.getGradientFlag | ( | ) |
Get display gradient flag
|
private |
Tooltip with sentence's parse
| event | mouse event |
| scoreFlag | true if score is to be displayed in tooltip |
| boolean grammarscope.browser.View.getHatchFlag | ( | ) |
Get hatch background flag
| boolean grammarscope.browser.View.getHighlightFlag | ( | ) |
Get highlight relations flag
| boolean grammarscope.browser.View.getHighlightHeadFlag | ( | ) |
Get highlight heads flag
| boolean grammarscope.browser.View.getHighlightMarkHeadFlag | ( | ) |
Get mark heads flag
| float grammarscope.browser.View.getLineSpacing | ( | ) |
Get spacing value (number of line heights)
|
private |
Tooltip with sentence's number
| event | mouse event |
|
private |
Tooltip with sentence's parse
| event | mouse event |
| scoreFlag | true if score is to be displayed in tooltip |
| long grammarscope.browser.View.getRenderMode | ( | ) |
Get render mode
| int grammarscope.browser.View.getSentenceAt | ( | final Point | point | ) |
Get sentence at view location
| point | location |
| TooltipMode grammarscope.browser.View.getSentenceTooltipMode | ( | ) |
Get tooltip mode
| String grammarscope.browser.View.getStringAt | ( | final Point | point | ) |
Get word string at view location
| point | location |
| String grammarscope.browser.View.getToolTipText | ( | final MouseEvent | event | ) |
|
static |
Get top
| textComponent | text component |
| BadLocationException | exception |
|
private |
Tooltip with sentence's typed dependencies
| event | mouse event |
| TypedDependencyMode grammarscope.browser.View.getTypedDependencyMode | ( | ) |
Get typed dependency mode
| TypedDependencyProvider grammarscope.browser.View.getTypedDependencyProvider | ( | ) |
Get typed dependency provider
| void grammarscope.browser.View.highlight | ( | ) |
Highlight
| void grammarscope.browser.View.highlight | ( | final int | sentenceIdx | ) |
Highlight sentence
| sentenceIdx | sentence index |
|
private |
Lay out
| g | graphics context |
| BadLocationException | exception |
|
private |
Make gradient paint
| top | top |
| height | height |
|
private |
Make hatch paint
|
private |
Make renderers
| g | graphics context |
|
static |
Get rectangle for segment in text
| textComponent | text component |
| segment | target segment |
| BadLocationException | exception |
| void grammarscope.browser.View.notified | ( | final Event | event | ) |
| void grammarscope.browser.View.notifyAnalyzed | ( | ) |
Notifies analyzed
| void grammarscope.browser.View.notifyParsed | ( | ) |
Notifies parsed
|
protected |
|
private |
Paint pad
| g | graphics context |
| void grammarscope.browser.View.paintPadBackground | ( | final Graphics | g | ) | throws BadLocationException |
Paint background
| g | graphic context |
| BadLocationException | exception |
|
protected |
View enhanced paint component body
| g | graphic context |
| void grammarscope.browser.View.setAnnotationPadFlag | ( | final boolean | flag | ) |
| void grammarscope.browser.View.setAnnotationTooltipMode | ( | final Boolean | flag | ) |
Set annotation tooltip mode
| flag | flag |
|
private |
Set back color
| backColor | back color |
| void grammarscope.browser.View.setDoc | ( | final Document | document | ) |
Set view's document
| document | document |
| void grammarscope.browser.View.setEdgesAsCurvesFlag | ( | final Boolean | flag | ) |
Set render edges as curves flag
| flag | true/false |
| void grammarscope.browser.View.setFilter | ( | final RelationOrderedFilter | relationFilter | ) |
Attach relation filter to view
| relationFilter | relation filter |
| void grammarscope.browser.View.setFilter2 | ( | final RelationFilter | relationFilter | ) |
Attach relation filter 2 to view
| relationFilter | relation filter |
| void grammarscope.browser.View.setFocusStyle | ( | final int | from, |
| final int | to | ||
| ) |
Set focus style to substring
| from | from-index |
| to | to-index |
| void grammarscope.browser.View.setFont | ( | final Font | font0, |
| final Color | color | ||
| ) |
Set font
| font0 | font |
| color | font color |
|
private |
Set display gradient flag
| flag | true/false |
| void grammarscope.browser.View.setHatchFlag | ( | final Boolean | flag | ) |
Set hatch background flag
| flag | true/false |
| void grammarscope.browser.View.setHighlightFlag | ( | final Boolean | flag | ) |
Set highlight relations flag
| flag | true/false |
| void grammarscope.browser.View.setHighlightHeadFlag | ( | final Boolean | flag | ) |
Set highlight heads flag
| flag | true/false |
| void grammarscope.browser.View.setHighlightMarkHeadFlag | ( | final Boolean | flag | ) |
Set mark heads flag
| flag | true/false |
| void grammarscope.browser.View.setLineSpacing | ( | final Float | spacing | ) |
Set line spacing value
| spacing | spacing value (number of line heights) |
| void grammarscope.browser.View.setPalette | ( | final RelationPalette | relationPalette | ) |
Attach relation palette to view
| relationPalette | relation palette |
| void grammarscope.browser.View.setRenderMode | ( | final Long | mode | ) |
Set render mode
| mode | render mode |
| void grammarscope.browser.View.setSentenceTooltipMode | ( | final TooltipMode | mode | ) |
Set tooltip mode
| mode | tooltip mode |
| void grammarscope.browser.View.setText | ( | ) |
Set text document
| void grammarscope.browser.View.setTypedDependencyMode | ( | final TypedDependencyMode | mode | ) |
Set typed dependency mode
| mode | typed dependency mode |
| void grammarscope.browser.View.setTypedDependencyProvider | ( | final TypedDependencyProvider | provider | ) |
Set typed dependency provider
| provider | typed dependency provider |
|
private |
Try lay out
| g | graphics context |
| BadLocationException | exception |
|
staticprivate |
|
private |
Annotate pad flag
|
staticprivate |
|
private |
Tooltip mode in sentence
|
private |
Pad background color
|
private |
Pattern image for line space
|
staticprivate |
Default background color
|
private |
Default char style
|
private |
Document
|
staticprivate |
|
private |
Draw edges as curves
|
private |
Focus char style
|
private |
Font height for this layout
|
staticprivate |
|
private |
Display gradient paint between lines
|
private |
Layout hash
|
staticprivate |
|
private |
Display hatch between lines
|
staticprivate |
|
staticprivate |
|
private |
Highlight relation head
|
private |
Line increment for this layout
|
staticprivate |
Left margin
|
staticprivate |
|
private |
Line spacing value
|
private |
Highlight mark relation head
|
private |
Non-focus char style
|
private |
Default paragraph style
|
staticprivate |
Whether to draw partition line between renderer space
|
private |
Annotation pad relation filter
|
private |
Highlight relation filter
|
private |
Relation palette
|
private |
View renderers
|
private |
Composite rendering mode
|
staticprivate |
|
staticprivate |
Right margin
|
staticprivate |
|
private |
Tooltip mode for annotation pad
|
staticprivate |
|
staticprivate |
|
private |
Tag bars with relation name
|
private |
Typed Dependency mode
|
private |
Typed Dependency provider
1.8.17