|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.statcvs.renderer.TableRenderer
This class renders tables
Field Summary | |
static int |
SORT_BY_NAME
Sorting by name |
static int |
SORT_BY_SIZE
Sorting by size |
Constructor Summary | |
TableRenderer(CvsContent content)
Method TableRenderer. |
Method Summary | |
void |
calculateChangesAndLines(CvsContent content,
java.util.Iterator it,
RevisionIterator allRevs)
calculates changes and lines of code for users |
void |
calculateChangesAndLinesPerModule(java.util.Iterator it,
RevisionIterator allRevs)
calculates changes and lines of code per module |
StatCvsTableModel |
createChangesPerUserForModuleTable(CvsContent content,
java.lang.String moduleName)
create the Changes-Per-User Overview Table For Packages |
StatCvsTableModel |
createChangesPerUserTable(CvsContent content,
int sortedBy)
create the Changes-Per-User Overview Table |
StatCvsTableModel |
createModuleSizesTable(CvsContent content)
create the Module Sizes Table |
StatCvsTableModel |
createModulesOfUserTable(CvsContent content,
java.lang.String userName)
create the Modules Of User Table |
StatCvsTableModel |
createTopDevelopersTable(CvsContent content)
create the Changes-Per-User Overview Table |
void |
fillLastTableRow(int size,
java.lang.String[][] data)
fills the last (sum) table row of the top developer table |
void |
fillLastTableRowTopDevelopers(java.lang.String[][] data)
fills the last (sum) table row of the top developer table |
void |
fillTable(java.lang.String[][] data,
java.util.Iterator it,
RevisionIterator allRevs)
fills table |
void |
fillTablePerModule(java.lang.String[][] data,
java.util.Iterator it,
RevisionIterator allRevs)
fills table per module |
IntegerMap |
getLocPerUserMap(RevisionIterator source)
returns a lines of code per user-IntegerMap |
java.lang.String |
getModulePageName(java.lang.String moduleName)
returns the module name for html pages |
java.lang.String |
getPercentage(double count)
get the precentage as String |
java.lang.String |
getPercentage(int totalCount,
int count)
get the precentage of two given numbers as String |
double |
getPercentageD(int totalCount,
int count)
get the precentage of two given numbers as double |
java.util.Iterator |
getUserListSortedByNames()
returns a IntegerMap of users sorted by names |
java.lang.String |
renderHTMLTable(StatCvsTableModel tableModel,
boolean lastLine)
Renders the HTML Table for a given TableModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SORT_BY_NAME
public static final int SORT_BY_SIZE
Constructor Detail |
public TableRenderer(CvsContent content)
content
- render table on specified contentMethod Detail |
public StatCvsTableModel createChangesPerUserTable(CvsContent content, int sortedBy)
content
- CvsContentsortedBy
- sorting method, can be SORT_BY_NAME or SORT_BY_SIZE
public StatCvsTableModel createChangesPerUserForModuleTable(CvsContent content, java.lang.String moduleName)
content
- CvsContentmoduleName
- name of the module for this table
public StatCvsTableModel createTopDevelopersTable(CvsContent content)
content
- CvsContent
public StatCvsTableModel createModulesOfUserTable(CvsContent content, java.lang.String userName)
content
- CvsContentuserName
- user
public StatCvsTableModel createModuleSizesTable(CvsContent content)
content
- CvsContent
public void fillLastTableRowTopDevelopers(java.lang.String[][] data)
data
- the data arraypublic void fillLastTableRow(int size, java.lang.String[][] data)
size
- the table's row countdata
- the data arraypublic void fillTable(java.lang.String[][] data, java.util.Iterator it, RevisionIterator allRevs)
data
- the data arrayit
- IteratorallRevs
- all Revisionspublic void fillTablePerModule(java.lang.String[][] data, java.util.Iterator it, RevisionIterator allRevs)
data
- the data arrayit
- IteratorallRevs
- all Revisionspublic IntegerMap getLocPerUserMap(RevisionIterator source)
source
- RevisionIterator
public java.util.Iterator getUserListSortedByNames()
public void calculateChangesAndLines(CvsContent content, java.util.Iterator it, RevisionIterator allRevs)
content
- CvsContentit
- IteratorallRevs
- all Revisionspublic void calculateChangesAndLinesPerModule(java.util.Iterator it, RevisionIterator allRevs)
it
- IteratorallRevs
- all Revisionspublic java.lang.String getModulePageName(java.lang.String moduleName)
moduleName
- moduleName
public double getPercentageD(int totalCount, int count)
totalCount
- total countcount
- count
public java.lang.String getPercentage(int totalCount, int count)
totalCount
- total countcount
- count
public java.lang.String getPercentage(double count)
count
- percentage
public java.lang.String renderHTMLTable(StatCvsTableModel tableModel, boolean lastLine)
tableModel
- Model for the render processlastLine
- if TRUE a summarising last line will be generated, otherwise FALSE
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |