public class TopcatSampControl
extends java.lang.Object
Constructor | Description |
---|---|
TopcatSampControl(org.astrogrid.samp.client.HubConnector hubConnector,
ControlWindow controlWindow) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Map |
createRowMessage(TopcatModel tcModel,
long lrow) |
Creates a message suitable for sending a row highlight SAMP message
to other clients.
|
java.util.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.
|
javax.swing.ListModel |
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 ). |
java.lang.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 java.io.IOException
controlWindow
- TOPCAT top-level windowjava.io.IOException
public ControlWindow getControlWindow()
public java.lang.String getTableIdForSending(TopcatModel tcModel)
tcModel
- table to identifypublic java.util.Map createSubsetMessage(TopcatModel tcModel, RowSubset rset)
tcModel
- tablerset
- row subset of tcModel to sendpublic javax.swing.ListModel getIdentifiableTableListModel()
table-id
/url
message parameter
(table.highlight.row
, table.select.rowList
).
Elements of the returned list are
TopcatModel
s.
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 java.util.Map createRowMessage(TopcatModel tcModel, long lrow)
tcModel
- tablelrow
- index of row in tcModel to highlightCopyright ? 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.