bibliothek.gui.dock.station.support
Interface CombinerTarget


public interface CombinerTarget

Created by a Combiner, this object tells how two Dockables are going to be merged.

Author:
Benjamin Sigg

Method Summary
 void paint(java.awt.Graphics g, StationPaint paint, java.awt.Rectangle stationBounds, java.awt.Rectangle dockableBounds)
          Paints some lines on the screen that allow the user to understand of what is going to happen if he/she releases the mouse now.
 

Method Detail

paint

void paint(java.awt.Graphics g,
           StationPaint paint,
           java.awt.Rectangle stationBounds,
           java.awt.Rectangle dockableBounds)
Paints some lines on the screen that allow the user to understand of what is going to happen if he/she releases the mouse now.

Parameters:
g - the graphics context to use
paint - painting algorithms fitting to the current DockTheme
stationBounds - an estimate of the area which will be affected by inserting the combined Dockable, not null
dockableBounds - the boundaries which a representation of the combined Dockable has. If possible this is the exact location and size, including any title. If the station cannot exactly tell where the Dockable is going to be (e.g. when CombinerSource.getSize() returned null), then this may be the location and size of a title. Never null.