/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutFrame(final String title, final ProjectInfo project) { this(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Prints information about JCommon to standard output. * * @param args no arguments are honored. */ public static void main(final String[] args) { System.out.println(JCommon.INFO.toString()); }
/** * Constructs a library reference from a ProjectInfo object. * * @param project information about a project. */ public Library(final ProjectInfo project) { this(project.getName(), project.getVersion(), project.getLicenceName(), project.getInfo()); } }
result.append(getName()); result.append(" version "); result.append(getVersion()); result.append(".\n"); result.append(getCopyright()); result.append(".\n"); result.append("\n"); result.append("\n"); result.append("FURTHER INFORMATION:"); result.append(getInfo()); result.append("\n"); result.append("CONTRIBUTORS:"); result.append(getName()); result.append(":"); final Library[] libraries = getLibraries(); if (libraries.length != 0) { for (int i = 0; i < libraries.length; i++) { result.append(getName()); result.append(" LICENCE TERMS:"); result.append("\n"); result.append(getLicenceText());
private static void collectLibraries (final ProjectInfo info, final List list) { org.jfree.base.Library[] libs = info.getLibraries(); for (int i = 0; i < libs.length; i++) { final org.jfree.base.Library lib = libs[i]; if (list.contains(lib) == false) { // prevent duplicates, they look ugly .. list.add(lib); if (lib instanceof ProjectInfo) { collectLibraries((ProjectInfo) lib, list); } } } libs = info.getOptionalLibraries(); for (int i = 0; i < libs.length; i++) { final org.jfree.base.Library lib = libs[i]; if (list.contains(lib) == false) { // prevent duplicates, they look ugly .. list.add(lib); if (lib instanceof ProjectInfo) { collectLibraries((ProjectInfo) lib, list); } } } }
/** * Returns the JFreeChart logo (a picture of a gorilla). * * @return The JFreeChart logo. */ public Image getLogo() { Image logo = super.getLogo(); if (logo == null) { URL imageURL = this.getClass().getClassLoader().getResource( "org/jfree/chart/gorilla.jpg"); if (imageURL != null) { ImageIcon temp = new ImageIcon(imageURL); // use ImageIcon because it waits for the image to load... logo = temp.getImage(); setLogo(logo); } } return logo; }
result.append(getName()); result.append(" version "); result.append(getVersion()); result.append(".\n"); result.append(getCopyright()); result.append(".\n"); result.append("\n"); result.append("\n"); result.append("FURTHER INFORMATION:"); result.append(getInfo()); result.append("\n"); result.append("CONTRIBUTORS:"); result.append(getName()); result.append(":"); final Library[] libraries = getLibraries(); if (libraries.length != 0) { for (int i = 0; i < libraries.length; i++) { result.append(getName()); result.append(" LICENCE TERMS:"); result.append("\n"); result.append(getLicenceText());
private static void collectLibraries (final ProjectInfo info, final List list) { org.jfree.base.Library[] libs = info.getLibraries(); for (int i = 0; i < libs.length; i++) { final org.jfree.base.Library lib = libs[i]; if (list.contains(lib) == false) { // prevent duplicates, they look ugly .. list.add(lib); if (lib instanceof ProjectInfo) { collectLibraries((ProjectInfo) lib, list); } } } libs = info.getOptionalLibraries(); for (int i = 0; i < libs.length; i++) { final org.jfree.base.Library lib = libs[i]; if (list.contains(lib) == false) { // prevent duplicates, they look ugly .. list.add(lib); if (lib instanceof ProjectInfo) { collectLibraries((ProjectInfo) lib, list); } } } }
/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutFrame(final String title, final ProjectInfo project) { this(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
result.append(getName()); result.append(" version "); result.append(getVersion()); result.append(".\n"); result.append(getCopyright()); result.append(".\n"); result.append("\n"); result.append("\n"); result.append("FURTHER INFORMATION:"); result.append(getInfo()); result.append("\n"); result.append("CONTRIBUTORS:"); result.append(getName()); result.append(":"); final Library[] libraries = getLibraries(); if (libraries.length != 0) { for (int i = 0; i < libraries.length; i++) { result.append(getName()); result.append(" LICENCE TERMS:"); result.append("\n"); result.append(getLicenceText());
/** * Constructs a library reference from a ProjectInfo object. * * @param project information about a project. */ public Library(final ProjectInfo project) { this(project.getName(), project.getVersion(), project.getLicenceName(), project.getInfo()); } }
private static void collectLibraries (final ProjectInfo info, final List list) { org.jfree.base.Library[] libs = info.getLibraries(); for (int i = 0; i < libs.length; i++) { final org.jfree.base.Library lib = libs[i]; if (list.contains(lib) == false) { // prevent duplicates, they look ugly .. list.add(lib); if (lib instanceof ProjectInfo) { collectLibraries((ProjectInfo) lib, list); } } } libs = info.getOptionalLibraries(); for (int i = 0; i < libs.length; i++) { final org.jfree.base.Library lib = libs[i]; if (list.contains(lib) == false) { // prevent duplicates, they look ugly .. list.add(lib); if (lib instanceof ProjectInfo) { collectLibraries((ProjectInfo) lib, list); } } } }
/** * Prints information about JCommon to standard output. * * @param args no arguments are honored. */ public static void main(final String[] args) { System.out.println(JCommon.INFO.toString()); }
/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutFrame(final String title, final ProjectInfo project) { this(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Constructs a library reference from a ProjectInfo object. * * @param project information about a project. */ public Library(final ProjectInfo project) { this(project.getName(), project.getVersion(), project.getLicenceName(), project.getInfo()); } }
/** * Prints information about JCommon to standard output. * * @param args no arguments are honored. */ public static void main(final String[] args) { System.out.println(JCommon.INFO.toString()); }
/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutDialog(final String title, final ProjectInfo project) { init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Prints information about JFreeChart to standard output. * * @param args no arguments are honored. */ public static void main(String[] args) { System.out.println(JFreeChart.INFO.toString()); }
/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutDialog(final String title, final ProjectInfo project) { init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }
/** * Constructs an about frame. * * @param title the frame title. * @param project information about the project. */ public AboutDialog(final String title, final ProjectInfo project) { init(title, project.getName(), "Version " + project.getVersion(), project.getInfo(), project.getLogo(), project.getCopyright(), project.getLicenceText(), project.getContributors(), project); }