public abstract class ToolbarContainerDropInfo
extends java.lang.Object
implements bibliothek.gui.dock.station.StationDropOperation
Dockable
should be inserted into which
ToolbarContainerDockStation
Constructor and Description |
---|
ToolbarContainerDropInfo(bibliothek.gui.Dockable dockable,
ToolbarContainerDockStation stationHost,
bibliothek.gui.dock.station.support.DockablePlaceholderList<bibliothek.gui.dock.station.StationChildHandle> associateToolbars,
int mouseX,
int mouseY)
Constructs a new info to know where drop a dockable
|
Modifier and Type | Method and Description |
---|---|
bibliothek.gui.dock.station.support.CombinerTarget |
getCombination() |
bibliothek.gui.dock.displayer.DisplayerCombinerTarget |
getDisplayerCombination() |
bibliothek.gui.Dockable |
getDockableBeneathMouse()
Gets the
index of the component beneath the mouse |
abstract int |
getIndex()
Gets the index of
getDockableBeneathMouse() in the parent DockStation . |
bibliothek.gui.Dockable |
getItem() |
Position |
getItemPositionVSBeneathDockable()
Gets the relative position of drag dockable with the closest dockable
above the mouse.
|
Position |
getSideDockableBeneathMouse()
Gets the closest
side of the component beneath the mouse. |
bibliothek.gui.DockStation |
getTarget() |
boolean |
isMove() |
java.lang.String |
toString() |
java.lang.String |
toSummaryString()
Return a string describing field values
|
public ToolbarContainerDropInfo(bibliothek.gui.Dockable dockable, ToolbarContainerDockStation stationHost, bibliothek.gui.dock.station.support.DockablePlaceholderList<bibliothek.gui.dock.station.StationChildHandle> associateToolbars, int mouseX, int mouseY)
dockable
- the dockable to dropstationHost
- the station where drop the dockableassociateToolbars
- the other dockables in the stationmouseX
- the mouse position on X axismouseY
- the mouse position on Y axispublic bibliothek.gui.Dockable getItem()
getItem
in interface bibliothek.gui.dock.station.StationDropOperation
public bibliothek.gui.DockStation getTarget()
getTarget
in interface bibliothek.gui.dock.station.StationDropOperation
public bibliothek.gui.dock.station.support.CombinerTarget getCombination()
getCombination
in interface bibliothek.gui.dock.station.StationDropOperation
public bibliothek.gui.dock.displayer.DisplayerCombinerTarget getDisplayerCombination()
getDisplayerCombination
in interface bibliothek.gui.dock.station.StationDropOperation
public boolean isMove()
isMove
in interface bibliothek.gui.dock.station.StationDropOperation
public abstract int getIndex()
getDockableBeneathMouse()
in the parent DockStation
.public bibliothek.gui.Dockable getDockableBeneathMouse()
index
of the component beneath the mousepublic Position getSideDockableBeneathMouse()
side
of the component beneath the mouse.
Example: if the mouse is over a button, near the top of the button, this
return NORTH positionpublic Position getItemPositionVSBeneathDockable()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toSummaryString()