bibliothek.gui.dock.title
Interface MovingTitleGetter

All Known Implementing Classes:
BubbleMovingTitleGetter

public interface MovingTitleGetter

The MovingTitleGetter decides which DockTitle should be shown under the mousepointer when the user grabs a Dockable and moves it around.

Author:
Benjamin Sigg

Method Summary
 DockTitle get(DockController controller, Dockable dockable)
          Gets a title which will be shown underneath the cursor.
 DockTitle get(DockController controller, DockTitle snatched)
          Gets a title which will be shown underneath the cursor.
 

Method Detail

get

DockTitle get(DockController controller,
              DockTitle snatched)
Gets a title 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:
A DockTitle. The title must not be bound to any Dockable except the owner of snatched. The title may be snatched itself, a new instance, an existing title of somewhere else, or null. Note that clients may use the origin of the result to create a new, unbound and independent title.

get

DockTitle get(DockController controller,
              Dockable dockable)
Gets a title 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:
A DockTitle. The title must not be unbound to any Dockable except dockable. The title may be a new instance, an existing title of somewhere else, or null