|
org.netbeans.api.visual 2.23.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.api.visual.anchor.Anchor
org.netbeans.api.visual.vmd.VMDNodeAnchor
public class VMDNodeAnchor
This class represents a node anchor used in VMD visualization style. The anchor could be assign by multiple connection widgets. For each usage the anchor resolves a different position. The positions are resolved at the top and the bottom of the widget where the anchor is attached to.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.netbeans.api.visual.anchor.Anchor |
|---|
Anchor.Direction, Anchor.Entry, Anchor.Result |
| Field Summary |
|---|
| Fields inherited from class org.netbeans.api.visual.anchor.Anchor |
|---|
DIRECTION_ANY |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.netbeans.api.visual.anchor.Anchor |
|---|
addEntries, addEntry, allowsArbitraryConnectionPlacement, compute, getEntries, getOppositeSceneLocation, getRelatedSceneLocation, getRelatedWidget, isUsed, notifyUnused, notifyUsed, removeEntries, removeEntry, revalidateDependency |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VMDNodeAnchor(Widget widget)
widget - the node widget where the anchor is attached to
public 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 horizontally
public 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 scheme| Method Detail |
|---|
protected 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)
compute in class Anchorentry - the entry
|
org.netbeans.api.visual 2.23.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||