Package uk.ac.starlink.topcat.interop
Class TableSendActionManager
- java.lang.Object
-
- org.astrogrid.samp.gui.SendActionManager
-
- org.astrogrid.samp.gui.AbstractCallActionManager
-
- org.astrogrid.samp.gui.IndividualCallActionManager
-
- uk.ac.starlink.topcat.interop.TableSendActionManager
-
- All Implemented Interfaces:
Transmitter
public class TableSendActionManager extends org.astrogrid.samp.gui.IndividualCallActionManager implements Transmitter
SendActionManager which will transmit a table. A selection of table formats (table.load.*) is available as required - currently only votable and fits are offered, but it is a one-liner to add other supported formats.- Since:
- 4 Dec 2008
- Author:
- Mark Taylor
-
-
Constructor Summary
Constructors Constructor Description TableSendActionManager(org.astrogrid.samp.gui.GuiHubConnector connector, TopcatSampControl sampControl)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.swing.Action
createBroadcastAction()
protected java.util.Map
createMessage(org.astrogrid.samp.Client client)
javax.swing.JMenu
createSendMenu()
Returns a per-application menu which allows sending the information to any single one of the appropriate recipients.static org.astrogrid.samp.httpd.ServerResource
createTableResource(uk.ac.starlink.table.StarTable table, uk.ac.starlink.table.StarTableWriter writer)
Obtains a (somewhat) persistent resource object via which a table can be made available to external processes.javax.swing.Action
getSendAction(org.astrogrid.samp.Client client)
-
Methods inherited from class org.astrogrid.samp.gui.AbstractCallActionManager
createResultHandler, createTag, dispose, registerHandler
-
Methods inherited from class org.astrogrid.samp.gui.SendActionManager
createSendMenu, createTargetAction, createTargetSelector, disposeSendMenu, getBroadcastAction, getBroadcastIcon, getClientListModel, getConnector, getSendIcon, setEnabled, updateState
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface uk.ac.starlink.topcat.interop.Transmitter
getBroadcastAction, setEnabled
-
-
-
-
Constructor Detail
-
TableSendActionManager
public TableSendActionManager(org.astrogrid.samp.gui.GuiHubConnector connector, TopcatSampControl sampControl)
Constructor.- Parameters:
connector
- hub connectorsampControl
- TOPCAT SAMP control object
-
-
Method Detail
-
createMessage
protected java.util.Map createMessage(org.astrogrid.samp.Client client) throws java.io.IOException
- Specified by:
createMessage
in classorg.astrogrid.samp.gui.IndividualCallActionManager
- Throws:
java.io.IOException
-
createBroadcastAction
public javax.swing.Action createBroadcastAction()
- Overrides:
createBroadcastAction
in classorg.astrogrid.samp.gui.IndividualCallActionManager
-
getSendAction
public javax.swing.Action getSendAction(org.astrogrid.samp.Client client)
- Overrides:
getSendAction
in classorg.astrogrid.samp.gui.AbstractCallActionManager
-
createSendMenu
public javax.swing.JMenu createSendMenu()
Description copied from interface:Transmitter
Returns a per-application menu which allows sending the information to any single one of the appropriate recipients.- Specified by:
createSendMenu
in interfaceTransmitter
- Returns:
- send menu
-
createTableResource
public static org.astrogrid.samp.httpd.ServerResource createTableResource(uk.ac.starlink.table.StarTable table, uk.ac.starlink.table.StarTableWriter writer)
Obtains a (somewhat) persistent resource object via which a table can be made available to external processes.- Parameters:
table
- tablewriter
- table serializer- Returns:
- servable resource
-
-