Changeset 3855


Ignore:
Timestamp:
03/28/08 13:45:03 (12 years ago)
Author:
curtis
Message:

Fill in a few TODO blocks.

Location:
trunk/loci/plugins/config
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/config/ConfigWindow.java

    r3850 r3855  
    3535 
    3636/** 
    37  * TODO 
     37 * A window for managing configuration of the LOCI plugins. 
    3838 * 
    3939 * <dl><dt><b>Source code:</b></dt> 
     
    6565      Class irClass = Class.forName("loci.formats.ImageReader"); 
    6666      Object ir = irClass.newInstance(); 
    67       Method getClasses = ir.getClass().getMethod("getReaders", null); 
     67      Method getClasses = irClass.getMethod("getReaders", null); 
    6868      Object[] readers = (Object[]) getClasses.invoke(ir, null); 
    6969      formats = new FormatEntry[readers.length]; 
     
    8787      " (" + System.getProperty("java.vendor") + ")"; 
    8888 
     89    String qtVersion = null; 
     90    try { 
     91      Class qtToolsClass = Class.forName("loci.formats.LegacyQTTools"); 
     92      Object qtTools = qtToolsClass.newInstance(); 
     93      Method getQTVersion = qtToolsClass.getMethod("getQTVersion", null); 
     94      qtVersion = (String) getQTVersion.invoke(qtTools, null); 
     95    } 
     96    catch (Throwable t) { } 
     97 
     98    String matlabVersion = null; 
     99    try { 
     100      Class matlabClass = Class.forName("com.mathworks.jmi.Matlab"); 
     101      Object matlab = matlabClass.newInstance(); 
     102      Method eval = matlabClass.getMethod("eval", new Class[] {String.class}); 
     103      String ans = (String) eval.invoke(matlab, new Object[] {"version"}); 
     104      if (ans.startsWith("ans =")) ans = ans.substring(5); 
     105      matlabVersion = ans.trim(); 
     106    } 
     107    catch (Throwable t) { } 
     108 
    89109    LibraryEntry[] libraries = { 
    90110      // core libraries 
    91       new LibraryEntry("Java", libCore, 
    92         "TODO", javaVersion, 
    93         "TODO", "TODO", "TODO"), 
     111      new LibraryEntry("Java", libCore, // classes.jar, rt.jar 
     112        "java.lang.System", javaVersion, 
     113        "http://java.sun.com/", "Varies", "Core Java library"), 
    94114      new LibraryEntry("ImageJ", libCore, // ij.jar 
    95115        "ij.ImageJ", null, 
    96116        "http://rsb.info.nih.gov/ij/", "Public domain", 
    97117        "Core ImageJ library"), 
    98       //new LibraryEntry("Java3D", libCore, 
    99       //  "javax.vecmath.Point3d", null, 
    100       //  "TODO", "TODO", "TODO"), 
    101       //new LibraryEntry("Jython", libCore, 
    102       //  "TODO", null, 
    103       //  "TODO", "TODO", "TODO"), 
    104       //new LibraryEntry("MATLAB", libCore, 
    105       //  "TODO", null, 
    106       //  "TODO", "TODO", "TODO"), 
     118      new LibraryEntry("Java3D", libCore, 
     119        "javax.vecmath.Point3d", null, 
     120        "https://java3d.dev.java.net/", "GPL", 
     121        "Not used; listed for informational purposes only."), 
     122      new LibraryEntry("Jython", libCore, 
     123        "org.python.util.PythonInterpreter", null, 
     124        "http://www.jython.org/", "BSD", 
     125        "Not used; listed for informational purposes only."), 
     126      new LibraryEntry("MATLAB", libCore, 
     127        "com.mathworks.jmi.Matlab", matlabVersion, 
     128        "http://www.mathworks.com/products/matlab/", "Commercial", 
     129        "Not used; listed for informational purposes only. " + 
     130        "Note that for MATLAB to be successfully detected here, " + 
     131        "ImageJ must be launched from within the MATLAB environment."), 
    107132 
    108133      // native libraries 
    109       new LibraryEntry("QuickTime for Java (native)", libNative, 
    110         "TODO", null, 
    111         "TODO", "TODO", "TODO"), 
     134      new LibraryEntry("QuickTime for Java", libNative, 
     135        "quicktime.QTSession", qtVersion, // QTJava.zip 
     136        "http://www.apple.com/quicktime/", "Commercial", 
     137        "Bio-Formats has two modes of operation for QuickTime movies:\n" + 
     138        "1) QTJava mode requires the QuickTime for Java library to be " + 
     139        "installed.\n" + 
     140        "2) Native mode works on systems with no QuickTime (e.g., Linux).\n" + 
     141        "\n" + 
     142        "Using QTJava mode adds or improves support for the following " + 
     143        "codecs:\n" + 
     144        "1) [iraw] Intel YUV Uncompressed: enables write\n" + 
     145        "2) [rle] Animation (run length encoded RGB): " + 
     146        "improves read, enables write\n" + 
     147        "3) [rpza] Apple Video 16 bit \"road pizza\": improves read\n" + 
     148        "4) [cvid] Cinepak: enables read and write\n" + 
     149        "5) [svq1] Sorenson Video: enables read and write\n" + 
     150        "6) [svq3] Sorenson Video 3: enables read and write\n" + 
     151        "7) [mp4v] MPEG-4: enables read and write\n" + 
     152        "8) [h263] H.263: enables read and write\n" + 
     153        "\n" + 
     154        "You can toggle which mode is used " + 
     155        "in the Formats tab's \"QuickTime\" entry."), 
    112156      new LibraryEntry("JAI Image I/O Tools (native)", libNative, 
    113157        "TODO", null, 
    114         "TODO", "TODO", "TODO"), 
     158        "https://jai-imageio.dev.java.net/", "BSD", 
     159        "Used by Bio-Formats for lossless JPEG support in DICOM."), 
    115160      new LibraryEntry("Nikon ND2 plugin", libNative, 
    116161        "TODO", null, 
    117         "TODO", "TODO", "TODO"), 
     162        "http://rsb.info.nih.gov/ij/plugins/nd2-reader.html", "Commercial", 
     163        "Optional plugin. If you have Nikon's ND2 plugin installed, you can " + 
     164        "configure Bio-Formats to use it instead of its native ND2 support " + 
     165        "in the Formats tab's \"Nikon ND2\" entry."), 
    118166 
    119167      // ImageJ plugins 
    120168      new LibraryEntry("LOCI plugins", libPlugin, 
    121169        "loci.plugins.About", "@date@", // loci_plugins.jar 
    122         "TODO", "TODO", "TODO"), 
     170        "http://www.loci.wisc.edu/ome/formats.html", "LGPL", 
     171        "LOCI Plugins for ImageJ: a collection of ImageJ plugins including " + 
     172        "the Bio-Formats Importer, Bio-Formats Exporter, Data Browser, " + 
     173        "Stack Colorizer, Stack Slicer, and OME plugins."), 
    123174      new LibraryEntry("Image5D", libPlugin, 
    124175        "i5d.Image5D", null, // Image_5D.jar 
    125         "http://www.nanoimaging.de/View5D/", "TODO", "TODO"), 
     176        "http://rsb.info.nih.gov/ij/plugins/image5d.html", "Public domain", 
     177        "Optional plugin. If you have Image5D installed, the Bio-Formats " + 
     178        "Importer plugin can use Image5D to display your image stacks."), 
    126179      new LibraryEntry("View5D", libPlugin, 
    127180        "View5D_", null, // View5D_.jar 
    128         "TODO", "TODO", "TODO"), 
     181        "http://www.nanoimaging.de/View5D/", "GPL", 
     182        "Optional plugin. If you have View5D installed, the Bio-Formats " + 
     183        "Importer plugin can use View5D to display your image stacks."), 
    129184 
    130185      // Java libraries 
    131186      new LibraryEntry("Bio-Formats", libJava, 
    132187        "loci.formats.IFormatReader", "@date@", // bio-formats.jar 
    133         "http://www.loci.wisc.edu/ome/formats.html", "LGPL", "TODO"), 
    134       new LibraryEntry("TODO bufr", libJava, 
    135         "TODO", null, // bufr-1.1.00.jar 
    136         "TODO", "TODO", "TODO"), 
     188        "http://www.loci.wisc.edu/ome/formats.html", "LGPL", 
     189        "LOCI Bio-Formats package for reading and converting " + 
     190        "biological file formats."), 
     191      new LibraryEntry("BUFR Java Decoder", libJava, 
     192        "ucar.bufr.BufrDump", null, // bufr-1.1.00.jar 
     193        "http://www.unidata.ucar.edu/software/decoders/", "LGPL", 
     194        "Used by the NetCDF Java library."), 
    137195      new LibraryEntry("TODO clib", libJava, 
    138196        "com.sun.medialib.codec.jiio.Constants", null, // clibwrapper_jiio.jar 
    139         "TODO", "TODO", "TODO"), 
    140       new LibraryEntry("TODO grib", libJava, 
    141         "TODO", null, // grib-5.1.03.jar 
    142         "TODO", "TODO", "TODO"), 
     197        "https://jai-imageio.dev.java.net/", "BSD", 
     198        "Java wrapper for JAI Image I/O Tools native library."), 
     199      new LibraryEntry("GRIB Java Decoder", libJava, 
     200        "ucar.grib.GribChecker", null, // grib-5.1.03.jar 
     201        "http://www.unidata.ucar.edu/software/decoders/", "LGPL", 
     202        "Used by the NetCDF Java library."), 
    143203      new LibraryEntry("JAI Image I/O Tools (Java)", libJava, 
    144204        "com.sun.media.imageio.plugins.jpeg2000.J2KImageReadParam", 
     
    150210        "http://sourceforge.net/forum/message.php?msg_id=2550619", "LGPL", 
    151211        "Used by Bio-Formats for Zeiss LSM metadata in MDB database files."), 
    152       new LibraryEntry("TODO netcdf", libJava, 
     212      new LibraryEntry("NetCDF Java", libJava, 
    153213        "TODO", null, // netcdf-4.0.jar 
    154         "TODO", "TODO", "TODO"), 
     214        "http://www.unidata.ucar.edu/software/netcdf-java/", "LGPL", 
     215        "Used by Bio-Formats for HDF support (Imaris 5.5)."), 
    155216      new LibraryEntry("Apache Jakarta POI (LOCI version)", libJava, 
    156217        "org.apache.poi.poifs.filesystem.POIFSDocument", null, // poi-loci.jar 
     
    159220        "and memory efficiency improvements. Used by Bio-Formats for OLE " + 
    160221        "support in CXD, IPW, OIB and ZVI formats."), 
    161       new LibraryEntry("QuickTime for Java (Java)", libJava, 
    162         "quicktime.QTSession", null, // QTJava.zip 
    163         "TODO", "TODO", "TODO"), 
    164       new LibraryEntry("TODO slf4j", libJava, 
    165         "TODO", null, // slf4j-jdk14.jar 
    166         "TODO", "TODO", "TODO"), 
     222      new LibraryEntry("Simple Logging Facade for Java", libJava, 
     223        "org.slf4j.Logger", null, // slf4j-jdk14.jar 
     224        "http://www.slf4j.org/", "MIT", 
     225        "Used by the NetCDF Java library."), 
    167226      new LibraryEntry("OME Java", libJava, 
    168227        "ome.xml.OMEXMLNode", null, // ome-java.jar 
     
    340399    JList list = new JList(data); 
    341400    list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); 
    342     list.setVisibleRowCount(20); 
     401    list.setVisibleRowCount(25); 
    343402    list.setPrototypeCellValue("abcdefghijklmnopqrstuvwxyz12345678"); 
    344403    list.addListSelectionListener(this); 
     
    347406 
    348407  private JTextField makeTextField() { 
    349     JTextField textField = new JTextField(40); 
     408    JTextField textField = new JTextField(38); 
    350409    int prefHeight = textField.getPreferredSize().height; 
    351410    textField.setMaximumSize(new Dimension(Integer.MAX_VALUE, prefHeight)); 
  • trunk/loci/plugins/config/FormatEntry.java

    r3850 r3855  
    2929 
    3030/** 
    31  * TODO 
     31 * A list entry for the configuration window's Formats tab. 
    3232 * 
    3333 * <dl><dt><b>Source code:</b></dt> 
  • trunk/loci/plugins/config/LibraryEntry.java

    r3850 r3855  
    2727 
    2828/** 
    29  * TODO 
     29 * A list entry for the configuration window's Libraries tab. 
    3030 * 
    3131 * <dl><dt><b>Source code:</b></dt> 
  • trunk/loci/plugins/config/LociConfig.java

    r3850 r3855  
    2929 
    3030/** 
    31  * TODO 
     31 * An ImageJ plugin for displaying the LOCI plugins configuration dialog. 
    3232 * 
    3333 * <dl><dt><b>Source code:</b></dt> 
Note: See TracChangeset for help on using the changeset viewer.