Class CLockedResizeLayoutManager
java.lang.Object
bibliothek.gui.dock.facile.station.split.DelegatingSplitLayoutManager
bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager<RequestDimension>
bibliothek.gui.dock.common.intern.station.CLockedResizeLayoutManager
- All Implemented Interfaces:
SplitLayoutManager
@FrameworkOnly
public class CLockedResizeLayoutManager
extends LockedResizeLayoutManager<RequestDimension>
A
LockedResizeLayoutManager that looks out for
CDockable.isResizeLockedVertically() and CDockable.isResizeLockedHorizontally().- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new layout managerCLockedResizeLayoutManager(CControl control) Creates a new layout managerCLockedResizeLayoutManager(SplitLayoutManager delegate) Creates a new layout manager usingdelegateas delegate for all tasks that have to be carried out. -
Method Summary
Modifier and TypeMethodDescriptionGets the policy that tells how twoResizeRequests are merged.getRequest(RequestDimension size, Leaf leaf) Gets the size request that changes the size ofleafsuch that it has a valid size again.prepareResize(Leaf leaf) Called before the resize takes place, subclasses might store some properties.voidsetControl(CControl control) Sets the control in whose realm this manager should work.Methods inherited from class bibliothek.gui.dock.facile.station.split.LockedResizeLayoutManager
asyncToElement, hasTreeChanged, isResize, setConflictResolver, toElement, updateBounds, updateBoundsLockedMethods inherited from class bibliothek.gui.dock.facile.station.split.DelegatingSplitLayoutManager
calculateDivider, install, prepareDrop, prepareMove, uninstall, validateDivider, validatePutInfo, willMakeFullscreen
-
Constructor Details
-
CLockedResizeLayoutManager
public CLockedResizeLayoutManager()Creates a new layout manager -
CLockedResizeLayoutManager
Creates a new layout manager- Parameters:
control- the control in whose realm this manager works
-
CLockedResizeLayoutManager
Creates a new layout manager usingdelegateas delegate for all tasks that have to be carried out.- Parameters:
delegate- the delegate used for standard tasks to carry out.
-
-
Method Details
-
setControl
Sets the control in whose realm this manager should work.- Parameters:
control- the control, can benull
-
getConflictResolver
Description copied from class:LockedResizeLayoutManagerGets the policy that tells how twoResizeRequests are merged.- Overrides:
getConflictResolverin classLockedResizeLayoutManager<RequestDimension>- Returns:
- the policy
-
getRequest
Description copied from class:LockedResizeLayoutManagerGets the size request that changes the size ofleafsuch that it has a valid size again.- Specified by:
getRequestin classLockedResizeLayoutManager<RequestDimension>- Parameters:
size- the data that was created inLockedResizeLayoutManager.prepareResize(Leaf)ornullleaf- the leaf which size is not yet valid.- Returns:
- the preferred size or
null
-
prepareResize
Description copied from class:LockedResizeLayoutManagerCalled before the resize takes place, subclasses might store some properties.- Specified by:
prepareResizein classLockedResizeLayoutManager<RequestDimension>- Parameters:
leaf- some leaf- Returns:
- some temporary data that gets forwarded to
LockedResizeLayoutManager.getRequest(Object, Leaf), can benull
-