public class TopcatSampControl extends Object
Constructor and Description |
---|
TopcatSampControl(org.astrogrid.samp.client.HubConnector hubConnector,
ControlWindow controlWindow)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.astrogrid.samp.Message |
createRowMessage(TopcatModel tcModel,
long lrow)
Creates a message suitable for sending a row highlight SAMP message
to other clients.
|
Map<?,?> |
createSubsetMessage(TopcatModel tcModel,
RowSubset rset)
Creates a message suitable for sending a row list selection SAMP
message to other clients.
|
ControlWindow |
getControlWindow()
Returns the control window which owns this connector.
|
ListModel<TopcatModel> |
getIdentifiableTableListModel()
Returns a ListModel listing the TopcatModels that can reasonably
be used in SAMP messages that reference a table using the
table-id /url message parameter
(table.highlight.row , table.select.rowList ). |
String |
getTableIdForSending(TopcatModel tcModel)
Returns a public reference ID indicating the current state
of a given TOPCAT table which will be used to send it in a
SAMP message.
|
public TopcatSampControl(org.astrogrid.samp.client.HubConnector hubConnector, ControlWindow controlWindow) throws IOException
controlWindow
- TOPCAT top-level windowIOException
public ControlWindow getControlWindow()
public String getTableIdForSending(TopcatModel tcModel)
tcModel
- table to identifypublic Map<?,?> createSubsetMessage(TopcatModel tcModel, RowSubset rset)
tcModel
- tablerset
- row subset of tcModel to sendpublic ListModel<TopcatModel> getIdentifiableTableListModel()
table-id
/url
message parameter
(table.highlight.row
, table.select.rowList
).
TopcatModels may be added to this list when they have been involved
in a relevant SAMP message (usually table.load.*
).
Code can register a listener on this list to be notified when
the identifiability status of tables change.public org.astrogrid.samp.Message createRowMessage(TopcatModel tcModel, long lrow)
tcModel
- tablelrow
- index of row in tcModel to highlightCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.