Modifier and Type | Field and Description |
---|---|
private java.awt.image.BufferedImage |
image
Source image
|
private java.awt.image.BufferedImage |
overlayImage
Source image
|
(package private) static java.util.Map<java.lang.String,java.lang.String> |
posMap
Extra information
|
private java.lang.String |
sourceDescription
Source description
|
Constructor and Description |
---|
Decorator(ANamedEntities.ANamedEntity namedEntity)
Constructor
|
Decorator(APartsOfSpeech.Pos pos)
Constructor
|
Decorator(Coreferences.Mention mention0)
Constructor
|
Decorator(GraphEdge edge)
Constructor
|
Decorator(RelationDependent relationDependent)
Constructor
|
Decorator(Sentiment sentiment)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSourceDescription()
Source description (used in tooltips)
|
java.awt.image.BufferedImage |
getSourceImage()
Source image
|
java.awt.image.BufferedImage |
getSourceOverlayImage()
Source overlay image
|
static java.lang.String |
lineBreak(java.lang.String str,
int span,
int overflow)
Force break after x characters with admissible overflow (o)
|
private static java.awt.image.BufferedImage |
makeImage(java.lang.String... paths)
Make image
|
private static java.awt.image.BufferedImage |
overlayImage(java.awt.image.BufferedImage bufferedImage,
java.lang.String... paths)
Make image
|
private final java.lang.String sourceDescription
private final java.awt.image.BufferedImage image
private final java.awt.image.BufferedImage overlayImage
static final java.util.Map<java.lang.String,java.lang.String> posMap
public Decorator(GraphEdge edge)
edge
- graph edgepublic Decorator(RelationDependent relationDependent)
relationDependent
- relation dependentpublic Decorator(APartsOfSpeech.Pos pos)
pos
- part-of-speechpublic Decorator(ANamedEntities.ANamedEntity namedEntity)
namedEntity
- named entitypublic Decorator(Sentiment sentiment)
sentiment
- sentimentpublic Decorator(Coreferences.Mention mention0)
mention0
- mentionpublic java.lang.String getSourceDescription()
ISource
getSourceDescription
in interface ISource
public java.awt.image.BufferedImage getSourceImage()
ISource
getSourceImage
in interface ISource
public java.awt.image.BufferedImage getSourceOverlayImage()
ISource
getSourceOverlayImage
in interface ISource
public static java.lang.String lineBreak(java.lang.String str, int span, int overflow)
str
- stringspan
- line span (x)overflow
- admissible line overflow (o)private static java.awt.image.BufferedImage makeImage(java.lang.String... paths)
paths
- pathsprivate static java.awt.image.BufferedImage overlayImage(java.awt.image.BufferedImage bufferedImage, java.lang.String... paths)
bufferedImage
- buffered imagepaths
- paths