[kepler-dev] [Bug 3056] - unable to print output of Display actor

bugzilla-daemon@ecoinformatics.org bugzilla-daemon at ecoinformatics.org
Mon Jan 28 15:38:39 PST 2008


cxh at eecs.berkeley.edu changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED

------- Comment #2 from cxh at eecs.berkeley.edu  2008-01-28 15:38 -------
The issue here is that the Display actor does not implement the Java
Printable interface

Display has an inner class that creates a ptolemy.actor.gui.TextEditor.
TextEditor extends ptolemy.actor.gui.TableauFrame which in turn
extends ptolemy.gui.Top.  Top contains:

     // Print button disabled by default, unless this class implements
     // one of the JDK1.2 printing interfaces.
     if (Top.this instanceof Printable
              || Top.this instanceof Pageable) {
     } else {

ptolemy.actor.gui.HTMLViewer implements Printable and includes a print()
method that could be used as an example.  Note that HTMLViewer does
have a FIXME:

// FIXME: This should be handled in Top...
and then defines the print() method.

Other classes that implements Printable are:

More information about the Kepler-dev mailing list