Class BpAnchor

  • All Implemented Interfaces:
    org.eclipse.draw2d.AncestorListener, org.eclipse.draw2d.ConnectionAnchor

    public class BpAnchor
    extends org.eclipse.draw2d.AbstractConnectionAnchor
    BP anchor. Connections can connect only to 4 points on parent bounds (top, bottom, left, right).
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.draw2d.AncestorListener

        org.eclipse.draw2d.AncestorListener.Stub
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int DEFAULT_POSITION
      Default anchor position.
      • Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase

        listeners
    • Constructor Summary

      Constructors 
      Constructor Description
      BpAnchor​(org.eclipse.draw2d.IFigure owner)
      Constructor.
      BpAnchor​(org.eclipse.draw2d.IFigure owner, int position)
      Constructor.
    • Field Detail

      • DEFAULT_POSITION

        public static final int DEFAULT_POSITION
        Default anchor position.
        See Also:
        Constant Field Values
    • Constructor Detail

      • BpAnchor

        public BpAnchor​(org.eclipse.draw2d.IFigure owner)
        Constructor.
        Parameters:
        owner - - owner figure. Can't be null.
    • Method Detail

      • getLocation

        public org.eclipse.draw2d.geometry.Point getLocation​(org.eclipse.draw2d.geometry.Point reference)
      • getReferencePoint

        public org.eclipse.draw2d.geometry.Point getReferencePoint()
        Specified by:
        getReferencePoint in interface org.eclipse.draw2d.ConnectionAnchor
        Overrides:
        getReferencePoint in class org.eclipse.draw2d.AbstractConnectionAnchor