public abstract class ToolbarContainerDropInfo extends Object implements StationDropOperation
Dockable should be inserted into which
ToolbarContainerDockStation| Constructor and Description |
|---|
ToolbarContainerDropInfo(Dockable dockable,
ToolbarContainerDockStation stationHost,
DockablePlaceholderList<StationChildHandle> associateToolbars,
int mouseX,
int mouseY)
Constructs a new info to know where drop a dockable
|
| Modifier and Type | Method and Description |
|---|---|
CombinerTarget |
getCombination() |
DisplayerCombinerTarget |
getDisplayerCombination() |
Dockable |
getDockableBeneathMouse()
Gets the
index of the component beneath the mouse |
abstract int |
getIndex()
Gets the index of
getDockableBeneathMouse() in the parent DockStation. |
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. |
DockStation |
getTarget() |
boolean |
isMove() |
String |
toString() |
String |
toSummaryString()
Return a string describing field values
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdestroy, draw, executepublic ToolbarContainerDropInfo(Dockable dockable, ToolbarContainerDockStation stationHost, DockablePlaceholderList<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 Dockable getItem()
getItem in interface StationDropOperationpublic DockStation getTarget()
getTarget in interface StationDropOperationpublic CombinerTarget getCombination()
getCombination in interface StationDropOperationpublic DisplayerCombinerTarget getDisplayerCombination()
getDisplayerCombination in interface StationDropOperationpublic boolean isMove()
isMove in interface StationDropOperationpublic abstract int getIndex()
getDockableBeneathMouse() in the parent DockStation.public 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 String toSummaryString()
Copyright © 2018. All rights reserved.