|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.facile.station.split.DelegatingSplitLayoutManager
bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager<T>
T
- the type of the temporary data this manager works withpublic abstract class LockedResizeLayoutManager<T>
A SplitLayoutManager
that can lock the size of some Dockable
s
during resize. This class is intended to be subclassed,
Nested Class Summary | |
---|---|
protected class |
LockedResizeLayoutManager.ResizeElement
Represents one node of the tree which represents the split-tree of a SplitDockStation . |
protected class |
LockedResizeLayoutManager.ResizeLeaf
Represents a Leaf . |
protected class |
LockedResizeLayoutManager.ResizeNode
Represents a Node . |
protected static class |
LockedResizeLayoutManager.ResizeRequest
Represents the mismatch in size that some node has. |
protected class |
LockedResizeLayoutManager.ResizeRoot
Represents a Root . |
Constructor Summary | |
---|---|
LockedResizeLayoutManager()
Creates a new manager using the DefaultSplitLayoutManager
as delegate. |
|
LockedResizeLayoutManager(SplitLayoutManager delegate)
Creates a new manager. |
Method Summary | |
---|---|
protected abstract LockedResizeLayoutManager.ResizeRequest |
getRequest(T t,
Leaf leaf)
Gets the size request that changes the size of leaf such
that it has a valid size again. |
protected abstract T |
prepareResize(Leaf leaf)
Called before the resize takes place, subclasses might store some properties. |
protected LockedResizeLayoutManager.ResizeElement |
toElement(LockedResizeLayoutManager.ResizeElement parent,
SplitNode node)
Transforms a SplitNode into the matching kind of LockedResizeLayoutManager.ResizeElement . |
void |
updateBounds(Root root,
double x,
double y,
double factorW,
double factorH)
Called when the bounds of all DockableDisplayer of a station have
to be updated. |
void |
updateBoundsLocked(Root root,
double x,
double y,
double factorW,
double factorH)
Updates the bounds of root and all its children and does
consider all LockedResizeLayoutManager.ResizeRequest . |
Methods inherited from class bibliothek.gui.dock.facile.station.split.DelegatingSplitLayoutManager |
---|
calculateDivider, install, prepareDrop, prepareMove, uninstall, validateDivider, validatePutInfo, willMakeFullscreen |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LockedResizeLayoutManager()
DefaultSplitLayoutManager
as delegate.
public LockedResizeLayoutManager(SplitLayoutManager delegate)
delegate
- the base functionalityMethod Detail |
---|
public void updateBounds(Root root, double x, double y, double factorW, double factorH)
SplitLayoutManager
DockableDisplayer
of a station have
to be updated. Subclasses normally can just call
Root.updateBounds(double, double, double, double, double, double, boolean)
with width
and height
set to 1.0.
updateBounds
in interface SplitLayoutManager
updateBounds
in class DelegatingSplitLayoutManager
root
- the root of a tree of Dockable
sx
- the left boundy
- the top boundfactorW
- a factory with which all x-coordinates have to be multiplied in
order to get coordinates in pixels.factorH
- a factory with which all y-coordinates have to be multiplied in
order to get coordinates in pixels.public void updateBoundsLocked(Root root, double x, double y, double factorW, double factorH)
root
and all its children and does
consider all LockedResizeLayoutManager.ResizeRequest
.
root
- the root element of a tree to updatex
- the left coordinate of root
y
- the top coordinate of root
factorW
- a factor all x-coordinates have to be multiplied with
in order to get the pixel coordinatesfactorH
- a factor all y-coordinates have to be multiplied with
in order to get the pixel coordinatesprotected abstract LockedResizeLayoutManager.ResizeRequest getRequest(T t, Leaf leaf)
leaf
such
that it has a valid size again.
t
- the data that was created in prepareResize(Leaf)
or null
leaf
- the leaf which size is not yet valid.
null
protected abstract T prepareResize(Leaf leaf)
leaf
- some leaf
getRequest(Object, Leaf)
,
can be null
protected LockedResizeLayoutManager.ResizeElement toElement(LockedResizeLayoutManager.ResizeElement parent, SplitNode node)
SplitNode
into the matching kind of LockedResizeLayoutManager.ResizeElement
.
The subtree of node
is transformed as well.
parent
- the parent of the new elementnode
- some root, node, leaf or null
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |