org.jfree.ui.about

Class ProjectInfo

Known Direct Subclasses:
JCommonInfo, JCommonXMLInfo

public class ProjectInfo
extends BootableProjectInfo

A class for recording the basic information about a free or open source software project.
Author:
David Gilbert

Constructor Summary

ProjectInfo()
Constructs an empty project info object.
ProjectInfo(String name, String version, String info, Image logo, String copyright, String licenceName, String licenceText)
Constructs a project info object.

Method Summary

List
getContributors()
Returns the list of contributors for the project.
String
getLicenceText()
Returns the licence text.
Image
getLogo()
Returns the logo.
void
setContributors(List contributors)
Sets the list of contributors.
void
setLicenceText(String licenceText)
Sets the project licence text.
void
setLogo(Image logo)
Sets the project logo.
String
toString()
Returns a string describing the project.

Methods inherited from class org.jfree.base.BootableProjectInfo

addDependency, getBootClass, getDependencies, isAutoBoot, setAutoBoot, setBootClass

Methods inherited from class org.jfree.base.BasicProjectInfo

addLibrary, addOptionalLibrary, addOptionalLibrary, getCopyright, getLibraries, getOptionalLibraries, setCopyright, setInfo, setLicenceName, setName, setVersion

Methods inherited from class org.jfree.base.Library

equals, getInfo, getLicenceName, getName, getVersion, hashCode, setInfo, setLicenceName, setName, setVersion

Constructor Details

ProjectInfo

public ProjectInfo()
Constructs an empty project info object.

ProjectInfo

public ProjectInfo(String name,
                   String version,
                   String info,
                   Image logo,
                   String copyright,
                   String licenceName,
                   String licenceText)
Constructs a project info object.
Parameters:
name - the name of the project.
version - the version.
info - other info (usually a URL).
logo - the project logo.
copyright - a copyright statement.
licenceName - the name of the licence that applies to the project.
licenceText - the text of the licence that applies to the project.

Method Details

getContributors

public List getContributors()
Returns the list of contributors for the project.
Returns:
the list of contributors.

getLicenceText

public String getLicenceText()
Returns the licence text.
Returns:
the licence text.

getLogo

public Image getLogo()
Returns the logo.
Returns:
the project logo.

setContributors

public void setContributors(List contributors)
Sets the list of contributors.
Parameters:
contributors - the list of contributors.

setLicenceText

public void setLicenceText(String licenceText)
Sets the project licence text.
Parameters:
licenceText - the licence text.

setLogo

public void setLogo(Image logo)
Sets the project logo.
Parameters:
logo - the project logo.

toString

public String toString()
Returns a string describing the project.
Returns:
a string describing the project.