public class AnchorManager extends Object
Constraints are currently defined as anchors (AnchorConstraints objects associated to Dockables).
AnchorConstraints| Constructor and Description |
|---|
AnchorManager(DockingContext context,
Container container)
Constructs a new AnchorManager responsible for a container (desktop or compound)
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public AnchorManager(DockingContext context, Container container)
context - the context (can be taken from DockingDesktop.getDockingContext() used by this managercontainer - the "top level" container managed (usually a DockingDesktop or a CompoundDockingPanel)public void clear()
public void putDockableContraints(Dockable dockable, AnchorConstraints constraints)
dockable - the dockable to anchorconstraints - associated anchor constraintspublic AnchorConstraints getDockableConstraints(Dockable dockable)
dockable - the dockable to anchorpublic AnchorConstraints removeDockableConstraints(Dockable dockable)
dockable - the dockable whose anchor is to be removed© Copyright 2004-2013 Lilian Chamontin. All Rights Reserved.