Package uk.ac.starlink.topcat.interop
Class SampImageActivity
java.lang.Object
uk.ac.starlink.topcat.interop.SampImageActivity
- All Implemented Interfaces:
Activity
,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
ConstructorsConstructorDescriptionSampImageActivity
(org.astrogrid.samp.gui.GuiHubConnector connector) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayImage
(String location, String label) Displays an image according to the current selections of the components owned by this activity.Returns a combo box for selecting image format.Returns a ComboBoxModel which allows selection of target applications.
-
Constructor Details
-
SampImageActivity
public SampImageActivity(org.astrogrid.samp.gui.GuiHubConnector connector) Constructor.- Parameters:
connector
- SAMP connector
-
-
Method Details
-
getTargetSelector
Description copied from interface:Activity
Returns a ComboBoxModel which allows selection of target applications.- Specified by:
getTargetSelector
in interfaceActivity
- Returns:
- target application selection model
-
getFormatSelector
Description copied from interface:ImageActivity
Returns a combo box for selecting image format. A suitable list of entries for this box isImageActivity.KNOWN_FORMATS
.- Specified by:
getFormatSelector
in interfaceImageActivity
- Returns:
- format selector
-
displayImage
Description copied from interface:ImageActivity
Displays an image according to the current selections of the components owned by this activity.- Specified by:
displayImage
in interfaceImageActivity
- Parameters:
location
- string giving file name or URL location of filelabel
- label for display target
-