Activity, ImageActivitypublic class SampImageActivity extends java.lang.Object implements ImageActivity
FORMAT_FITS, FORMAT_GIF, FORMAT_JPEG, FORMAT_PNG, KNOWN_FORMATS| Constructor | Description |
|---|---|
SampImageActivity(org.astrogrid.samp.gui.GuiHubConnector connector) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
displayImage(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.JComboBox |
getFormatSelector() |
Returns a combo box for selecting image format.
|
javax.swing.ComboBoxModel |
getTargetSelector() |
Returns a ComboBoxModel which allows selection of target applications.
|
public SampImageActivity(org.astrogrid.samp.gui.GuiHubConnector connector)
connector - SAMP connectorpublic javax.swing.ComboBoxModel getTargetSelector()
ActivitygetTargetSelector in interface Activitypublic javax.swing.JComboBox getFormatSelector()
ImageActivityImageActivity.KNOWN_FORMATS.getFormatSelector in interface ImageActivitypublic void displayImage(java.lang.String location,
java.lang.String label)
ImageActivitydisplayImage in interface ImageActivitylocation - string giving file name or URL location of filelabel - label for display targetCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.