DO NOT REPLY [Bug 36418] [PATCH] PreviewPanel docs changed to reflect introduction of Renderable

2012-03-31 Thread bugzilla
https://issues.apache.org/bugzilla/show_bug.cgi?id=36418

Glenn Adams  changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

--- Comment #3 from Glenn Adams  2012-04-01 06:38:54 UTC ---
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.


PreviewPanel

2011-02-01 Thread Eric Douglas
FOP provides org.apache.fop.render.awt.viewer.PreviewPanel but it's
ugly.  I'm running a client-server program through webstart.  My
programs run on the server and of course all GUI objects need to be
created on the client.  The PreviewPanel requires a Java transformer and
a Renderer to be created on the client, both of which may take a long
time, at least the first time.  They run faster if you run them more
than once so they're cached but my goal is not to create them at all.

So I'm creating my own PreviewPanel with no transformer and no Renderer.
This will display an image, so I require a couple of enhancements.  The
first task is creating this new panel object.  So I'm looking at FOP's
PreviewPanel to copy some of that logic and I'm confused.  What is the
gridPanel object?  PreviewPanel extends JPanel but contains an object of
type JPanel?  Is it creating a panel within a panel?  What's the point
of that?  From what I've found my object should need to (extend type or
contain an object of type?) org.jdesktop.swingx.JXPanel to use an
org.jdesktop.swingx.painter.ImagePainter to draw the picture.

My second enhancement I'd like to add would be to do this without
writing any files to disk.  For the normal transform I'm generating the
entire output programatically so writing the XML, FO, or PDF files are
all optional.  I get the output from Fop in a byte stream which I can
use to either create a Pageable PDF object through pdfbox and send to
the printer without writing to disk or I can clone down to the client to
save as a PDF on their machine.  The PNGRenderer only option is to
generate each page as a physical file on disk.  I'll want to update this
renderer or write a new one based on it to be able to send the pages to
the byte stream instead, or an array of byte streams one per page.


PreviewPanel performance

2010-11-29 Thread Eric Douglas
I'm using Fop in client-server (webstart).  Creating the Fop classes and
the Java Transformer classes on the server is a lot faster than creating
them on the client.

I've been looking through the Fop source and it appears the
org.apache.fop.render.awt.viewer.PreviewPanel object actually requires
you to render output when you attempt to display a page, either by
linking it to an FOUserAgent object which is linked to an Fop object
which is linked to a Result object and calling a transform method on
that Result, or by passing in a Renderable object (contains FO code)
which then creates that Fop object and links it with a SAXResult then
creates the transformer and renders it.

The PreviewPanel also extends JPanel which implements Serializable.
This should mean that I should be able to create a PreviewPanel on the
server and copy it down to the client.
Is there any reason the value for displaying in the PreviewPanel must be
passed in this way, as an unrendered object which must attempt to render
on the client (which requires the Fop class object and the Transformer
object to be created), or can we have it render the results on the
server then copy/serialize it to the client with the rendered results in
it?  I have the 1.0 source code where I can attempt to add that for my
use.  If that will work it would be a great benefit to add it to the
project.  I haven't seen anyone else on the lists mentioning the preview
portion of the project so it's likely no one has mentioned it before
because that piece is not widely used yet.  There might be more people
who would use it if this performance problem could be fixed.



DO NOT REPLY [Bug 36418] - [PATCH] PreviewPanel docs changed to reflect introduction of Renderable

2005-08-31 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36418


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-08-31 10:41 ---
Applied. Thanks a lot. And sorry for the oversight. I missed updating the docs.

http://svn.apache.org/viewcvs?rev=264974&view=rev

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 36418] - [PATCH] PreviewPanel docs changed to reflect introduction of Renderable

2005-08-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36418





--- Additional Comments From [EMAIL PROTECTED]  2005-08-30 15:33 ---
Created an attachment (id=16254)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=16254&action=view)
Trival changes to class description


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.


DO NOT REPLY [Bug 36418] New: - [PATCH] PreviewPanel docs changed to reflect introduction of Renderable

2005-08-30 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36418>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36418

   Summary: [PATCH] PreviewPanel docs changed to reflect
introduction of Renderable
   Product: Fop
   Version: 1.0dev
  Platform: Other
OS/Version: other
Status: NEW
  Severity: trivial
  Priority: P2
 Component: awt renderer
AssignedTo: fop-dev@xml.apache.org
ReportedBy: [EMAIL PROTECTED]


PreviewPanel docs changed to reflect introduction of Renderable and change in
constructor api.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.