GrammarScope  4.0.0
Public Member Functions | List of all members
grammarscope.browser.renderer.IRenderer Interface Reference
Inheritance diagram for grammarscope.browser.renderer.IRenderer:
Inheritance graph
[legend]

Public Member Functions

int layout (final Document document, final JTextComponent textComponent, final int padWidth, final int padTopOffset, final int padHeight, final int lineHeight) throws BadLocationException
 
void paint (final Graphics graphics)
 
int getTopOffset ()
 
int getHeight ()
 
Color getBackColor ()
 

Detailed Description

Renderer interface

Author
Bernard Bou

Member Function Documentation

◆ getBackColor()

Color grammarscope.browser.renderer.IRenderer.getBackColor ( )

◆ getHeight()

int grammarscope.browser.renderer.IRenderer.getHeight ( )

Get height

Returns
height

Implemented in grammarscope.browser.renderer.ProtoRenderer.

◆ getTopOffset()

int grammarscope.browser.renderer.IRenderer.getTopOffset ( )

Get top offset

Returns
top offset

Implemented in grammarscope.browser.renderer.ProtoRenderer.

◆ layout()

int grammarscope.browser.renderer.IRenderer.layout ( final Document  document,
final JTextComponent  textComponent,
final int  padWidth,
final int  padTopOffset,
final int  padHeight,
final int  lineHeight 
) throws BadLocationException

Layout

Parameters
documentdocument
textComponenttext component
padWidthannotation pad width
padTopOffsetannotation pad top offset
padHeightannotation pad height
lineHeighttext line height
Returns
used pad height
Exceptions
BadLocationExceptionexception

Implemented in grammarscope.browser.renderer.SemanticGraphRenderer, grammarscope.browser.renderer.RelationsRenderer, grammarscope.browser.renderer.CoreferencesRenderer, grammarscope.browser.renderer.BoxRenderer, grammarscope.browser.renderer.NamedEntitiesRenderer, grammarscope.browser.renderer.PosesRenderer, and grammarscope.browser.renderer.SentimentRenderer.

◆ paint()

void grammarscope.browser.renderer.IRenderer.paint ( final Graphics  graphics)

Paint

Parameters
graphicsgraphics context

Implemented in grammarscope.browser.renderer.SemanticGraphRenderer, and grammarscope.browser.renderer.BoxRenderer.


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