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

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

org.netbeans.api.visual 2.2

org.netbeans.api.visual.anchor
Class Anchor.Result

java.lang.Object
  extended by org.netbeans.api.visual.anchor.Anchor.Result
Enclosing class:
Anchor

public final class Anchor.Result
extends Object

Represents calculated scene location and orthogonal direction(s) of an anchor. Usually created within Anchor.compute method and used by Router.


Constructor Summary
Anchor.Result(Point anchorSceneLocation, Anchor.Direction direction)
          Creates a result with calculated scene location and single direction.
Anchor.Result(Point anchorSceneLocation, EnumSet<Anchor.Direction> directions)
          Creates a result with calculated scene location and possible directions.
 
Method Summary
 Point getAnchorSceneLocation()
          Returns a scene location of an anchor.
 EnumSet<Anchor.Direction> getDirections()
          Returns possible directions of an anchor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Anchor.Result

public Anchor.Result(Point anchorSceneLocation,
                     Anchor.Direction direction)
Creates a result with calculated scene location and single direction.

Parameters:
anchorSceneLocation - the scene location of an anchor
direction - the single direction of an anchor

Anchor.Result

public Anchor.Result(Point anchorSceneLocation,
                     EnumSet<Anchor.Direction> directions)
Creates a result with calculated scene location and possible directions.

Parameters:
anchorSceneLocation - the scene location of an anchor
directions - the possible directions of an anchor
Method Detail

getAnchorSceneLocation

public Point getAnchorSceneLocation()
Returns a scene location of an anchor.

Returns:
the scene location

getDirections

public EnumSet<Anchor.Direction> getDirections()
Returns possible directions of an anchor.

Returns:
the directions

org.netbeans.api.visual 2.2

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