The PCL format is used as the input to Gavin Sherlock's cluster,
http://genetics.stanford.edu/~sherlock/cluster.html#formats . There is
also some discussion of the PCL format at
should help you figure out what your PCL file's contents mean.
With Java Treeview one can load a PCL file and then export the
resulting image to postscript. This can then be converted to PDF with
Adobe Illustrator or a similar tool. If you are interested in coding
direct pdf export, I recommend that you write a PdfExportPanel class
based on either the
recommend that you start by reading over the text of
BitmapExportPanel.save() and PostscriptExportPanel.save(), as this is
the method you would need to modify in order to make a PdfExportPanel.
Note that the BitmapExportPanel delegates all drawing to standard Java
Treeview components using "drawAll(g, 1.0);" wherease the
PostscriptExportPanel has to output actual postscript for each part of
the image. That's why the BitmapExportPanel has 154 lines whereas the
PostscriptExportPanel has 452.
If you really want to do all the rendering yourself, you can borrow
edu.stanford.genetics.treeview.model.FlatFileParser and interpret the
pcl yourself. Slightly less work would be to use the
edu.stanford.genetics.treeview.model.TVModelLoader class to load the
pcl into a TVModel object, and then render from that. But if you ask
me, it's much easier to write a subclass of ExportPanel as described
How are you going to do PDF export in java? I wanted to add PDF export
to java treeview back in the day, but I couldn't find a high-quality
On Sep 13, 2004, at 9:02 AM, BOGDAN wrote:
> Message body follows:
> I wanted to ask you about small consultation.
> In my education Ive a task of converting a pcl file into pdf.
> Its necessary to write on JAVA.
> I could not find the precise description of structure of a file pcl
> and system of commands pcl.
> But Ive found your project in which you parse pcl file
> and TreeView).
> Could you help me: whether you know any references to the
> documentation about pcl file format, or ready pcl file parsers?
> Best regards
> Bogdan mailto:bnll@...
> This message has been sent to you, a registered SourceForge.net user,
> by another site user, through the SourceForge.net site. This message
> has been delivered to your SourceForge.net mail alias. You may reply
> to this message using the "Reply" feature of your email client, or
> using the messaging facility of SourceForge.net at: