S-PLUS Connect/Java v1.0

com.insightful.gdevice
Class SGraphicsDeviceImplementation

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bycom.insightful.gdevice.SGraphicsDeviceImplementation
All Implemented Interfaces:
Remote, Serializable, SGraphicsDevice

public class SGraphicsDeviceImplementation
extends UnicastRemoteObject
implements SGraphicsDevice

S-PLUS graphics device. Generates graph objects in response to commands read from an SPJ file or sent by the S-PLUS engine.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
SGraphicsDeviceImplementation(SCanvas canvas)
           
SGraphicsDeviceImplementation(SCanvas canvas, SplusSession session)
           
 
Method Summary
 void addCanvas(SCanvas canvas)
          add this canvas to the graphics device, and make it the active canvas.
 void Clear()
           
 void FloatImage(float[] x, float[] y, float[] z, float zMin, float zMax, float zMissing)
           
 void FloatImageRGBA(float[] x, float[] y, float[] z, float zMin, float zMax, float zMissing, byte[] r, byte[] g, byte[] b, byte[] a)
           
 SCanvas getCanvas()
          get the current active canvas for this graphics device.
 ColorScheme getColorScheme()
           
 int[] getColorSchemeInts()
           
 String getColorSchemeName()
           
 int getDeviceNumber()
          get the Splus device number for the graphics device sending to this SCanvasLocalReceiver.
 int getNumberPages()
           
 String getPagePropertyAction(int pageNum)
           
 String getPageTag()
           
 String getPageTitle()
           
 String[] getSelectedTagArray()
           
 Dimension getUserSize()
           
 void Hook(int n, float[] x, float[] y)
           
 void Identify(String[] labels, String[] actions, float[] x1, float[] y1, float[] x2, float[] y2, boolean isPolygons, boolean isOneRegion)
           
 void Lines(float[] xValues, float[] yValues)
           
 void Points(float[] x, float[] y)
           
 void Polygon(float[] x, float[] y)
           
 float[][] ReadPen(int maxPoints)
           
 void removeCanvas(SCanvas canvas)
          Remove this canvas from the graphics device.
 void Segments(float[] x1, float[] y1, float[] x2, float[] y2)
           
 void sendCommandVector(Vector vec)
           
 void setAttributes(HashMap map)
           
 void SetBackgroundColor()
           
 void setColorScheme(ColorScheme cs)
           
 void setColorScheme(String name, int[] colorInts)
           
 void setDeviceNumber(int deviceNumber)
          set the Splus device number for the graphics device sending to this SCanvasLocalReceiver.
 void setPagePropertyAction(int pageNum, String action)
           
 void setPageTag(String tag)
           
 void setPageTitle(String title)
           
 void setSelectedTagArray(String[] tags)
           
 void setUserSize(Dimension dim)
           
 void Text(float x, float y, String str, float justify)
           
 void Wrap()
           
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SGraphicsDeviceImplementation

public SGraphicsDeviceImplementation(SCanvas canvas)
                              throws RemoteException

SGraphicsDeviceImplementation

public SGraphicsDeviceImplementation(SCanvas canvas,
                                     SplusSession session)
                              throws RemoteException
Method Detail

Clear

public void Clear()
           throws RemoteException
Specified by:
Clear in interface SGraphicsDevice
Throws:
RemoteException

SetBackgroundColor

public void SetBackgroundColor()
                        throws RemoteException
Specified by:
SetBackgroundColor in interface SGraphicsDevice
Throws:
RemoteException

Wrap

public void Wrap()
          throws RemoteException
Specified by:
Wrap in interface SGraphicsDevice
Throws:
RemoteException

ReadPen

public float[][] ReadPen(int maxPoints)
                  throws RemoteException
Specified by:
ReadPen in interface SGraphicsDevice
Throws:
RemoteException

Lines

public void Lines(float[] xValues,
                  float[] yValues)
           throws RemoteException
Specified by:
Lines in interface SGraphicsDevice
Throws:
RemoteException

Segments

public void Segments(float[] x1,
                     float[] y1,
                     float[] x2,
                     float[] y2)
              throws RemoteException
Specified by:
Segments in interface SGraphicsDevice
Throws:
RemoteException

Polygon

public void Polygon(float[] x,
                    float[] y)
             throws RemoteException
Specified by:
Polygon in interface SGraphicsDevice
Throws:
RemoteException

Points

public void Points(float[] x,
                   float[] y)
            throws RemoteException
Specified by:
Points in interface SGraphicsDevice
Throws:
RemoteException

Text

public void Text(float x,
                 float y,
                 String str,
                 float justify)
          throws RemoteException
Specified by:
Text in interface SGraphicsDevice
Throws:
RemoteException

FloatImage

public void FloatImage(float[] x,
                       float[] y,
                       float[] z,
                       float zMin,
                       float zMax,
                       float zMissing)
                throws RemoteException
Specified by:
FloatImage in interface SGraphicsDevice
Throws:
RemoteException

FloatImageRGBA

public void FloatImageRGBA(float[] x,
                           float[] y,
                           float[] z,
                           float zMin,
                           float zMax,
                           float zMissing,
                           byte[] r,
                           byte[] g,
                           byte[] b,
                           byte[] a)
                    throws RemoteException
