SampCommunicator
public interface TopcatCommunicator
Modifier and Type | Method | Description |
---|---|---|
void |
addConnectionListener(javax.swing.event.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 densityWindow) |
Returns an object that can send the density map currently displayed
in the density plot window to other applications as a FITS image.
|
javax.swing.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,
java.lang.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 subsetWindow) |
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.
|
javax.swing.Action |
createWindowAction(java.awt.Component parent) |
Constructs an action which will display a control window for this
communicator.
|
javax.swing.Action[] |
getInteropActions() |
Returns a list of actions suitable for insertion in a general purpose
menu associated with interoperability functionality
(register/unregister etc).
|
java.lang.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.
|
java.lang.String getProtocolName()
boolean setActive()
javax.swing.Action[] getInteropActions()
Transmitter getTableTransmitter()
Transmitter createImageTransmitter(DensityWindow densityWindow)
densityWindow
- density plot windowTransmitter createSubsetTransmitter(TopcatModel tcModel, SubsetWindow subsetWindow)
tcModel
- tablesubsetWindow
- subset windowTransmitter createResourceListTransmitter(uk.ac.starlink.vo.RegistryPanel regPanel, java.lang.String resourceType)
regPanel
- registry panel componentresourceType
- resource subtype - must match the appropriate
voresource.loadlist.* MType subtypeSkyPointActivity createSkyPointActivity()
RowActivity createRowActivity()
SubsetActivity createSubsetActivity()
ImageActivity createImageActivity()
SpectrumActivity createSpectrumActivity()
void startHub(boolean external) throws java.io.IOException
external
- true to run hub in external JVM,
false to run it in the current onejava.io.IOException
void maybeStartHub() throws java.io.IOException
java.io.IOException
javax.swing.JComponent createInfoPanel()
javax.swing.Action createWindowAction(java.awt.Component parent)
parent
- parent componentboolean isConnected()
void addConnectionListener(javax.swing.event.ChangeListener listener)
listener
- listener to addCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.