bibliothek.gui.dock.common.intern.station
Class CLockedResizeLayoutManager
java.lang.Object
bibliothek.gui.dock.facile.station.split.DelegatingSplitLayoutManager
bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager<Dimension>
bibliothek.gui.dock.common.intern.station.CLockedResizeLayoutManager
- All Implemented Interfaces:
- SplitLayoutManager
public class CLockedResizeLayoutManager
- extends LockedResizeLayoutManager<Dimension>
A LockedResizeLayoutManager
that looks out for CDockable.isResizeLocked()
.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLockedResizeLayoutManager
public CLockedResizeLayoutManager()
- Creates a new layout manager
CLockedResizeLayoutManager
public CLockedResizeLayoutManager(SplitLayoutManager delegate)
- Creates a new layout manager using
delegate
as
delegate for all tasks that have to be carried out.
- Parameters:
delegate
- the delegate used for standard tasks to carry out.
getRequest
protected LockedResizeLayoutManager.ResizeRequest getRequest(Dimension size,
Leaf leaf)
- Description copied from class:
LockedResizeLayoutManager
- Gets the size request that changes the size of
leaf
such
that it has a valid size again.
- Specified by:
getRequest
in class LockedResizeLayoutManager<Dimension>
- Parameters:
size
- the data that was created in LockedResizeLayoutManager.prepareResize(Leaf)
or null
leaf
- the leaf which size is not yet valid.
- Returns:
- the preferred size or
null
prepareResize
protected Dimension prepareResize(Leaf leaf)
- Description copied from class:
LockedResizeLayoutManager
- Called before the resize takes place, subclasses might store some
properties.
- Specified by:
prepareResize
in class LockedResizeLayoutManager<Dimension>
- Parameters:
leaf
- some leaf
- Returns:
- some temporary data that gets forwarded to
LockedResizeLayoutManager.getRequest(Object, Leaf)
,
can be null