|
Drawable | makeDrawable (final Rectangle barRectangle, final Paint backgroundColor, final String tag, final int slot, final boolean hasPreviousFlag, final boolean hasNextFlag, final int headOffset, final ISource source) |
|
void | makeDrawable (final List< Segment > segments, final Segment headSegment, final String tag, final Paint color, final int slot, final int padTopOffset, final int lineHeight, final ISource source, final JTextComponent textComponent) throws BadLocationException |
|
int | computeBoxHeight (final int slotCount, final int padHeight) |
|
int | getDefaultHeight () |
|
void | setHotSpots () |
|
Named Entities renderer
- Author
- Bernard Bou
◆ SentimentRenderer()
grammarscope.browser.renderer.SentimentRenderer.SentimentRenderer |
( |
final Graphics |
g, |
|
|
final HotSpots |
hotSpots |
|
) |
| |
Constructor
- Parameters
-
g | graphics context |
hotSpots | hotspots |
◆ getBackColor()
Color grammarscope.browser.renderer.SentimentRenderer.getBackColor |
( |
| ) |
|
◆ layout()
int grammarscope.browser.renderer.SentimentRenderer.layout |
( |
final Document |
document, |
|
|
final JTextComponent |
textComponent, |
|
|
final int |
padWidth, |
|
|
final int |
padTopOffset, |
|
|
final int |
padHeight, |
|
|
final int |
lineHeight |
|
) |
| throws BadLocationException |
Layout
- Parameters
-
document | document |
textComponent | text component |
padWidth | annotation pad width |
padTopOffset | annotation pad top offset |
padHeight | annotation pad height |
lineHeight | text line height |
- Returns
- used pad height
- Exceptions
-
BadLocationException | exception |
Reimplemented from grammarscope.browser.renderer.BoxRenderer.
◆ makeDrawable()
Drawable grammarscope.browser.renderer.SentimentRenderer.makeDrawable |
( |
final Rectangle |
boxRectangle, |
|
|
final Paint |
backgroundColor, |
|
|
final String |
tag, |
|
|
final int |
slot, |
|
|
final boolean |
hasPreviousFlag, |
|
|
final boolean |
hasNextFlag, |
|
|
final int |
headOffset, |
|
|
final ISource |
source |
|
) |
| |
|
protected |
Make drawable
- Parameters
-
boxRectangle | drawable height |
backgroundColor | drawable background color |
tag | drawable tag |
slot | drawable's allocated slot |
hasPreviousFlag | whether this drawable continues previous line |
hasNextFlag | whether this drawable is continued on next line |
headOffset | head x offset (from left) if any |
source | source object |
- Returns
- drawable
Reimplemented from grammarscope.browser.renderer.BoxRenderer.
◆ setBackColor()
static void grammarscope.browser.renderer.SentimentRenderer.setBackColor |
( |
final Color |
color | ) |
|
|
static |
Set back color
- Parameters
-
◆ setBorderColor()
static void grammarscope.browser.renderer.SentimentRenderer.setBorderColor |
( |
final Color |
color | ) |
|
|
static |
Set border color
- Parameters
-
◆ setForeColor()
static void grammarscope.browser.renderer.SentimentRenderer.setForeColor |
( |
final Color |
color | ) |
|
|
static |
Set fore color
- Parameters
-
◆ backColor
◆ borderColor
Color grammarscope.browser.renderer.SentimentRenderer.borderColor = DEFAULT_FORECOLOR |
|
staticprivate |
◆ DEFAULT_BACKCOLOR
final Color grammarscope.browser.renderer.SentimentRenderer.DEFAULT_BACKCOLOR = new Color(0xD6, 0xD9, 0xDF, RenderMode.ALPHA) |
|
staticprivate |
◆ DEFAULT_BORDERCOLOR
final Color grammarscope.browser.renderer.SentimentRenderer.DEFAULT_BORDERCOLOR = new Color(192, 192, 192) |
|
staticprivate |
◆ DEFAULT_FORECOLOR
final Color grammarscope.browser.renderer.SentimentRenderer.DEFAULT_FORECOLOR = Color.DARK_GRAY |
|
staticprivate |
◆ foreColor
The documentation for this class was generated from the following file: