public class TopcatPlasticListener
extends uk.ac.starlink.plastic.HubManager
| Constructor and Description |
|---|
TopcatPlasticListener(ControlWindow controlWindow)
Constructs a new listener which will react appropriately to
messages from the hub.
|
| Modifier and Type | Method and Description |
|---|---|
ComboBoxModel<Object> |
createPlasticComboBoxModel(URI messageId)
Returns a ComboBoxModel which selects applications registered with
this hub manager; only those which support a given message are
included.
|
uk.ac.starlink.plastic.PlasticTransmitter |
createSubsetTransmitter(TopcatModel tcModel,
SubsetWindow subSelector)
Returns a new PlasticTransmitter which will transmit subsets to
one or more listeners.
|
uk.ac.starlink.plastic.PlasticTransmitter |
createTableTransmitter()
Returns a new PlasticTransmitter which will transmit tables to
one or more listeners.
|
Object |
doPerform(URI sender,
URI message,
List args)
Does the work for processing a hub message.
|
boolean |
highlightRow(TopcatModel tcModel,
long lrow,
URI[] recipients)
Transmits a request for listening applications to highlight a given
table row.
|
void |
pointAt(double ra2000,
double dec2000,
URI[] recipients)
Broadcasts a request for listening applications to point at a given
sky position.
|
void |
transmitSubset(TopcatModel tcModel,
RowSubset rset,
URI[] recipients)
Sends a row subset to a specific list of PLASTIC listeners.
|
public TopcatPlasticListener(ControlWindow controlWindow)
controlWindow - control window into which accepted tables
will be loaded etcpublic Object doPerform(URI sender, URI message, List args) throws IOException
doPerform in class uk.ac.starlink.plastic.HubManagersender - sender IDmessage - message ID (determines the action required)args - message argument listIOExceptionpublic ComboBoxModel<Object> createPlasticComboBoxModel(URI messageId)
messageId - message which must be supportedpublic uk.ac.starlink.plastic.PlasticTransmitter createTableTransmitter()
public uk.ac.starlink.plastic.PlasticTransmitter createSubsetTransmitter(TopcatModel tcModel, SubsetWindow subSelector)
subSelector - SubsetWindow which supplies the currently selected
subset (SubsetWindow.getSelectedSubset())public void transmitSubset(TopcatModel tcModel, RowSubset rset, URI[] recipients) throws IOException
ivo://votech.org/votable/showObjects message.tcModel - topcat modelrset - row subset within tcModelrecipients - listeners to receive it; null means do a broadcastIOExceptionpublic boolean highlightRow(TopcatModel tcModel, long lrow, URI[] recipients) throws IOException
tcModel - topcat model of table to broadcastlrow - row index within tcModelrecipients - array of plastic IDs for target applications;
if null, broadcast will be to allIOExceptionpublic void pointAt(double ra2000,
double dec2000,
URI[] recipients)
throws IOException
ra2000 - right ascension J2000.0 in degreesdec2000 - declination J2000.0 in degreesrecipients - array of plastic IDs for target applications;
if null, broadcast will be to allIOExceptionCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.