Gnumeric and Java ... use for GUI frontend...

2009-09-04 Thread palmer ristevski
Hello there, I was wondering if anybody has ever tried to create a Java desktop application that makes use of Gnumeric spreadsheet as a GUI front-end. I would like to make a Java-desktop database app and use Gnumeric embedded as a GUI front end for data entry. The Java gui system I use is Java

Goffice Graph Bounds Change

2009-09-04 Thread David Brigada
Hello, I'm using the goffice library to plot some graphs in a custom application. The first time I plot data on a graph, the bounds of the graph automatically adjust to fit the data. However, subsequent times, when I update the series with new data, sometimes it doesn't redo the bounds of

Re: Goffice Graph Bounds Change

2009-09-04 Thread Jean Brefort
What's your code? Do you call gog_series_set_dim when you change the data? or anything else? Regards, Jean Le vendredi 04 septembre 2009 à 12:47 -0400, David Brigada a écrit : Hello, I'm using the goffice library to plot some graphs in a custom application. The first time I plot data on a

Re: Goffice Graph Bounds Change

2009-09-04 Thread David Brigada
Jean, The relevant part on new data looks something like this (simplified a bit): void new_data(GogSeries *series, gdouble *x, gdouble *y) { GOData *dat; GError *error; dat = go_data_vector_val_new(x, 501, NULL); gog_series_set_dim(series, 0, dat, error);

Re: Goffice Graph Bounds Change

2009-09-04 Thread Jean Bréfort
I'd say that this should work. You might try to use gog_object_request_update for the series. There is some similar code in gchemutils (gchemutils.nongnu.org) file libs/gcu/spectrumdoc.cc. Le vendredi 04 septembre 2009 à 13:06 -0400, David Brigada a écrit : Jean, The relevant part on new data