Class Gallery

  • Direct Known Subclasses:
    SwingGallery

    public class Gallery
    extends SwingOwner
    This class provides UI for showing an RMParentShape and allowing drag and drop from it.
    • Constructor Detail

      • Gallery

        public 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.
      • createUI

        protected javax.swing.JComponent createUI()
        Creates UI panel.
        Overrides:
        createUI in class SwingOwner
      • getDocumentCount

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

        public RMParentShape 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.
      • dropGalleryShape

        public static void dropGalleryShape​(RMParentShape aShape,
                                            java.awt.dnd.DropTargetDropEvent anEvent)
        Handle drop of gallery shape onto editor.