bibliothek.gui.dock.station.toolbar
Class ToolbarDropInfo

java.lang.Object
  extended by bibliothek.gui.dock.station.toolbar.ToolbarDropInfo
All Implemented Interfaces:
bibliothek.gui.dock.station.StationDropOperation

public abstract class ToolbarDropInfo
extends Object
implements bibliothek.gui.dock.station.StationDropOperation

This class contains and computes information about a drag and drop action of a ToolbarDockStation.

Author:
Herve Guillaume

Constructor Summary
ToolbarDropInfo(bibliothek.gui.Dockable dockable, ToolbarDockStation station, int index)
          Creates new drop information.
 
Method Summary
 bibliothek.gui.dock.station.support.CombinerTarget getCombination()
           
 bibliothek.gui.dock.displayer.DisplayerCombinerTarget getDisplayerCombination()
           
 int getIndex()
          Gets the location the item would have after inserting into the target.
 bibliothek.gui.Dockable getItem()
           
 ToolbarDockStation getTarget()
           
 boolean hasNoEffect()
           
 boolean isMove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.station.StationDropOperation
destroy, draw, execute
 

Constructor Detail

ToolbarDropInfo

public ToolbarDropInfo(bibliothek.gui.Dockable dockable,
                       ToolbarDockStation station,
                       int index)
Creates new drop information.

Parameters:
dockable - the item that is dropped
station - the new parent of dockable
index - where to insert dockable
Method Detail

getItem

public bibliothek.gui.Dockable getItem()
Specified by:
getItem in interface bibliothek.gui.dock.station.StationDropOperation

getTarget

public ToolbarDockStation getTarget()
Specified by:
getTarget in interface bibliothek.gui.dock.station.StationDropOperation

getIndex

public int getIndex()
Gets the location the item would have after inserting into the target.

Returns:
the new position

getCombination

public bibliothek.gui.dock.station.support.CombinerTarget getCombination()
Specified by:
getCombination in interface bibliothek.gui.dock.station.StationDropOperation

getDisplayerCombination

public bibliothek.gui.dock.displayer.DisplayerCombinerTarget getDisplayerCombination()
Specified by:
getDisplayerCombination in interface bibliothek.gui.dock.station.StationDropOperation

isMove

public boolean isMove()
Specified by:
isMove in interface bibliothek.gui.dock.station.StationDropOperation

hasNoEffect

public boolean hasNoEffect()