s-news
[Top] [All Lists]

Re: com.insightful.gdevice.SGraphCommand

To: <support@insightful.com>, <s-news@lists.biostat.wustl.edu>
Subject: Re: com.insightful.gdevice.SGraphCommand
From: "Day, Roger" <day@upci.pitt.edu>
Date: Thu, 27 Jan 2005 20:31:42 -0500
Cc: "Suriano, Vincent" <suriano@upci.pitt.edu>
Thread-index: AcUEjv9as5alVh/1QROASZdCIUobRgASaSiQ
Thread-topic: [S] com.insightful.gdevice.SGraphCommand
Never mind.  
 
The solution is:
 
javax.swing.JComponent j = com.insightful.splus.SplusUserApp.getGraph();
javax.swing.JFrame f = new javax.swing.JFrame();
f.add(j);
 
After proper resizing etc, graphs will appear in j,
which is of type com.insightful.splus.graph.CanvasTabbedPane (also undocumented).
 
 -----Original Message-----
From: Day, Roger [mailto:day@biounix3.upci.pitt.edu]
Sent: Thursday, January 27, 2005 11:41 AM
To: support@insightful.com
Cc: s-news@lists.biostat.wustl.edu
Subject: [S] com.insightful.gdevice.SGraphCommand

I have been running Splus code from Java,
using the Splus.jar file.  This has worked pretty well.
At this time I am trying to produce Splus graphics from a Java application.
 
com.insightful.gdevice.SCanvas 
 
looks like the class to use, but its add() method takes an undocumented abstract class,
 
com.insightful.gdevice.SGraphCommand  , as its argument.
 
I have also tried sending  'library("winjava"); java.graph()' to Splus,
but there is no effect.
 
So, how can one run Splus graphics commands from Java?
Thanks in advance for any help.
 

Roger Day, ScD

University of Pittsburgh Department of Biostatistics

University of Pittsburgh Center for Biomedical Informatics

University of Pittsburgh Cancer Institute

 
<Prev in Thread] Current Thread [Next in Thread>