S-PLUS Connect/Java v1.0

com.insightful.gdevice
Class SGraphicsLocalDeviceImplementation

java.lang.Object
  extended by com.insightful.gdevice.SGraphicsLocalDeviceImplementation
All Implemented Interfaces:
SGraphicsDevice, Remote

public class SGraphicsLocalDeviceImplementation
extends Object
implements SGraphicsDevice

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


Constructor Summary
SGraphicsLocalDeviceImplementation(SCanvas canvas)
           
 
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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SGraphicsLocalDeviceImplementation

public SGraphicsLocalDeviceImplementation(SCanvas canvas)
Method Detail

Clear

public void Clear()
Specified by:
Clear in interface SGraphicsDevice

SetBackgroundColor

public void SetBackgroundColor()
Specified by:
SetBackgroundColor in interface SGraphicsDevice

Wrap

public void Wrap()
Specified by:
Wrap in interface SGraphicsDevice

ReadPen

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

Lines

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

Segments

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

Polygon

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

Points

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

Text

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

FloatImage

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

FloatImageRGBA

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

Hook

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

Identify

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

sendCommandVector

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

setPageTitle

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

setPageTag

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

getPageTitle

public String getPageTitle()
Specified by:
getPageTitle in interface SGraphicsDevice

getPageTag

public String getPageTag()
Specified by:
getPageTag in interface SGraphicsDevice

getSelectedTagArray

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

setSelectedTagArray

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

getDeviceNumber

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

Specified by:
getDeviceNumber in interface SGraphicsDevice

setDeviceNumber

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

Specified by:
setDeviceNumber in interface SGraphicsDevice

setAttributes

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

getCanvas

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

Specified by:
getCanvas in interface SGraphicsDevice

addCanvas

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

Specified by:
addCanvas in interface SGraphicsDevice

removeCanvas

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

Specified by:
removeCanvas in interface SGraphicsDevice

setColorScheme

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

getColorScheme

public ColorScheme getColorScheme()
Specified by:
getColorScheme in interface SGraphicsDevice

setColorScheme

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

getColorSchemeInts

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

getColorSchemeName

public String getColorSchemeName()
Specified by:
getColorSchemeName in interface SGraphicsDevice

setUserSize

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

getUserSize

public Dimension getUserSize()
Specified by:
getUserSize in interface SGraphicsDevice

getNumberPages

public int getNumberPages()
Specified by:
getNumberPages in interface SGraphicsDevice

getPagePropertyAction

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

setPagePropertyAction

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

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.