com.javadocking.drag.painter
Interface DockableDragPainter

All Known Implementing Classes:
CompositeDockableDragPainter, ImageDockableDragPainter, LabelDockableDragPainter, OldWindowDockableDragPainter, SwDockableDragPainter, TransparentWindowDockableDragPainter, WindowDockableDragPainter

public interface DockableDragPainter

This painter paints a representation for a Dockable during dragging.

Usually a rectangle is painted. It shows where the dockable will be docked in a Dock, if the mouse would be released at the current mouse position.

Author:
Heidi Rakels.

Method Summary
 void clear()
          Clears everything what was painted by this painter before.
 void paintDockableDrag(Dockable dockable, Dock dock, java.awt.Rectangle rectangle, java.awt.Point mouseLocation)
           Paints a dockable during dragging.
 

Method Detail

paintDockableDrag

void paintDockableDrag(Dockable dockable,
                       Dock dock,
                       java.awt.Rectangle rectangle,
                       java.awt.Point mouseLocation)

Paints a dockable during dragging.

Usually a rectangle is painted. It shows where the dockable will be docked in the dock, if the mouse would be released at the current mouse position.

Parameters:
dockable - The dockable that will be painted.
dock - The dock in which the dockable can be docked.
rectangle - The rectangle that defines, where the given dockable will be docked, if the mouse is released at the current mouse position. The position of the rectangle is relative to the given dock.
mouseLocation - The position of the mouse relative to the given dock.

clear

void clear()
Clears everything what was painted by this painter before.