S-PLUS Connect/Java v1.0

com.insightful.gdevice
Class SGraphicsDeviceReceiver

java.lang.Object
  extended bycom.insightful.gdevice.SGraphicsDeviceReceiver

public class SGraphicsDeviceReceiver
extends Object

Server-side object providing access to a client-side SGraphicsDeviceFactoryImplementation. Forwards graphics commands to the graphics device on the client.


Field Summary
static String BAD_DISPLAY_MSG
           
static Vector m_standardColorSchemeIndexNames
           
static Vector m_standardColorSchemes
           
 
Constructor Summary
SGraphicsDeviceReceiver(float deviceNumber, String props)
           
 
Method Summary
static void addIdentifyCommand(int deviceNumber, float[] x1, float[] y1, float[] x2, float[] y2, String[] labels, String[] actions, int polygonFlag, int oneRegionFlag)
           
 void addToCommandVector(com.insightful.gdevice.SGraphCommand cmd)
           
static boolean checkServerDisplay()
          Tests whether the DISPLAY variable on the server is set to a legitimate value.
 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)
           
 void flushCommandVector()
           
static void getColorSchemeClientInfo()
           
static String getColorSchemeIndexName(int schemeNumber)
           
static int getColorSchemeIndexSize()
           
 int[] getColorSchemeInts()
           
static int[] getColorSchemeInts(int deviceNumber)
           
 String getColorSchemeName()
           
static String getColorSchemeName(int deviceNumber)
           
static com.insightful.gdevice.SGraphicsDeviceReceiver.FlushThread getFlushThread()
           
 int getNumberPages()
           
static int getNumberPages(int deviceNumber)
           
 String getPagePropertyAction(int pageNum)
           
static String getPagePropertyAction(int deviceNumber, int pageNum)
           
 String getPageTag()
           
static String getPageTag(int deviceNumber)
           
 String getPageTitle()
           
static String getPageTitle(int deviceNumber)
           
 String[] getSelectedTagArray()
           
static String[] getSelectedTagArray(int deviceNumber)
           
static SGraphicsDeviceFactory getSGraphicsDeviceFactory()
           
static int[] getStandardColorSchemeInts(int schemeNumber)
           
static String getStandardColorSchemeName(int schemeNumber)
           
static boolean getUseCommandVector(int deviceNumber)
           
 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)
           
static boolean isLegacyGraphicsMode()
          Retrieve the legacy graphics mode
 void Lines(float[] xValues, float[] yValues)
           
 void notifyFlushThread()
          make sure that flushCommandVector is called eventually.
 void notifyFromFlushThread()
           
 void Points(float[] x, float[] y)
           
 void Polygon(float[] x, float[] y)
           
 int ReadPen(float[] ax, float[] ay)
           
 void Segments(float[] x1, float[] y1, float[] x2, float[] y2)
           
 void setAttribute(String name, float val)
           
 void SetBackgroundColor()
           
static void setColorScheme(int deviceNumber, String csName, int[] colorInts)
           
 void setColorScheme(String name, int[] colorInts)
           
static void setColorSchemeClientInfo()
           
static void setColorSchemeCommit(int deviceNumber)
           
static void setColorSchemeIndexName(int schemeNumber, String name)
           
static void setColorSchemeIndexSize(int size)
           
static void setColorSchemeName(int deviceNumber, String csName)
           
static void setColorSchemeRow(int deviceNumber, int row, int red, int green, int blue)
           
static void setLegacyGraphicsMode(boolean legacy)
          Set the legacy graphics mode on or off
static void setPagePropertyAction(int deviceNumber, int pageNum, String action)
           
 void setPagePropertyAction(int pageNum, String action)
           
static void setPageTag(int deviceNumber, String tag)
           
 void setPageTag(String tag)
           
static void setPageTitle(int deviceNumber, String title)
           
 void setPageTitle(String title)
           
static void setSelectedTagArray(int deviceNumber, String[] tags)
           
 void setSelectedTagArray(String[] tags)
           
static void setStandardColorScheme(int schemeNumber, String csName, int[] csInts)
           
static void setUseCommandVector(int deviceNumber, boolean val)
           
 void Text(float x, float y, String str, float justify)
           
 void Wrap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_standardColorSchemes

public static Vector m_standardColorSchemes

m_standardColorSchemeIndexNames

public static Vector m_standardColorSchemeIndexNames

BAD_DISPLAY_MSG

public static String BAD_DISPLAY_MSG
Constructor Detail

SGraphicsDeviceReceiver

public SGraphicsDeviceReceiver(float deviceNumber,
                               String props)
Method Detail

getSGraphicsDeviceFactory

public static SGraphicsDeviceFactory getSGraphicsDeviceFactory()

Clear

public void Clear()

SetBackgroundColor

public void SetBackgroundColor()

Wrap

public void Wrap()

ReadPen

public int ReadPen(float[] ax,
                   float[] ay)

Lines

public void Lines(float[] xValues,
                  float[] yValues)

Segments

public void Segments(float[] x1,
                     float[] y1,
                     float[] x2,
                     float[] y2)

Polygon

public void Polygon(float[] x,
                    float[] y)

Points

public void Points(float[] x,
                   float[] y)

Text

