com.vlsolutions.swing.docking
public class AnchorManager extends Object
Constraints are currently defined as anchors (AnchorConstraints objects associated to Dockables).
Since: 2.1
See Also: AnchorConstraints
| Constructor Summary | |
|---|---|
| AnchorManager(DockingContext context, Container container) Constructs a new AnchorManager responsible for a container (desktop or compound)
| |
| Method Summary | |
|---|---|
| void | clear() Cleanup for this manager : removes references and listeners |
| AnchorConstraints | getDockableConstraints(Dockable dockable) Returns the anchor constraints associated to a given dockable |
| void | putDockableContraints(Dockable dockable, AnchorConstraints constraints) Associates an anchor constraints to a given dockable |
| AnchorConstraints | removeDockableConstraints(Dockable dockable) Removes an anchor constraints to a given dockable |
Parameters: context the context (can be taken from DockingDesktop.getDockingContext() used by this manager container the "top level" container managed (usually a DockingDesktop or a CompoundDockingPanel)
Parameters: dockable the dockable to anchor
Returns: the constraints for this dockable, or null if no constraints is associated
Parameters: dockable the dockable to anchor constraints associated anchor constraints
Parameters: dockable the dockable whose anchor is to be removed