|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.split.SplitDockCombinerSource
public class SplitDockCombinerSource
A CombinerSource
that is created by a SplitDockStation
.
Constructor Summary | |
---|---|
SplitDockCombinerSource(PutInfo info,
SplitDockStation station,
Point mouseOnStation)
Creates a new object |
Method Summary | |
---|---|
Point |
getMousePosition()
Gets the position of the mouse. |
Dockable |
getNew()
Gets the new Dockable , the one Dockable which is currently dragged around
by the user and which is about to be dropped over old . |
Dockable |
getOld()
Gets the old Dockable , the one Dockable which is already a child
of the future parent . |
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SplitDockCombinerSource(PutInfo info, SplitDockStation station, Point mouseOnStation)
info
- information about the current position of the mouse and of
what is under the mousestation
- the creator of this sourcemouseOnStation
- position of the mouse in relation to station
IllegalArgumentException
- if the target not of info
is not a Leaf
Method Detail |
---|
public Point getMousePosition()
CombinerSource
0/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 Dockable
s. This can happen for example if the mouse hovers directly
over the title of the old Dockable
.
getMousePosition
in interface CombinerSource
null
public Dockable getNew()
CombinerSource
Dockable
, 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 parent
getNew
in interface CombinerSource
Dockable
, never null
public Dockable getOld()
CombinerSource
Dockable
, the one Dockable
which is already a child
of the future parent
.
getOld
in interface CombinerSource
Dockable
, never null
public DockableDisplayer getOldDisplayer()
CombinerSource
DockableDisplayer
which manages the old Dockable
.
getOldDisplayer
in interface CombinerSource
null
public DockStation getParent()
CombinerSource
Dockable
.
getParent
in interface CombinerSource
null
public PlaceholderMap getPlaceholders()
CombinerSource
Dockable
. These placeholders
have been created by a DockStation
that was removed because its children count dropped to one.
getPlaceholders
in interface CombinerSource
null
public Dimension getSize()
CombinerSource
Dockable
. 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 CombinerSource
null
public boolean isMouseOverTitle()
CombinerSource
old Dockable
.
isMouseOverTitle
in interface CombinerSource
true
if the mouse hovers over the title, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |