wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes openoffice com:sun:star:chart2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "openoffice com:sun:star:chart2" Watch "openoffice com:sun:star:chart2" New topic
Author

openoffice com:sun:star:chart2

Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

hi all,

we need to develop a project that is an extension in OO so that it could display a multitype chart we have drawn in Excel.
Essentially, we have a combination chart consists of a candle stick chart and a line chart appearing together. OO could not display it!
(see http://qa.openoffice.org/issues/show_bug.cgi?id=27363 ).

We have research the problem for a while and figure that the easiest way is to develop an extension in Java using the Netbean Integration tool. Probably, adding a new chart type so that it is matched to the excel version. In chart2, it appears that they have changed the structure to a MVC model and under the diagram service, a coordinate system could have a list of charttype. So it appears that it is possible to draw a chart with different charttype on it even without the extension. However, we have not tried the chart2 API as we can't find a working example and SUN is not very helpful either and they discourage us to use chart2.
(see http://graphics.openoffice.org/chart/chart2codestructure.html)

com:sun:star:chart2 is not written in java, it is all written in C++ with those horrible IDL files which I don�t want to know about.
However, i do think UNO make it possible to be used in a java environment.
i searched the OOo website and also the web for an example snippet of a java program that calls com:sun:star:chart2 ; but i didn't found anything.

it would be great if java gurus in this forum show me an example of how to use the OOo chart2 API in a java program.

thanks.

[ August 04, 2008: Message edited by: omar Bakr ]

[ August 04, 2008: Message edited by: omar Bakr ]

[ August 04, 2008: Message edited by: omar Bakr ]
[ August 04, 2008: Message edited by: omar Bakr ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41188
    
  45
Googling for uno chart java openoffice came back with a number of relevant-looking hits.


Ping & DNS - my free Android networking tools app
Yahya Elyasse
Ranch Hand

Joined: Jul 07, 2005
Posts: 510

Originally posted by Ulf Dittmer:
Googling for uno chart java openoffice came back with a number of relevant-looking hits.


thanks for the link..but i did a lot of researches but with small success.
what i'm interested in is how to call the c++ com:sun:star:chart2 API from a java program . i couldn't find even a single example on the web about chart2 API.
anyone have an Idea ?
 
Don't get me started about those stupid light bulbs.
 
subject: openoffice com:sun:star:chart2
 
Similar Threads
loading large image file
Zoom in/out a chart graph
draw combination charts via Openoffice calc programatically
extending openoffice.org charting component
openoffice combined chart (UNO API)