public class VMDNodeAnchor extends Anchor
Anchor.Direction, Anchor.Entry, Anchor.ResultDIRECTION_ANY| Constructor and Description |
|---|
VMDNodeAnchor(Widget widget)
Creates a node anchor with vertical direction.
|
VMDNodeAnchor(Widget widget,
boolean vertical)
Creates a node anchor.
|
VMDNodeAnchor(Widget widget,
boolean vertical,
VMDColorScheme scheme)
Creates a node anchor.
|
| Modifier and Type | Method and Description |
|---|---|
Anchor.Result |
compute(Anchor.Entry entry)
Computes a result (position and direction) for a specific entry.
|
protected void |
notifyEntryAdded(Anchor.Entry entry)
Notifies when an entry is registered
|
protected void |
notifyEntryRemoved(Anchor.Entry entry)
Notifies when an entry is unregistered
|
protected void |
notifyRevalidate()
Notifies when the anchor is going to be revalidated.
|
addEntries, addEntry, allowsArbitraryConnectionPlacement, compute, getEntries, getOppositeSceneLocation, getRelatedSceneLocation, getRelatedWidget, isUsed, notifyUnused, notifyUsed, removeEntries, removeEntry, revalidateDependencypublic VMDNodeAnchor(Widget widget)
widget - the node widget where the anchor is attached topublic VMDNodeAnchor(Widget widget, boolean vertical)
widget - the node widget where the anchor is attached tovertical - if true, then anchors are placed vertically; if false, then anchors are placed horizontallypublic VMDNodeAnchor(Widget widget, boolean vertical, VMDColorScheme scheme)
widget - the node widget where the anchor is attached tovertical - if true, then anchors are placed vertically; if false, then anchors are placed horizontallyscheme - color schemeprotected void notifyEntryAdded(Anchor.Entry entry)
notifyEntryAdded in class Anchorentry - the registered entryprotected void notifyEntryRemoved(Anchor.Entry entry)
notifyEntryRemoved in class Anchorentry - the unregistered entryprotected void notifyRevalidate()
notifyRevalidate in class Anchorpublic Anchor.Result compute(Anchor.Entry entry)
Built on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.