public void Text(float x,
                 float y,
                 String str,
                 float justify)

FloatImage

public void FloatImage(float[] x,
                       float[] y,
                       float[] z,
                       float zMin,
                       float zMax,
                       float zMissing)

FloatImageRGBA

public void FloatImageRGBA(float[] x,
                           float[] y,
                           float[] z,
                           float zMin,
                           float zMax,
                           float zMissing,
                           byte[] r,
                           byte[] g,
                           byte[] b,
                           byte[] a)

Hook

public void Hook(int n,
                 float[] x,
                 float[] y)

Identify

public void Identify(String[] labels,
                     String[] actions,
                     float[] x1,
                     float[] y1,
                     float[] x2,
                     float[] y2,
                     boolean isPolygons,
                     boolean isOneRegion)

setPageTitle

public void setPageTitle(String title)

setPageTag

public void setPageTag(String tag)

getPageTitle

public String getPageTitle()

getPageTag

public String getPageTag()

getSelectedTagArray

public String[] getSelectedTagArray()

setSelectedTagArray

public void setSelectedTagArray(String[] tags)

setAttribute

public void setAttribute(String name,
                         float val)

setColorSchemeName

public static void setColorSchemeName(int deviceNumber,
                                      String csName)

setColorSchemeRow

public static void setColorSchemeRow(int deviceNumber,
                                     int row,
                                     int red,
                                     int green,
                                     int blue)

setColorSchemeCommit

public static void setColorSchemeCommit(int deviceNumber)

setColorScheme

public static void setColorScheme(int deviceNumber,
                                  String csName,
                                  int[] colorInts)

getColorSchemeInts

public static int[] getColorSchemeInts(int deviceNumber)

getColorSchemeName

public static String getColorSchemeName(int deviceNumber)

setColorScheme

public void setColorScheme(String name,
                           int[] colorInts)

getColorSchemeInts

public int[] getColorSchemeInts()

getColorSchemeName

public String getColorSchemeName()

setStandardColorScheme

public static void setStandardColorScheme(int schemeNumber,
                                          String csName,
                                          int[] csInts)

getStandardColorSchemeInts

public static int[] getStandardColorSchemeInts(int schemeNumber)

getStandardColorSchemeName

public static String getStandardColorSchemeName(int schemeNumber)

setColorSchemeIndexSize

public static void setColorSchemeIndexSize(int size)

getColorSchemeIndexSize

public static int getColorSchemeIndexSize()

setColorSchemeIndexName

public static void setColorSchemeIndexName(int schemeNumber,
                                           String name)

getColorSchemeIndexName

public static String getColorSchemeIndexName(int schemeNumber)

getColorSchemeClientInfo

public static void getColorSchemeClientInfo()

setColorSchemeClientInfo

public static void setColorSchemeClientInfo()

addIdentifyCommand

public static void addIdentifyCommand(int deviceNumber,
                                      float[] x1,
                                      float[] y1,
                                      float[] x2,
                                      float[] y2,
                                      String[] labels,
                                      String[] actions,
                                      int polygonFlag,
                                      int oneRegionFlag)

setPageTitle

public static void setPageTitle(int deviceNumber,
                                String title)

setPageTag

public static void setPageTag(int deviceNumber,
                              String tag)

getPageTitle

public static String getPageTitle(int deviceNumber)

getPageTag

public static String getPageTag(int deviceNumber)

getSelectedTagArray

public static String[] getSelectedTagArray(int deviceNumber)

setSelectedTagArray

public static void setSelectedTagArray(int deviceNumber,
                                       String[] tags)

setLegacyGraphicsMode

public static void setLegacyGraphicsMode(boolean legacy)
Set the legacy graphics mode on or off


isLegacyGraphicsMode

public static boolean isLegacyGraphicsMode()
Retrieve the legacy graphics mode


checkServerDisplay

public static boolean checkServerDisplay()
Tests whether the DISPLAY variable on the server is set to a legitimate value. Calls Toolkit.getDefaultToolkit() and returns false if an exception is thrown. This will happen if the DISPLAY is not set, is set incorrectly, or is set to an Xserver that does not allow access.


getUseCommandVector

public static boolean getUseCommandVector(int deviceNumber)

setUseCommandVector

public static void setUseCommandVector(int deviceNumber,
                                       boolean val)

flushCommandVector

public void flushCommandVector()

addToCommandVector

public void addToCommandVector(com.insightful.gdevice.SGraphCommand cmd)

getFlushThread

public static com.insightful.gdevice.SGraphicsDeviceReceiver.FlushThread getFlushThread()

notifyFlushThread

public void notifyFlushThread()
make sure that flushCommandVector is called eventually.


notifyFromFlushThread

public void notifyFromFlushThread()

getNumberPages

public int getNumberPages()

getNumberPages

public static int getNumberPages(int deviceNumber)

getPagePropertyAction

public String getPagePropertyAction(int pageNum)

getPagePropertyAction

public static String getPagePropertyAction(int deviceNumber,
                                           int pageNum)

setPagePropertyAction

public void setPagePropertyAction(int pageNum,
                                  String action)

setPagePropertyAction

public static void setPagePropertyAction(int deviceNumber,
                                         int pageNum,
                                         String action)

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.