public class VisualizerInput extends Object implements Serializable
| Constructor and Description |
|---|
VisualizerInput() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContextPath()
Gets the context path of this Annis installation.
|
org.corpus_tools.salt.common.SDocument |
getDocument() |
FontConfig |
getFont()
Get the properties of the (web-) font in which this visualizer should render the output.
|
String |
getId()
Gets an optional result id to be used by
#writeOutput(Writer) |
Map<String,String> |
getMappings()
Get the mappings for a visualizers.
|
Map<org.corpus_tools.salt.core.SNode,Long> |
getMarkedAndCovered()
This map is used for calculating the colors of a matching node.
|
String |
getNamespace()
Gets the namespace to be processed by
#writeOutput(Writer). |
RawTextWrapper |
getRawText()
Gets the original text from the relAnnis text.tab file represented as a String.
|
String |
getResourcePath(String resource)
Returns a valid URL/path for which a relative (from the class package) resource can be
accessed.
|
String |
getResourcePathTemplate() |
String |
getSegmentationName() |
org.corpus_tools.salt.common.SDocument |
getSResult()
Alias for
getDocument() |
CommonUI |
getUI() |
Set<String> |
getVisibleTokenAnnos()
This cachedToken annotation should displayed by the visualizer and is selected by the user in
the annis gui.
|
void |
setContextPath(String contextPath)
Sets the context path of this Annis installation.
|
void |
setDocument(org.corpus_tools.salt.common.SDocument document) |
void |
setFont(FontConfig font) |
void |
setId(String id)
Sets an optional result id to be used by
#writeOutput(Writer) |
void |
setMappings(Map<String,String> mappings)
Set the mappings for a visualizers.
|
void |
setMarkedAndCovered(Map<org.corpus_tools.salt.core.SNode,Long> markedAndCovered)
This map is used for calculating the colors of a matching node.
|
void |
setNamespace(String namespace)
Sets the namespace to be processed by
#writeOutput(Writer). |
void |
setRawText(RawTextWrapper rawText)
Sets the raw text.
|
void |
setResourcePathTemplate(String resourcePathTemplate) |
void |
setResult(org.corpus_tools.salt.common.SDocument document)
Alias for
{@link VisualizerInput#setDocument(de.hu_berlin.german.korpling.saltnpepper.salt.saltCommon.sCorpusStructure.SDocument)
|
void |
setSegmentationName(String segmentationName) |
void |
setUI(CommonUI ui) |
void |
setVisibleTokenAnnos(Set<String> tokenAnnos)
Set all cachedToken annotations which should be displayed by the visualizer and correspondands
to the annos choosen by the user in the annis gui.
|
public String getContextPath()
public org.corpus_tools.salt.common.SDocument getDocument()
public FontConfig getFont()
public String getId()
#writeOutput(Writer)public Map<String,String> getMappings()
public Map<org.corpus_tools.salt.core.SNode,Long> getMarkedAndCovered()
MatchedNodeColors.public String getNamespace()
#writeOutput(Writer).public RawTextWrapper getRawText()
This is a convenient and very fast method for extracting the whole text of a document, since this method simply reads database tupel and does not map anything to salt.
VisualizerPlugin.isUsingRawText() method false for this
visualizer.public String getResourcePath(String resource)
resource - public String getResourcePathTemplate()
public String getSegmentationName()
public org.corpus_tools.salt.common.SDocument getSResult()
getDocument()public CommonUI getUI()
public Set<String> getVisibleTokenAnnos()
public void setContextPath(String contextPath)
contextPath - The context path, beginning with an "/" but *not* ending with it.public void setDocument(org.corpus_tools.salt.common.SDocument document)
public void setFont(FontConfig font)
public void setId(String id)
#writeOutput(Writer)id - result id to be used in outputpublic void setMappings(Map<String,String> mappings)
mappings - The new mappings.public void setMarkedAndCovered(Map<org.corpus_tools.salt.core.SNode,Long> markedAndCovered)
MatchedNodeColors.public void setNamespace(String namespace)
#writeOutput(Writer).namespace - Namespace to be processedpublic void setRawText(RawTextWrapper rawText)
VisualizerPlugin.isUsingText() return
true.rawText - the original text from the text.tab file in relAnnis. Therefore could be an
empty string.public void setResourcePathTemplate(String resourcePathTemplate)
public void setResult(org.corpus_tools.salt.common.SDocument document)
public void setSegmentationName(String segmentationName)
public void setUI(CommonUI ui)
Copyright © 2021 Corpuslinguistic working group Humboldt University Berlin. All rights reserved.