Class Gallery

  • All Implemented Interfaces:
    RMArchiver.Archiving, java.lang.Cloneable
    Direct Known Subclasses:
    RibsGallery

    public class Gallery
    extends RMObject
    This class provides Swing UI for showing a RMDocument and allowing drag and drop from it.
    • Constructor Detail

      • Gallery

        public Gallery()
        Creates a new gallery.
    • Method Detail

      • getWindowTitle

        public java.lang.String getWindowTitle()
        Returns the name to be used in the inspector window.
      • getDragShape

        public static RMShape getDragShape()
        Returns the shape being dragged.
      • resetUI

        public void resetUI()
        Resets the Swing UI.
      • respondUI

        public void respondUI​(java.lang.Object anObj)
        Responds to control activity in the Swing UI.
      • getDocumentCount

        public int getDocumentCount()
        Returns the number of document shown by the gallery.
      • getDocument

        public RMDocument getDocument​(int anIndex)
        Returns the specifc document at the given index.
      • getDocumentIcon

        public javax.swing.Icon getDocumentIcon​(int anIndex)
        Returns the icon for the specific document at the given index.