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

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

public class BubbleCombiner
extends java.lang.Object
implements Combiner

A Combiner normally used by the BubbleTheme to replace the default combiner.

Author:
Benjamin Sigg

Field Summary
private  BubbleTheme theme
          The theme which uses this combiner
 
Constructor Summary
BubbleCombiner(BubbleTheme theme)
          Creates a new combiner
 
Method Summary
 Dockable combine(Dockable old, Dockable drop, DockStation parent)
          Merges the Dockable old and drop into a new Dockable.
protected  StackDockStation createStackDockStation(DockTheme theme)
          Creates a new StackDockStation which will be populated with two Dockables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theme

private BubbleTheme theme
The theme which uses this combiner

Constructor Detail

BubbleCombiner

public BubbleCombiner(BubbleTheme theme)
Creates a new combiner

Parameters:
theme - the theme using this combiner
Method Detail

combine

public Dockable combine(Dockable old,
                        Dockable drop,
                        DockStation parent)
Description copied from interface: Combiner
Merges the Dockable old and drop into a new Dockable.

Specified by:
combine in interface Combiner
Parameters:
old - a Dockable which sits on the DockStation parent
drop - a Dockable that has currently no parent, and that was dragged over old
parent - a DockStation which will become the parent of the returnvalue of this method
Returns:
The combination of old and drop

createStackDockStation

protected StackDockStation createStackDockStation(DockTheme theme)
Creates a new StackDockStation which will be populated with two Dockables.

Parameters:
theme - The theme that the station will have, might be null
Returns:
the new station