|
S-PLUS Connect/Java v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.insightful.gdevice.SCanvasAWT
com.insightful.gdevice.SCanvas
public class SCanvas
An SCanvas is an object that can save and draw Splus graphic commands.
| Field Summary |
|---|
| Fields inherited from class com.insightful.gdevice.SCanvasAWT |
|---|
m_bgColor, m_bgColorA, m_bgColorB, m_bgColorG, m_bgColorR, m_clearCount, m_hasEmbeddedFileData, m_tag, m_title, SPLUS_DISPLAY_HEIGHT, SPLUS_DISPLAY_WIDTH |
| Constructor Summary | |
|---|---|
SCanvas()
|
|
| Method Summary | |
|---|---|
void |
add(com.insightful.gdevice.SGraphCommand cmd)
Adds an SGraphCommand to this SCanvas. |
void |
add(Vector vec)
Add a vector of graph commands to this SCanvas. |
void |
addCanvasListener(SCanvasListener listen)
|
static SCanvas |
createSCanvas(SCanvasAWT awtCanvas)
Create an SCanvas with the same properties as an SCanvasAWT. |
SCanvasAWT |
getAWT()
|
int |
getDeviceNumber()
Return Splus device number for this canvas. |
SGraphicsDevice |
getGraphicsDevice()
Return SGraphicsDevice currently sending graphics commands to this SCanvas, or NULL, if there is no such device. |
void |
printString(Graphics g,
String txt,
int x,
int y)
print string using normal drawString. |
float[][] |
readPen(int maxPoints,
com.insightful.gdevice.SGraphCommand cmd)
Let the user interactively read up to maxPoints points, returning the positions in a float[][] { xvals, yvals } in the coordinate system of the given SGraphCommand. |
void |
removeCanvasListener(SCanvasListener listen)
|
void |
setColorScheme(ColorScheme cs)
this only sets the color scheme for the SCanvas itself. |
void |
setGraphicsDevice(SGraphicsDevice graphicsDevice)
Set SGraphicsDevice currently sending graphics commands to this SCanvas, or NULL, if there is no such device. |
void |
setNewActiveCanvas(SCanvas newCanvas)
Set a new canvas to be the active canvas for this canvas' graphics device. |
void |
setSelectedTagArray(String[] tags)
|
void |
setTitle(String title)
Sets the canvas page title. |
void |
unlinkGraphicsDevice()
Unlink any links between this canvas and its graphics device. |
void |
wrap()
Send wrap command to everyone interested in this canvas. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCanvas()
| Method Detail |
|---|
public void addCanvasListener(SCanvasListener listen)
public void removeCanvasListener(SCanvasListener listen)
public float[][] readPen(int maxPoints,
com.insightful.gdevice.SGraphCommand cmd)
public void wrap()
public void setTitle(String title)
SCanvasAWT
setTitle in class SCanvasAWTpublic void add(com.insightful.gdevice.SGraphCommand cmd)
add in class SCanvasAWTpublic void add(Vector vec)
add in class SCanvasAWTvec - Vector of SGraphCommand objects to add.public void setColorScheme(ColorScheme cs)
setColorScheme in class SCanvasAWTpublic SGraphicsDevice getGraphicsDevice()
public void setGraphicsDevice(SGraphicsDevice graphicsDevice)
public void setNewActiveCanvas(SCanvas newCanvas)
public void unlinkGraphicsDevice()
public int getDeviceNumber()
public SCanvasAWT getAWT()
public void printString(Graphics g,
String txt,
int x,
int y)
printString in class SCanvasAWTpublic static SCanvas createSCanvas(SCanvasAWT awtCanvas)
public void setSelectedTagArray(String[] tags)
setSelectedTagArray in class SCanvasAWT
|
S-PLUS Connect/Java v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||