public class SourceCodeColumn extends AbstractHTMLColumn
Modifier and Type | Field and Description |
---|---|
String |
pathKeyword |
String |
positionKeyword |
static int |
SRC_LIMIT |
File |
workingDir |
keyword
Constructor and Description |
---|
SourceCodeColumn(String positionKeyword,
String pathKeyword) |
SourceCodeColumn(String displayKeyword,
String positionKeyword,
String pathKeyword) |
SourceCodeColumn(String displayKeyword,
String positionKeyword,
String pathKeyword,
String workingDir) |
Modifier and Type | Method and Description |
---|---|
String |
getCSS()
This default implementation returns an empty string.
|
String |
getHTML(Operation op)
This method should return one or multiple td-tags (corresponding to
the return value of getNumColumns()) containing the additional
information for the given alignment Operation.
|
int |
getNumColumns()
This method should return the number of HTML columns occupied by
this column.
|
int |
getTabSize()
Returns as how many characters a tab should be counted.
|
boolean |
isEndExclusive()
Returns true if the end column of each given codePosition are excluded in
the visualization.
|
void |
setEndExclusive(boolean endExclusive)
Sets if the end column of each given codePosition should be in-
or excluded in the visualization.
|
void |
setTabSize(int tabSize)
This manipulates as how many characters a tab should be
counted.
|
getJS, getKeyword
public final String positionKeyword
public final String pathKeyword
public final File workingDir
public static final int SRC_LIMIT
public SourceCodeColumn(String displayKeyword, String positionKeyword, String pathKeyword, String workingDir)
displayKeyword
- the keyword that should be used as a column
header.positionKeyword
- the keyword with which the respective code
position can be retrieved from an input node.pathKeyword
- the keyword with which the path to the respective
code
file can be retrieved from an input node.workingDir
- the base path for the respective node paths.public SourceCodeColumn(String displayKeyword, String positionKeyword, String pathKeyword)
displayKeyword
- the keyword that should be used as a column
header.positionKeyword
- the keyword with which the respective code
position can be retrieved from an input node.pathKeyword
- the keyword with which the path to the respective
code
file can be retrieved from an input node.public SourceCodeColumn(String positionKeyword, String pathKeyword)
positionKeyword
- the keyword with which the respective code
position can be retrieved from an input node.pathKeyword
- the keyword with which the path to the respective
code
file can be retrieved from an input node.public void setTabSize(int tabSize)
tabSize
- how many characters a tab should be
counted.public int getTabSize()
public void setEndExclusive(boolean endExclusive)
endExclusive
- if the end column of each given codePosition should
be in- or excluded in the visualization. This is true per default.public boolean isEndExclusive()
public int getNumColumns()
public String getHTML(Operation op)
op
- an Operation in an AlignmentPath.public String getCSS()
getCSS
in interface HTMLColumn
getCSS
in class AbstractHTMLColumn
Copyright (C) 2013-2015 Benjamin Paaßen, Georg Zentgraf, AG Theoretical Computer Science, Centre of Excellence Cognitive Interaction Technology (CITEC), University of Bielefeld, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/tcs