Package uk.ac.starlink.topcat.interop
Class SampImageActivity
- java.lang.Object
-
- uk.ac.starlink.topcat.interop.SampImageActivity
-
- All Implemented Interfaces:
Activity,ImageActivity
public class SampImageActivity extends java.lang.Object implements ImageActivity
ImageActivity implementation using SAMP for the external communications.- Since:
- 18 Sep 2008
- Author:
- Mark Taylor
-
-
Field Summary
-
Fields inherited from interface uk.ac.starlink.topcat.interop.ImageActivity
FORMAT_FITS, FORMAT_GIF, FORMAT_JPEG, FORMAT_PNG, KNOWN_FORMATS
-
-
Constructor Summary
Constructors Constructor Description SampImageActivity(org.astrogrid.samp.gui.GuiHubConnector connector)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisplayImage(java.lang.String location, java.lang.String label)Displays an image according to the current selections of the components owned by this activity.javax.swing.JComboBoxgetFormatSelector()Returns a combo box for selecting image format.javax.swing.ComboBoxModelgetTargetSelector()Returns a ComboBoxModel which allows selection of target applications.
-
-
-
Method Detail
-
getTargetSelector
public javax.swing.ComboBoxModel getTargetSelector()
Description copied from interface:ActivityReturns a ComboBoxModel which allows selection of target applications.- Specified by:
getTargetSelectorin interfaceActivity- Returns:
- target application selection model
-
getFormatSelector
public javax.swing.JComboBox getFormatSelector()
Description copied from interface:ImageActivityReturns a combo box for selecting image format. A suitable list of entries for this box isImageActivity.KNOWN_FORMATS.- Specified by:
getFormatSelectorin interfaceImageActivity- Returns:
- format selector
-
displayImage
public void displayImage(java.lang.String location, java.lang.String label)Description copied from interface:ImageActivityDisplays an image according to the current selections of the components owned by this activity.- Specified by:
displayImagein interfaceImageActivity- Parameters:
location- string giving file name or URL location of filelabel- label for display target
-
-