bibliothek.gui.dock.dockable
Interface DockableMovingImageFactory

All Known Implementing Classes:
BasicMovingImageFactory, BubbleMovingImageFactory, ScreencaptureMovingImageFactory, ThemeDockableMovingImageFactory

public interface DockableMovingImageFactory

A factory for MovingImages. This factory is used to show an image that is somehow related to a Dockable which is dragged.

Author:
Benjamin Sigg

Method Summary
 MovingImage create(DockController controller, Dockable dockable)
          Gets an image which will be shown underneath the cursor.
 MovingImage create(DockController controller, DockTitle snatched)
          Gets an image which will be shown underneath the cursor.
 

Method Detail

create

MovingImage create(DockController controller,
                   DockTitle snatched)
Gets an image which will be shown underneath the cursor. Assumes that the user clicked on the title snatched.

Parameters:
controller - The controller which will be responsible for the title
snatched - The title which is grabbed by the user
Returns:
the image under the cursor, can be null

create

MovingImage create(DockController controller,
                   Dockable dockable)
Gets an image which will be shown underneath the cursor. Assumes that the user clicked on dockable.

Parameters:
controller - The controller which will be responsible for the title
dockable - The Dockable which is snatched
Returns:
the image under the cursor, can be null