Specified by:
FloatImageRGBA in interface SGraphicsDevice
Throws:
RemoteException

Hook

public void Hook(int n,
                 float[] x,
                 float[] y)
          throws RemoteException
Specified by:
Hook in interface SGraphicsDevice
Throws:
RemoteException

Identify

public void Identify(String[] labels,
                     String[] actions,
                     float[] x1,
                     float[] y1,
                     float[] x2,
                     float[] y2,
                     boolean isPolygons,
                     boolean isOneRegion)
              throws RemoteException
Specified by:
Identify in interface SGraphicsDevice
Throws:
RemoteException

sendCommandVector

public void sendCommandVector(Vector vec)
                       throws RemoteException
Specified by:
sendCommandVector in interface SGraphicsDevice
Throws:
RemoteException

setPageTitle

public void setPageTitle(String title)
                  throws RemoteException
Specified by:
setPageTitle in interface SGraphicsDevice
Throws:
RemoteException

setPageTag

public void setPageTag(String tag)
                throws RemoteException
Specified by:
setPageTag in interface SGraphicsDevice
Throws:
RemoteException

getPageTitle

public String getPageTitle()
                    throws RemoteException
Specified by:
getPageTitle in interface SGraphicsDevice
Throws:
RemoteException

getPageTag

public String getPageTag()
                  throws RemoteException
Specified by:
getPageTag in interface SGraphicsDevice
Throws:
RemoteException

getSelectedTagArray

public String[] getSelectedTagArray()
                             throws RemoteException
Specified by:
getSelectedTagArray in interface SGraphicsDevice
Throws:
RemoteException

setSelectedTagArray

public void setSelectedTagArray(String[] tags)
                         throws RemoteException
Specified by:
setSelectedTagArray in interface SGraphicsDevice
Throws:
RemoteException

getDeviceNumber

public int getDeviceNumber()
                    throws RemoteException
get the Splus device number for the graphics device sending to this SCanvasLocalReceiver.

Specified by:
getDeviceNumber in interface SGraphicsDevice
Throws:
RemoteException

setDeviceNumber

public void setDeviceNumber(int deviceNumber)
                     throws RemoteException
set the Splus device number for the graphics device sending to this SCanvasLocalReceiver.

Specified by:
setDeviceNumber in interface SGraphicsDevice
Throws:
RemoteException

setAttributes

public void setAttributes(HashMap map)
                   throws RemoteException
Specified by:
setAttributes in interface SGraphicsDevice
Throws:
RemoteException

getCanvas

public SCanvas getCanvas()
                  throws RemoteException
get the current active canvas for this graphics device.

Specified by:
getCanvas in interface SGraphicsDevice
Throws:
RemoteException

addCanvas

public void addCanvas(SCanvas canvas)
               throws RemoteException
add this canvas to the graphics device, and make it the active canvas.

Specified by:
addCanvas in interface SGraphicsDevice
Throws:
RemoteException

removeCanvas

public void removeCanvas(SCanvas canvas)
                  throws RemoteException
Remove this canvas from the graphics device.

Specified by:
removeCanvas in interface SGraphicsDevice
Throws:
RemoteException

setColorScheme

public void setColorScheme(ColorScheme cs)
                    throws RemoteException
Specified by:
setColorScheme in interface SGraphicsDevice
Throws:
RemoteException

getColorScheme

public ColorScheme getColorScheme()
                           throws RemoteException
Specified by:
getColorScheme in interface SGraphicsDevice
Throws:
RemoteException

setColorScheme

public void setColorScheme(String name,
                           int[] colorInts)
                    throws RemoteException
Specified by:
setColorScheme in interface SGraphicsDevice
Throws:
RemoteException

getColorSchemeInts

public int[] getColorSchemeInts()
                         throws RemoteException
Specified by:
getColorSchemeInts in interface SGraphicsDevice
Throws:
RemoteException

getColorSchemeName

public String getColorSchemeName()
                          throws RemoteException
Specified by:
getColorSchemeName in interface SGraphicsDevice
Throws:
RemoteException

setUserSize

public void setUserSize(Dimension dim)
                 throws RemoteException
Specified by:
setUserSize in interface SGraphicsDevice
Throws:
RemoteException

getUserSize

public Dimension getUserSize()
                      throws RemoteException
Specified by:
getUserSize in interface SGraphicsDevice
Throws:
RemoteException

getNumberPages

public int getNumberPages()
                   throws RemoteException
Specified by:
getNumberPages in interface SGraphicsDevice
Throws:
RemoteException

getPagePropertyAction

public String getPagePropertyAction(int pageNum)
                             throws RemoteException
Specified by:
getPagePropertyAction in interface SGraphicsDevice
Throws:
RemoteException

setPagePropertyAction

public void setPagePropertyAction(int pageNum,
                                  String action)
                           throws RemoteException
Specified by:
setPagePropertyAction in interface SGraphicsDevice
Throws:
RemoteException

S-PLUS Connect/Java v1.0

Copyright © 2000, 2002 Insightful Corporation
Warning: Classes not documented in the S-PLUS Programmer's Guide may change in future releases.