com.pnp.xfeature.figures
Class FeatureConnectionAnchor

java.lang.Object
  extended by AbstractConnectionAnchor
      extended by com.pnp.xfeature.figures.FeatureConnectionAnchor

public class FeatureConnectionAnchor
extends AbstractConnectionAnchor

Standard connection anchor. See GEF examples (HelloGef3 - 6)

Author:
Kamil Ekstein, created on 2.11.2004

Field Summary
static int CAP_LOWER
          Connection Anchor Position - tells whether the parent connector is attached to the top or the bottom of the figure
static int CAP_UPPER
          Connection Anchor Position - tells whether the parent connector is attached to the top or the bottom of the figure
 
Constructor Summary
FeatureConnectionAnchor(IFigure owner, int anchorPos)
          creates new anchor and sets it to middle upper or middle lower based on the parameter value
 
Method Summary
 Point getLocation(Point reference)
          computes the absolute position of the anchor
 Point getReferencePoint()
          returns superclass implementation return value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAP_UPPER

public static final int CAP_UPPER
Connection Anchor Position - tells whether the parent connector is attached to the top or the bottom of the figure

See Also:
Constant Field Values

CAP_LOWER

public static final int CAP_LOWER
Connection Anchor Position - tells whether the parent connector is attached to the top or the bottom of the figure

See Also:
Constant Field Values
Constructor Detail

FeatureConnectionAnchor

public FeatureConnectionAnchor(IFigure owner,
                               int anchorPos)
creates new anchor and sets it to middle upper or middle lower based on the parameter value

Method Detail

getReferencePoint

public Point getReferencePoint()
returns superclass implementation return value


getLocation

public Point getLocation(Point reference)
computes the absolute position of the anchor



Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.