站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

VMDNodeAnchor (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.vmd
Class VMDNodeAnchor

java.lang.Object
  extended by org.netbeans.api.visual.anchor.Anchor
      extended by org.netbeans.api.visual.vmd.VMDNodeAnchor
All Implemented Interfaces:
Widget.Dependency

public class VMDNodeAnchor
extends Anchor

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.
 
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
 
Methods inherited from class org.netbeans.api.visual.anchor.Anchor
addEntries, addEntry, 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

VMDNodeAnchor

public VMDNodeAnchor(Widget widget)
Creates a node anchor with vertical direction.

Parameters:
widget - the node widget where the anchor is attached to

VMDNodeAnchor

public VMDNodeAnchor(Widget widget,
                     boolean vertical)
Creates a node anchor.

Parameters:
widget - the node widget where the anchor is attached to
vertical - if true, then anchors are placed vertically; if false, then anchors are placed horizontally
Method Detail

notifyEntryAdded

protected void notifyEntryAdded(Anchor.Entry entry)
Notifies when an entry is registered

Overrides:
notifyEntryAdded in class Anchor
Parameters:
entry - the registered entry

notifyEntryRemoved

protected void notifyEntryRemoved(Anchor.Entry entry)
Notifies when an entry is unregistered

Overrides:
notifyEntryRemoved in class Anchor
Parameters:
entry - the unregistered entry

compute

public Anchor.Result compute(Anchor.Entry entry)
Computes a result (position and direction) for a specific entry.

Specified by:
compute in class Anchor
Parameters:
entry - the entry
Returns:
the calculated result

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.