com.vlsolutions.swing.docking
Class AnchorManager
java.lang.Object
com.vlsolutions.swing.docking.AnchorManager
public class AnchorManager
extends java.lang.Object
A helper class used to specify and enforce constraints within a container
(DockingPanel or CompoundDockingPanel).
Constraints are currently defined as anchors (AnchorConstraints objects associated to Dockables).
AnchorManager(DockingContext context, Container container) - Constructs a new AnchorManager responsible for a container (desktop or compound)
|
AnchorManager
public AnchorManager(DockingContext context,
Container container)
Constructs a new AnchorManager responsible for a container (desktop or compound)
context
- the context (can be taken from DockingDesktop.getDockingContext() used by this managercontainer
- the "top level" container managed (usually a DockingDesktop or a CompoundDockingPanel)
clear
public void clear()
Cleanup for this manager : removes references and listeners
getDockableConstraints
public AnchorConstraints getDockableConstraints(Dockable dockable)
Returns the anchor constraints associated to a given dockable
dockable
- the dockable to anchor
- the constraints for this dockable, or null if no constraints is associated
putDockableContraints
public void putDockableContraints(Dockable dockable,
AnchorConstraints constraints)
Associates an anchor constraints to a given dockable
dockable
- the dockable to anchorconstraints
- associated anchor constraints
removeDockableConstraints
public AnchorConstraints removeDockableConstraints(Dockable dockable)
Removes an anchor constraints to a given dockable
dockable
- the dockable whose anchor is to be removed
© Copyright 2004-2006 VLSolutions. All Rights Reserved.
www.vlsolutions.com : Java Components - Smart Client Applications