|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.extension.gui.dock.station.split.DockFrontendSizeManager
public class DockFrontendSizeManager
Observes a DockFrontend
in order to find out which Dockable
s
are available, and when a drag & drop operation starts.
Clients should call setFrontend(DockFrontend)
in order to connect
this manager with a DockFrontend
. They should call the method
setFrontend(DockFrontend)
again with a null
argument
to disconnect this manager.
Constructor Summary | |
---|---|
DockFrontendSizeManager()
|
Method Summary | |
---|---|
double |
getSize(Dockable dockable)
Returns the old size of dockable as a percentage of the size
of the parent component. |
protected boolean |
needToTrackChange(Dockable dockable)
Tells whether there is any need to track the size of dockable . |
void |
setFrontend(DockFrontend frontend)
Sets the frontend for which this manager works. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DockFrontendSizeManager()
Method Detail |
---|
public double getSize(Dockable dockable)
dockable
as a percentage of the size
of the parent component. This size will be used for the
dockable
before dropping it onto a SplitDockStation
.
getSize
in interface SizeManager
dockable
- the element for which the size is requested
dockable
,
-1 if not specifiedpublic void setFrontend(DockFrontend frontend)
frontend
- the new frontend, can be null
protected boolean needToTrackChange(Dockable dockable)
dockable
.dockable
has a SplitDockStation
as parent, and to ensure that this station
has more than just one child (otherwise the child has size 1.0,
which does not really help later).
dockable
- the element to check
true
if the size of dockable
is to
be stored, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |