public class VMDNodeAnchor extends Anchor
Anchor.Direction, Anchor.Entry, Anchor.Result
DIRECTION_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, revalidateDependency
public 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 Anchor
entry
- the registered entryprotected void notifyEntryRemoved(Anchor.Entry entry)
notifyEntryRemoved
in class Anchor
entry
- the unregistered entryprotected void notifyRevalidate()
notifyRevalidate
in class Anchor
public Anchor.Result compute(Anchor.Entry entry)