com.javadocking.drag.painter
Interface DragComponentFactory

All Known Implementing Classes:
RectangleDragComponentFactory

public interface DragComponentFactory

This is an interface for a factory that creates a java.awt.Component to show where a Dockable will be docked in a Dock while dragging the dockable.

Author:
Heidi Rakels.

Method Summary
 java.awt.Component createDragComponent(Dockable dockable, Dock dock, java.awt.Rectangle rectangle)
          Creates a component to show where a dockable will be docked in a dock while dragging the dockable.
 

Method Detail

createDragComponent

java.awt.Component createDragComponent(Dockable dockable,
                                       Dock dock,
                                       java.awt.Rectangle rectangle)
Creates a component to show where a dockable will be docked in a dock while dragging the dockable.

Parameters:
dockable - The dragged dockable.
dock - The dock in which the dockable will be docked, if the mouse is released in the current position.
rectangle - The rectangle relative to the dock that represents the window for the dockable, if the mouse is released in the current position.
Returns:
The component that shows where a dockable will be docked in a dock.