|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
com.insightful.gdevice.SApplet
public class SApplet
The SApplet class displays S-PLUS Graphlets. This class draws the border, opens a stream to the Graphlet file, and provides information to JavaScript on the surrounding HTML page. It delegates most of the work to the SGui class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.applet.Applet |
---|
Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
static int |
BORDER_SIZE
|
protected SGui |
m_gui
The main panel that does most of the applet's work. |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
SApplet()
Constructs an SApplet object (does nothing). |
Method Summary | |
---|---|
void |
addPage()
Add a new empty page at the end of the existing pages. |
void |
addSelectedTag(String tag)
Select the specified tag. |
void |
clearSelectedTags()
Clear all selected tags |
int |
getCurrentPageNumber()
Get the page number for the currently-selected page. |
String |
getCurrentPageTag()
Get the tag name for the currently-selected page. |
String |
getCurrentPageTagName()
Get the tag name for the currently-selected page. |
String |
getGraphletVersionString()
|
int |
getNumberPages()
Return the number of pages/tabs in the graphlet. |
String |
getOption(String optionName)
|
String |
getPageTag(int num)
Get full page tag (which may be XML) for a given page number (1-based). |
String |
getPageTagName(int num)
Get page tag name for a given page number (1-based). |
String |
getPageTitle(int num)
Get page title for a given page number (1-based). |
int |
getPageWithTagName(String name)
Get page number (1-based) with a given tag name. |
String |
getRectTags(String rectString)
Return all tags within the specified rectangle. |
String |
getSelectedTags()
Returns the tags of the selected active regions, if any. |
String |
getSelectionRect()
Returns a string giving the last rectangle swept within the current page. |
String |
getSelectionRectKeys()
Return whether the shift and/or control keys were pressed during the last selection rectangle. |
String |
getSelectionRectTags()
Return all tags within the current selection rectangle. |
double |
getZoom()
Return current zoom factor. |
void |
init()
Initializes the applet. |
void |
insertPage(int num)
Add a new empty page at a specified page number (1-based). |
boolean |
isSelectedTag(String tag)
Returns true is the specified tag is selected. |
protected InputStream |
openGraphStream(String spjFileName)
Opens an input stream to the specified Graphlet file. |
void |
removeAllPages()
Remove all pages. |
void |
removePage(int num)
Remove a specified page (1-based). |
void |
removeSelectedTag(String tag)
Unselect the specified tag |
void |
selectTagsFromSelectionRect()
select tags according to last selection rectangle and modifier keys. |
void |
setCurrentPageBack()
Switch the currently-selected page to the last one viewed. |
void |
setCurrentPageByNumber(int num)
Set the currently-selected page to the one with the given number. |
void |
setCurrentPageByTag(String name)
Set the current-selected page to the one with the given tag name. |
void |
setCurrentPageByTagName(String name)
Set the current-selected page to the one with the given tag name. |
void |
setCurrentPageForward()
Switch the currently-selected page to the next one viewed. |
protected void |
setGraphics2DFlag()
|
void |
setOption(String optionName,
String optionValue)
Set options from option dialog. |
void |
setPageTag(int num,
String tag)
Set full page tag (which may be XML) for a given page number (1-based). |
void |
setPageTitle(int num,
String title)
Set page title for a given page number (1-based). |
void |
setSelectedTags(String tags)
Sets the tags of the selected active regions. |
void |
setSelectionRect(String rectString)
Set selection rectangle. |
void |
setSelectionRectKeys(String keyString)
Sets the key flags for the current selection rectangle. |
void |
setZoom(double factor)
Set zoom factor. |
void |
setZoomToRect(String rectString)
Zoom to show specified rectangle. |
void |
setZoomToSelectionRect()
Zoom to last selection rectangle. |
void |
showHelpDialog()
Display popup help dialog. |
void |
showOptionsDialog()
Display popup dialog showing the options. |
void |
showPrintDialog()
Display popup print dialog. |
void |
toggleSelectedTag(String tag)
Toggle the state of the specified tag |
Methods inherited from class java.applet.Applet |
---|
destroy, getAccessibleContext, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected SGui m_gui
public static final int BORDER_SIZE
Constructor Detail |
---|
public SApplet()
Method Detail |
---|
public void init()
init
in class Applet
protected void setGraphics2DFlag()
protected InputStream openGraphStream(String spjFileName)
(gsn) The method now checks the code base before checking the document base. This order seems to be more convenient in Analytic Server Web applications.
spjFileName
- name of the Graphlet file.
public String getGraphletVersionString()
public String getSelectedTags()
public void setSelectedTags(String tags)
tags
- multiple tags, separated by commas.public String getCurrentPageTag()
public String getCurrentPageTagName()
public int getCurrentPageNumber()
public int getNumberPages()
public void setCurrentPageByTag(String name)
name
- page name.public void setCurrentPageByTagName(String name)
name
- page name.public void setCurrentPageByNumber(int num)
num
- page number.public void setCurrentPageBack()
public void setCurrentPageForward()
public int getPageWithTagName(String name)
name
- page tag name.
public String getPageTagName(int num)
num
- 1-based page number.
public String getPageTag(int num)
num
- 1-based page number.
public String getPageTitle(int num)
num
- 1-based page number.
public void setPageTag(int num, String tag)
num
- 1-based page number.tag
- page tag string.public void setPageTitle(int num, String title)
num
- 1-based page number.title
- page tab title.public void removePage(int num)
num
- 1-based page number.public void removeAllPages()
public void insertPage(int num)
num
- 1-based page number.public void addPage()
public void clearSelectedTags()
public void addSelectedTag(String tag)
tag
- single string tag.public void removeSelectedTag(String tag)
tag
- single string tag.public void toggleSelectedTag(String tag)
tag
- single string tag.public boolean isSelectedTag(String tag)
tag
- single string tag.
public String getSelectionRect()
public void setSelectionRect(String rectString)
rectString
- new selection rectangle (as a par-fig string)public double getZoom()
public void setZoom(double factor)
factor
- Zoom factor.public void setZoomToRect(String rectString)
rectString
- rectangle to zoom to (as a par-fig string)public void setZoomToSelectionRect()
public String getSelectionRectTags()
public String getRectTags(String rectString)
rectString
- a rectangle (as a par-fig string)
public String getSelectionRectKeys()
public void setSelectionRectKeys(String keyString)
keyString
- keys to select.public void selectTagsFromSelectionRect()
public void showOptionsDialog()
public void setOption(String optionName, String optionValue)
optionName
- option name.optionValue
- value, as a string.public String getOption(String optionName)
public void showPrintDialog()
public void showHelpDialog()
|
S-PLUS Connect/Java v1.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |