bibliothek.extension.gui.dock.theme.flat
Class FlatCombiner

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

public class FlatCombiner
extends java.lang.Object
implements Combiner

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

Author:
Benjamin Sigg

Constructor Summary
FlatCombiner()
           
 
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
 

Constructor Detail

FlatCombiner

public FlatCombiner()
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