public class CombinerSourceWrapper extends Object implements CombinerSource
CombinerSource, can be used to easily override
methods of some source.| Constructor and Description |
|---|
CombinerSourceWrapper(CombinerSource delegate)
Creates a new wrapper.
|
| Modifier and Type | Method and Description |
|---|---|
CombinerSource |
getDelegate()
Gets the source which is hidden by this wrapper.
|
Point |
getMousePosition()
Gets the position of the mouse.
|
Dockable |
getNew()
|
Dockable |
getOld()
|
DockableDisplayer |
getOldDisplayer()
Gets the
DockableDisplayer which manages the old Dockable. |
DockStation |
getParent()
Gets the station which will be the new parent station of the combined
Dockable. |
PlaceholderMap |
getPlaceholders()
Gets a map of placeholders which are to be used for creating the combined
Dockable. |
Dimension |
getSize()
Gets the estimated size of the combined
Dockable. |
boolean |
isMouseOverTitle()
Tells whether the mouse currently is over the title of the
old Dockable. |
public CombinerSourceWrapper(CombinerSource delegate)
delegate - the source to hidepublic CombinerSource getDelegate()
nullpublic Point getMousePosition()
CombinerSource0/0 indicates that the mouse is at
the top left edge of the old Dockable, a value equal to the estimated size
means that the mouse is at the lower right edge of the old dockable. The mouse may be outside the
of these boundaries.null indicates that the mouse position should not be used for deciding
of how to combine the two Dockables. This can happen for example if the mouse hovers directly
over the title of the old Dockable.getMousePosition in interface CombinerSourcenullpublic Dockable getNew()
CombinerSourceDockable, the one Dockable which is currently dragged around
by the user and which is about to be dropped over old. The parent of
this Dockable may or may not be the old ones parentgetNew in interface CombinerSourceDockable, never nullpublic DockableDisplayer getOldDisplayer()
CombinerSourceDockableDisplayer which manages the old Dockable.getOldDisplayer in interface CombinerSourcenullpublic Dockable getOld()
CombinerSourcegetOld in interface CombinerSourceDockable, never nullpublic DockStation getParent()
CombinerSourceDockable.getParent in interface CombinerSourcenullpublic PlaceholderMap getPlaceholders()
CombinerSourceDockable. These placeholders
have been created by a DockStation that was removed because its children count dropped to one.getPlaceholders in interface CombinerSourcenullpublic Dimension getSize()
CombinerSourceDockable. In most cases the size will be equal to the
current size of the old Dockable.null is returned. A value of null also means
that the mouse is currently not over the old dockable.getSize in interface CombinerSourcenullpublic boolean isMouseOverTitle()
CombinerSourceold Dockable.isMouseOverTitle in interface CombinerSourcetrue if the mouse hovers over the title, false otherwiseCopyright © 2017 Docking Frames. All rights reserved.