|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.topcat.interop.PlasticCommunicator
public class PlasticCommunicator
TopcatCommunicator which uses PLASTIC as the messaging protocol.
| Constructor Summary | |
|---|---|
PlasticCommunicator(ControlWindow control)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addConnectionListener(ChangeListener listener)
Adds a listener which will be notified any time that connection status may have changed. |
ImageActivity |
createImageActivity()
Returns an object which can be used to display images. |
Transmitter |
createImageTransmitter(DensityWindow densWin)
Returns an object that can send the density map currently displayed in the density plot window to other applications as a FITS image. |
JComponent |
createInfoPanel()
Optionally returns a panel which can be displayed in the control window to show communications status. |
Transmitter |
createResourceListTransmitter(uk.ac.starlink.vo.RegistryPanel regPanel,
String resourceType)
Returns an object that can send the currently displayed resources from a registry panel. |
RowActivity |
createRowActivity()
Returns an object which can be used to send messages highlighting single table rows. |
SkyPointActivity |
createSkyPointActivity()
Returns an object which can be used to send messages drawing attention to particular sky positions. |
SpectrumActivity |
createSpectrumActivity()
Returns an object which can be used to display spectra. |
SubsetActivity |
createSubsetActivity()
Returns an object which can be used to send messages selecting table row subsets. |
Transmitter |
createSubsetTransmitter(TopcatModel tcModel,
SubsetWindow subSelector)
Returns an object that can send the RowSubset currently selected in a given subset window to other applications as a row selection on a commonly-known table. |
Action |
createWindowAction(Component parent)
Constructs an action which will display a control window for this communicator. |
Action[] |
getInteropActions()
Returns a list of actions suitable for insertion in a general purpose menu associated with interoperability functionality (register/unregister etc). |
String |
getProtocolName()
Returns the name of the protocol over which this object is implemented. |
Transmitter |
getTableTransmitter()
Returns an object that can send send the currently selected table from TOPCAT to other applications. |
boolean |
isConnected()
Indicates (without attempting a connection) whether a hub connection is currently in force. |
void |
maybeStartHub()
According to the policy of this communicator, this method may start a hub if none is already running. |
boolean |
setActive()
Must be called before any of the actions provided by this object are used. |
void |
startHub(boolean external)
Attempts to start a messaging hub suitable for use with this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlasticCommunicator(ControlWindow control)
control - TOPCAT control window| Method Detail |
|---|
public String getProtocolName()
TopcatCommunicator
getProtocolName in interface TopcatCommunicatorpublic boolean setActive()
TopcatCommunicator
setActive in interface TopcatCommunicatorpublic Action[] getInteropActions()
TopcatCommunicator
getInteropActions in interface TopcatCommunicatorpublic Transmitter getTableTransmitter()
TopcatCommunicator
getTableTransmitter in interface TopcatCommunicatorpublic Transmitter createImageTransmitter(DensityWindow densWin)
TopcatCommunicator
createImageTransmitter in interface TopcatCommunicatordensWin - density plot window
public Transmitter createSubsetTransmitter(TopcatModel tcModel,
SubsetWindow subSelector)
TopcatCommunicator
createSubsetTransmitter in interface TopcatCommunicatortcModel - tablesubSelector - subset window
public Transmitter createResourceListTransmitter(uk.ac.starlink.vo.RegistryPanel regPanel,
String resourceType)
TopcatCommunicator
createResourceListTransmitter in interface TopcatCommunicatorregPanel - registry panel componentresourceType - resource subtype - must match the appropriate
voresource.loadlist.* MType subtype
public void startHub(boolean external)
throws IOException
TopcatCommunicator
startHub in interface TopcatCommunicatorexternal - true to run hub in external JVM,
false to run it in the current one
IOExceptionpublic void maybeStartHub()
TopcatCommunicator
maybeStartHub in interface TopcatCommunicatorpublic SkyPointActivity createSkyPointActivity()
TopcatCommunicator
createSkyPointActivity in interface TopcatCommunicatorpublic RowActivity createRowActivity()
TopcatCommunicator
createRowActivity in interface TopcatCommunicatorpublic SubsetActivity createSubsetActivity()
TopcatCommunicator
createSubsetActivity in interface TopcatCommunicatorpublic SpectrumActivity createSpectrumActivity()
TopcatCommunicator
createSpectrumActivity in interface TopcatCommunicatorpublic ImageActivity createImageActivity()
TopcatCommunicator
createImageActivity in interface TopcatCommunicatorpublic JComponent createInfoPanel()
TopcatCommunicator
createInfoPanel in interface TopcatCommunicatorpublic Action createWindowAction(Component parent)
TopcatCommunicator
createWindowAction in interface TopcatCommunicatorparent - parent component
public boolean isConnected()
TopcatCommunicator
isConnected in interface TopcatCommunicatorpublic void addConnectionListener(ChangeListener listener)
TopcatCommunicator
addConnectionListener in interface TopcatCommunicatorlistener - listener to add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||