bibliothek.extension.gui.dock.theme.bubble
Class BubbleMovingTitleGetter

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.bubble.BubbleMovingTitleGetter
All Implemented Interfaces:
MovingTitleGetter

public class BubbleMovingTitleGetter
extends java.lang.Object
implements MovingTitleGetter


Field Summary
private  ReducedBubbleTitleFactory reduced
           
 
Constructor Summary
BubbleMovingTitleGetter(BubbleTheme theme)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reduced

private ReducedBubbleTitleFactory reduced
Constructor Detail

BubbleMovingTitleGetter

public BubbleMovingTitleGetter(BubbleTheme theme)
Method Detail

get

public DockTitle get(DockController controller,
                     DockTitle snatched)
Description copied from interface: MovingTitleGetter
Gets a title which will be shown underneath the cursor. Assumes that the user clicked on the title snatched.

Specified by:
get in interface MovingTitleGetter
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 binded 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, unbinded and independent title.

get

public DockTitle get(DockController controller,
                     Dockable dockable)
Description copied from interface: MovingTitleGetter
Gets a title which will be shown underneath the cursor. Assumes that the user clicked on dockable.

Specified by:
get in interface MovingTitleGetter
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 binded to any Dockable except dockable. The title may be a new instance, an existing title of somewhere else, or null