Package uk.ac.starlink.topcat.interop
Interface ImageActivity
- All Superinterfaces:
Activity
- All Known Implementing Classes:
SampImageActivity
Activity for sending an image of some sort to load.
- Since:
- 18 Sep 2008
- Author:
- Mark Taylor
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFormat string indicating FITS image.static final StringFormat string indicating GIF image.static final StringFormat string indicating JPEG image.static final StringFormat string indicating PNG image.static final String[]Array of all known formats. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayImage(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.Methods inherited from interface uk.ac.starlink.topcat.interop.Activity
getTargetSelector
-
Field Details
-
FORMAT_FITS
Format string indicating FITS image.- See Also:
-
FORMAT_JPEG
Format string indicating JPEG image.- See Also:
-
FORMAT_GIF
Format string indicating GIF image.- See Also:
-
FORMAT_PNG
Format string indicating PNG image.- See Also:
-
KNOWN_FORMATS
Array of all known formats.
-
-
Method Details
-
getFormatSelector
Returns a combo box for selecting image format. A suitable list of entries for this box isKNOWN_FORMATS.- Returns:
- format selector
-
displayImage
Displays an image according to the current selections of the components owned by this activity.- Parameters:
location- string giving file name or URL location of filelabel- label for display target- Throws:
IOException
-