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

Anchor.Entry (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.anchor
Interface Anchor.Entry

Enclosing class:
Anchor

public static interface Anchor.Entry

Represents a place where an anchor is used. Usually it is implemented by ConnectionWidget.getSourceAnchorEntry or ConnectionWidget.getTargetAnchorEntry or ProxyAnchor.


Method Summary
 Anchor getAttachedAnchor()
          Returns an anchor of a connection widget which relates to the entry.
 ConnectionWidget getAttachedConnectionWidget()
          Returns a connection widget where the entry is attached to.
 Anchor getOppositeAnchor()
          Returns an anchor of a connection widget which is opposite to the related anchor
 boolean isAttachedToConnectionSource()
          Returns whether an entry is attached to the source or the target of a connection widget.
 void revalidateEntry()
          Called for notifying that an anchor is changed and the entry has to me revalidated too.
 

Method Detail

revalidateEntry

void revalidateEntry()
Called for notifying that an anchor is changed and the entry has to me revalidated too. Usually called by Anchor.revalidateDependency.


getAttachedConnectionWidget

ConnectionWidget getAttachedConnectionWidget()
Returns a connection widget where the entry is attached to.

Returns:
the connection widget

isAttachedToConnectionSource

boolean isAttachedToConnectionSource()
Returns whether an entry is attached to the source or the target of a connection widget.

Returns:
true if attached to the source

getAttachedAnchor

Anchor getAttachedAnchor()
Returns an anchor of a connection widget which relates to the entry.

Returns:
the attached anchor

getOppositeAnchor

Anchor getOppositeAnchor()
Returns an anchor of a connection widget which is opposite to the related anchor

Returns:
the opposite anchor

org.netbeans.api.visual 2.2

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