|
|
|
|
Re: [ANN] Generic Image Export Plug In [message #208943 is a reply to message #208761] |
Thu, 09 February 2006 21:54 |
Thomas Maier Messages: 117 Registered: July 2009 |
Senior Member |
|
|
Hi Adrian,
thanks for the nice words, I even see a couple of unexpected downloads
at SourceForge :). We implemented initial SVG export. I just uploaded
it to SourceForge, see
http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html
Next week I will take a look at GMF and check whether we can use their
export code. It is certainly more advanced than our code. It probably
couldn't be less advanced :>. In other words: we just started
implementing it and exported some very simple diagrams and it could be a
base to start working on. However, if the GMF code looks good I would
quickly dump our code and integrate theirs without looking back and just
keep the "have one generic image export plug in for all types of GEF
diagrams idea".
Regards, Thomas.
Adrian Gygax schrieb:
> Hi Thomas!
>
> Your plugin seems to have great potential and would be exactly what we
> need for our GEF project.
>
> How is the progress of the SVG support in your plugin?
>
> Best regards
> Adrian
>
> Thomas Maier schrieb:
>
>> Hello all,
>>
>> a few minutes ago, I uploaded the first version of an Image Export plug
>> in to SourceForge. It is an Eclipse plug in intended to simplify the
>> task of exporting images from GEF diagrams to several formats. We have
>> implemented BMP and JPEG export and are working on PDF and SVG. There
>> is already a first version of PDF export on SourceForge. SVG should be
>> following this week. For details and small samples of exported
>> diagrams, I would like to point you to
>>
>> http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html
>>
>> To the GEF gurus: I would have liked to provide sample figure providers
>> for the GEF examples. Unfortunately, the GEF examples do not export
>> their packages so I am not able to do that. I would have liked to write
>> something like
>>
>> public class GEFShapesExampleFigureProvider
>> extends AbstractFigureProvider
>> {
>> public IFigure provideExportImageFigure(IFile diagramFile)
>> {
>> IFigure figure = null;
>> try
>> {
>> ObjectInputStream in =
>> new ObjectInputStream(diagramFile.getContents());
>> ShapesDiagram diagram = (ShapesDiagram) in.readObject();
>> in.close();
>>
>> GraphicalViewer viewer =
>> createViewer(diagram, new ShapesEditPartFactory());
>> figure = getExportFigure(viewer);
>> }
>> catch (Exception e)
>> {
>> // Just an example.
>> e.printStackTrace();
>> }
>> return figure;
>> }
>> }
>>
>> but I cannot access the examples' types (e.g. ShapesDiagram). Any
>> chance that might be changed in a future release?
>>
>> Feedback is very much welcome. Regards, Thomas.
|
|
|
Re: [ANN] Generic Image Export Plug In [message #208950 is a reply to message #207419] |
Thu, 09 February 2006 21:57 |
Thomas Maier Messages: 117 Registered: July 2009 |
Senior Member |
|
|
Ok, I just upped the second release containing inital SVG export code.
Still, to the GEF gurus: how about exporting the GEF examples' packages?
Is that possible? Randy? Pratik? Anybody?
Regards, Thomas.
Thomas Maier schrieb:
> Hello all,
>
> a few minutes ago, I uploaded the first version of an Image Export plug
> in to SourceForge. It is an Eclipse plug in intended to simplify the
> task of exporting images from GEF diagrams to several formats. We have
> implemented BMP and JPEG export and are working on PDF and SVG. There
> is already a first version of PDF export on SourceForge. SVG should be
> following this week. For details and small samples of exported
> diagrams, I would like to point you to
>
> http://www.se.eecs.uni-kassel.de/~thm/Projects/ImageExport/i ndex.html
>
> To the GEF gurus: I would have liked to provide sample figure providers
> for the GEF examples. Unfortunately, the GEF examples do not export
> their packages so I am not able to do that. I would have liked to write
> something like
>
> public class GEFShapesExampleFigureProvider
> extends AbstractFigureProvider
> {
> public IFigure provideExportImageFigure(IFile diagramFile)
> {
> IFigure figure = null;
> try
> {
> ObjectInputStream in =
> new ObjectInputStream(diagramFile.getContents());
> ShapesDiagram diagram = (ShapesDiagram) in.readObject();
> in.close();
>
> GraphicalViewer viewer =
> createViewer(diagram, new ShapesEditPartFactory());
> figure = getExportFigure(viewer);
> }
> catch (Exception e)
> {
> // Just an example.
> e.printStackTrace();
> }
> return figure;
> }
> }
>
> but I cannot access the examples' types (e.g. ShapesDiagram). Any
> chance that might be changed in a future release?
>
> Feedback is very much welcome. Regards, Thomas.
--
Thomas Maier - Research Assistant - University of Kassel, Germany
|
|
|
Powered by
FUDForum. Page generated in 0.03618 seconds