|
|||||||||
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
org.voparis.WebSampConnector
public class WebSampConnector
VOParis Samp Connector class: communication between a Web browser and a VO software using the IVOA Simple Application Messaging Protocol (SAMP).
Nested Class Summary | |
---|---|
static class |
WebSampConnector.highlightRowHandler
This class subscribes the table highlight row message handler of SAMP, and implements the processCall() method of the abstract massage handler class. |
static class |
WebSampConnector.pointAtSkyHandler
This class subscribes the coord.pointAt.sky message handler of SAMP, and implements the processCall() method of the abstract massage handler class. |
static class |
WebSampConnector.selectRowListHandler
This class subscribes the select row list message handler of SAMP, and implements the processCall() method of the abstract massage handler class. |
class |
WebSampConnector.WebSampConnectorClient
This class defines the metadata of a client as seen from the Samp hub. |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary |
---|
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 | |
---|---|
WebSampConnector()
|
Method Summary | |
---|---|
void |
destroy()
Destructor method to explicitly disconnect the client from the hub |
boolean |
disconnect()
This method unregisters the client, terminates the connection and performs any associated required cleanup. |
java.lang.Object[] |
getRegisteredClients()
This method retrieves the list of client public IDs for those clients currently registered. |
java.lang.Object[] |
getSubscribedClients(java.lang.String mtype)
This method retrieves the list of clients which subscribed a given MType |
void |
init()
Init method called by the browser to register the client and to connect to the hub. |
boolean |
isConnected()
This method allows the client to know if he is connected or not to a Samp hub |
boolean |
pointAtSky(double ra,
double dec)
This method allows the client to point a given celestial coordinates |
boolean |
sendAladinScript(java.lang.String script)
This method allows the client to send a script to be executed by Aladin |
boolean |
sendMsg(java.lang.String mType,
java.lang.String id,
java.lang.String name,
java.lang.String url,
java.lang.String keyName)
This method allows the client to broadcast data to VO-compliant applications |
boolean |
tableHighlightRow(java.lang.String tableId,
java.lang.String url,
int row)
This method allows the client to highlight a given row of a table |
boolean |
tableSelectRowList(java.lang.String tableId,
java.lang.String url,
int[] rowList)
This method allows the client to highlight a set of rows of the table |
Methods inherited from class java.applet.Applet |
---|
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.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WebSampConnector()
Method Detail |
---|
public void init()
init
in class java.applet.Applet
public void destroy()
destroy
in class java.applet.Applet
public boolean disconnect() throws java.security.PrivilegedActionException
java.security.PrivilegedActionException
public boolean isConnected() throws java.security.PrivilegedActionException
java.security.PrivilegedActionException
public java.lang.Object[] getRegisteredClients() throws java.security.PrivilegedActionException
java.security.PrivilegedActionException
public java.lang.Object[] getSubscribedClients(java.lang.String mtype) throws java.security.PrivilegedActionException
mtype
- the given MType (e.g. table.load.votable)
java.security.PrivilegedActionException
public boolean sendMsg(java.lang.String mType, java.lang.String id, java.lang.String name, java.lang.String url, java.lang.String keyName) throws java.security.PrivilegedActionException
mType
- the MType of the resource (e.g. table.load.votable)id
- the Id of the resourcename
- the name of the resourceurl
- the URL where is located the resourcekeyName
- key associated to the resource id (param id) which may be used to refer to the loaded resource in subsequent messages
java.security.PrivilegedActionException
public boolean pointAtSky(double ra, double dec) throws java.security.PrivilegedActionException
ra
- the right ascension to point (in degrees)dec
- the declination to point (in degrees)
java.security.PrivilegedActionException
public boolean tableHighlightRow(java.lang.String tableId, java.lang.String url, int row) throws java.security.PrivilegedActionException
tableId
- the Id of the resource (table)url
- the URL where is located the resourcerow
- the number of the row to highlight (from 0 to n-1)
java.security.PrivilegedActionException
public boolean tableSelectRowList(java.lang.String tableId, java.lang.String url, int[] rowList) throws java.security.PrivilegedActionException
tableId
- the Id of the resource (table)url
- the URL where is located the resourcerowList
- an array of integer providing the list of the row numbers to highlight (from 0 to n-1)
java.security.PrivilegedActionException
public boolean sendAladinScript(java.lang.String script) throws java.security.PrivilegedActionException
script
- a string containing the Aladin script to be executed
java.security.PrivilegedActionException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |