Package com.reportmill.panels
Class Gallery
- java.lang.Object
-
- com.reportmill.base.RMObject
-
- com.reportmill.panels.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Gallery.GalleryUI
An inner class for GalleryUI.static class
Gallery.GViewer
An inner class and RMViewer subclass for showing and dragging shapes in an RMDocument.
-
Constructor Summary
Constructors Constructor Description Gallery()
Creates a new gallery.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RMDocument
getDocument(int anIndex)
Returns the specifc document at the given index.int
getDocumentCount()
Returns the number of document shown by the gallery.javax.swing.Icon
getDocumentIcon(int anIndex)
Returns the icon for the specific document at the given index.static RMShape
getDragShape()
Returns the shape being dragged.Gallery.GalleryUI
getUI()
Returns the Swing UI.java.lang.String
getWindowTitle()
Returns the name to be used in the inspector window.void
resetUI()
Resets the Swing UI.void
respondUI(java.lang.Object anObj)
Responds to control activity in the Swing UI.-
Methods inherited from class com.reportmill.base.RMObject
clone, copy, didChange, didUndo, getAnimAttribute, getClassNameShort, initWithArchiver, undoClone, undoCopy, undoEquals
-
-
-
-
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.
-
getUI
public Gallery.GalleryUI getUI()
Returns the Swing UI.
-
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.
-
-