I finally worked it out. Ouf.
I had to create a ImageFactoryLoader and a Loader to create my initial Image
from the context. After reading the code I conclude that we can't avoid
creating the Loader and LoaderFacotry.
If you look at the code of
Stepan and Eric thanks for the suggestions but the whole thing must be done
in java (the charting is only a part of the app).
Jeremias solution is close to what I must do.
After following the explanations of Jeremias and reading the sources of
Barcode4J, etc. I manage to get something out, but
On 05/01/2011 10:52, gen1986 wrote:
Hello,
Stepan and Eric thanks for the suggestions but the whole thing must be done
in java (the charting is only a part of the app).
Jeremias solution is close to what I must do.
After following the explanations of Jeremias and reading the sources of
Hi Chris,
Did you add the
file named org.apache.xmlgraphics.image.loader.spi.ImageConverter to
the JAR containing your code in META-INF\services sub directory as
suggested by Jeremias?
Yep (you can see it in the attachment).
I have created a ImageChartPreloader to preload the ImageInfo
On 05.01.2011 16:25:20 gen1986 wrote:
Hi Chris,
Did you add the
file named org.apache.xmlgraphics.image.loader.spi.ImageConverter to
the JAR containing your code in META-INF\services sub directory as
suggested by Jeremias?
Yep (you can see it in the attachment).
the attachment
Hi,
I'm working on a project where I have to extend FO to support custom tags
for drawing charts.
For doing so I've extended ElementMapping and created my custom
ContentHandlerFactory, etc.
Until here it's ok. I can get all the infos about the chart from the xsl-fo
template.
My problem is that
Hi Jeremias,
Thanks for your quick response.
However I'll give some more informations about what I'm trying to achieve.
A sketch of the template :
... XSL-FO tags ...
fo:instream-foreign-object...
chart:chart xmlns:c=www...charts..
c:pie width=.. height=..
c:title value=Hello Piechart/
...
Hi, Eugen,
try to look for a minute on the XSL-T 2.0 library graph2svg, could be found
on http://graph2svg.jinak.cz/examples_en.html;. It is pure XSL-T 2.0 from XML
to SVG (when using two-phase transformation even inline SVG). The source XML
code of graph2svg looks very similar to Your example
On 03.01.2011 20:34:03 gen1986 wrote:
Hi Jeremias,
Thanks for your quick response.
However I'll give some more informations about what I'm trying to achieve.
A sketch of the template :
... XSL-FO tags ...
fo:instream-foreign-object...
chart:chart xmlns:c=www...charts..
c:pie
I was going to suggest SVG, the simplest way to produce a chart, but the OP
asked about extensions like they already had something more complicated in mind
with their mind made up about how they want to do it.
10 matches
Mail list logo