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 Details

    • Gallery

      public Gallery()
  • Method Details

    • getWindowTitle

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

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

      protected JComponent createUI()
      Creates UI panel.
      Overrides:
      createUI in class SwingOwner
    • respondUI

      public void respondUI(SwingEvent anEvent)
      Responds to UI controls.
      Overrides:
      respondUI in class UIOwner<SwingEvent,JComponent>
    • 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 Icon getDocumentIcon(int anIndex)
      Returns the icon for the specific document at the given index.
    • dropGalleryShape

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