Class 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
    • 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
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SampImageActivity

        public SampImageActivity​(org.astrogrid.samp.gui.GuiHubConnector connector)
        Constructor.
        Parameters:
        connector - SAMP connector
    • Method Detail

      • getTargetSelector

        public javax.swing.ComboBoxModel getTargetSelector()
        Description copied from interface: Activity
        Returns a ComboBoxModel which allows selection of target applications.
        Specified by:
        getTargetSelector in interface Activity
        Returns:
        target application selection model
      • displayImage

        public void displayImage​(java.lang.String location,
                                 java.lang.String label)
        Description copied from interface: ImageActivity
        Displays an image according to the current selections of the components owned by this activity.
        Specified by:
        displayImage in interface ImageActivity
        Parameters:
        location - string giving file name or URL location of file
        label - label for display target