public class Annotation
extends java.lang.Object
Constructor and Description |
---|
Annotation(java.lang.String filename) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthor(int line)
Gets the author who last modified the specified line.
|
java.lang.String |
getDesc(java.lang.String revision) |
java.lang.String |
getFilename() |
java.lang.String |
getRevision(int line)
Gets the revision for the last change to the specified line.
|
java.util.Set<java.lang.String> |
getRevisions()
Gets all revisions that are in use, first is the lowest one (sorted using natural order)
|
int |
getWidestAuthor()
Returns the widest author name in the file (used for pretty printing).
|
int |
getWidestRevision()
Returns the widest revision string in the file (used for pretty
printing).
|
boolean |
isEnabled(int line)
Gets the enabled state for the last change to the specified line.
|
int |
size()
Returns the size of the file (number of lines).
|
java.lang.String |
toString() |
void |
writeTooltipMap(java.io.Writer out) |
public java.lang.String getRevision(int line)
line
- line number (counting from 1)public java.util.Set<java.lang.String> getRevisions()
public java.lang.String getAuthor(int line)
line
- line number (counting from 1)public boolean isEnabled(int line)
line
- line number (counting from 1)public int size()
public int getWidestRevision()
public int getWidestAuthor()
public java.lang.String getDesc(java.lang.String revision)
public java.lang.String getFilename()
public void writeTooltipMap(java.io.Writer out) throws java.io.IOException
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object