net.sf.statcvs.output
Class HTMLOutput

java.lang.Object
  extended bynet.sf.statcvs.output.HTMLOutput

public class HTMLOutput
extends java.lang.Object

This class creates HTML File output

Version:
$Id: HTMLOutput.java,v 1.101 2003/06/05 10:51:55 cyganiak Exp $
Author:
Anja Jentzsch

Field Summary
static int AUTHORS_PER_ACTIVITY_CHART
          number of authors per activity chart
static java.lang.String DELETED_DIRECTORY_ICON
          Filename for deleted folder icon
static java.lang.String DELETED_FILE_ICON
          Filename for deleted file icon
static java.lang.String DIRECTORY_ICON
          Filename for folder icon
static java.lang.String FILE_ICON
          Filename for file icon
static int ICON_HEIGHT
          Height of file icons
static int ICON_WIDTH
          Width of file icons
static int IMAGE_HEIGHT
          standard image height
static int IMAGE_WIDTH
          standard image width
static int LOC_IMAGE_HEIGHT
          loc image height
static int LOC_IMAGE_WIDTH
          loc image width
static int MOST_RECENT_COMMITS_LENGTH
          Length for Most Recent Commits list in Author pages and Directory pages
static int SMALL_IMAGE_HEIGHT
          small image height
static int SMALL_IMAGE_WIDTH
          small image width
static java.lang.String WEB_FILE_PATH
          Path to web distribution files inside the distribution JAR, relative to the Main class
 
Constructor Summary
HTMLOutput(CvsContent content)
          Creates a new HTMLOutput object for the given repository
 
Method Summary
 void createHTMLSuite()
          Creates the Suite of HTML Files
static java.lang.String getActivityDayChartFilename(Author author)
           
static java.lang.String getActivityTimeChartFilename(Author author)
           
static java.lang.String getAuthorPageFilename(Author author)
           
static java.lang.String getCodeDistributionChartFilename(Author author)
           
static java.lang.String getDirectoryLocChartFilename(Directory directory)
          Returns the filename for a directory's LOC chart
static java.lang.String getDirectoryPageFilename(Directory directory)
          Returns the filename for a direcotry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_FILE_PATH

public static final java.lang.String WEB_FILE_PATH
Path to web distribution files inside the distribution JAR, relative to the Main class

See Also:
Constant Field Values

DIRECTORY_ICON

public static final java.lang.String DIRECTORY_ICON
Filename for folder icon

See Also:
Constant Field Values

DELETED_DIRECTORY_ICON

public static final java.lang.String DELETED_DIRECTORY_ICON
Filename for deleted folder icon

See Also:
Constant Field Values

FILE_ICON

public static final java.lang.String FILE_ICON
Filename for file icon

See Also:
Constant Field Values

DELETED_FILE_ICON

public static final java.lang.String DELETED_FILE_ICON
Filename for deleted file icon

See Also:
Constant Field Values

ICON_WIDTH

public static final int ICON_WIDTH
Width of file icons

See Also:
Constant Field Values

ICON_HEIGHT

public static final int ICON_HEIGHT
Height of file icons

See Also:
Constant Field Values

MOST_RECENT_COMMITS_LENGTH

public static final int MOST_RECENT_COMMITS_LENGTH
Length for Most Recent Commits list in Author pages and Directory pages

See Also:
Constant Field Values

IMAGE_WIDTH

public static final int IMAGE_WIDTH
standard image width

See Also:
Constant Field Values

IMAGE_HEIGHT

public static final int IMAGE_HEIGHT
standard image height

See Also:
Constant Field Values

SMALL_IMAGE_WIDTH

public static final int SMALL_IMAGE_WIDTH
small image width

See Also:
Constant Field Values

SMALL_IMAGE_HEIGHT

public static final int SMALL_IMAGE_HEIGHT
small image height

See Also:
Constant Field Values

LOC_IMAGE_WIDTH

public static final int LOC_IMAGE_WIDTH
loc image width

See Also:
Constant Field Values

LOC_IMAGE_HEIGHT

public static final int LOC_IMAGE_HEIGHT
loc image height

See Also:
Constant Field Values

AUTHORS_PER_ACTIVITY_CHART

public static final int AUTHORS_PER_ACTIVITY_CHART
number of authors per activity chart

See Also:
Constant Field Values
Constructor Detail

HTMLOutput

public HTMLOutput(CvsContent content)
Creates a new HTMLOutput object for the given repository

Parameters:
content - the repository
Method Detail

createHTMLSuite

public void createHTMLSuite()
                     throws java.io.IOException
Creates the Suite of HTML Files

Throws:
java.io.IOException - thrown if problems occur with the creation of files

getDirectoryPageFilename

public static java.lang.String getDirectoryPageFilename(Directory directory)
Returns the filename for a direcotry

Parameters:
directory - a directory
Returns:
filename for the directory page

getDirectoryLocChartFilename

public static java.lang.String getDirectoryLocChartFilename(Directory directory)
Returns the filename for a directory's LOC chart

Parameters:
directory - a directory
Returns:
filename for directory's LOC chart

getAuthorPageFilename

public static java.lang.String getAuthorPageFilename(Author author)
Parameters:
author - an author
Returns:
filename for author's page

getActivityTimeChartFilename

public static java.lang.String getActivityTimeChartFilename(Author author)
Parameters:
author - an author
Returns:
filename for author's activity by hour of day chart

getActivityDayChartFilename

public static java.lang.String getActivityDayChartFilename(Author author)
Parameters:
author - an author
Returns:
filename for author's activity by day of week chart

getCodeDistributionChartFilename

public static java.lang.String getCodeDistributionChartFilename(Author author)
Parameters:
author - an author
Returns:
filename for author's code distribution chart