[Date Prev][Date Next][Index][Thread]
[SGT Mail Archive]
[SGT Main Page]
Re: Refreshing Graph
*************************************************
Message from the sgt mail list.
*************************************************
Yee,
If you look closely at the code in
gov.noaa.pmel.sgt.demo.PseudoRealTimeData (used by the JRealTimeDemo), you
will see that when the data is changed in the object you need to have that
object fire a PropertyChangeEvent of type "dataChanged", when the data has
changed, and "rangeChanged", when the range has changed. JPlotLayout (and
SGT) register as listeners for these events.
Don
At 07:05 PM 4/15/2002 +0100, Yee-Ting Li wrote:
>*************************************************
>Message from the sgt mail list.
>*************************************************
>
>Hi,
>
>I'm using sgt v2.1 to plot a series of network metrics. I've creates a class
>which holds a series of SGTData objects which i which to plot. I do this to
>allow dynamic addition and or removal from the array.
>
>In my main program, i loop through all of these and to a
>JPlotLayout.addData()
>to it (very similiar to the TestData example).
>
>I've then created a button that allows me to add addition data to the list of
>SGTData objects. However, the problem is that i can not update the graph to
>relect the changes to the data set! :(
>
>Also, when i right click to adjust the axis range, the axis updates, but the
>graph doesn't (well, actually the axis get's gets longer and stretched off
>the
>frame). Resizing the window doesn't help either!
>
>I've tried repaint() on the frame and on the JPlotLayout to no avail! HELP!!!!
>
>
>Regards,
>
>Yee.
>
>--
>*************************************************************************
> Yee-Ting Li email: ytl@hep.ucl.ac.uk
> High Energy Particle Physics http://www.hep.ucl.ac.uk/~ytl
> University College London Tel: +44 (0) 20 7679 1376
> Gower Street Fax: +44 (0) 20 7679 7145
> London, WC1E 6BT
> United Kingdom
>*************************************************************************
>
>
>*************************************************
>To remove yourself from this mailing list,
>send mail to <Majordomo@epic.noaa.gov> with
>"unsubscribe sgt" in the message body.
==================================================
Donald W. Denbo dwd@pmel.noaa.gov
Ph: (206) 526-4487 Fax: (206) 526-6744
Collaborative tools: http://www.epic.noaa.gov/collab/
Netcdf Browser: http://www.epic.noaa.gov/java/ncBrowse
Scientific Java Graphics: http://www.epic.noaa.gov/java/sgt
EPIC Oceangraphic Data Management: http://www.pmel.noaa.gov/epic
==================================================
*************************************************
To remove yourself from this mailing list,
send mail to <Majordomo@epic.noaa.gov> with
"unsubscribe sgt" in the message body.