Class FixedPositionAnchor

java.lang.Object
org.eclipse.draw2d.ConnectionAnchorBase
org.eclipse.draw2d.AbstractConnectionAnchor
org.csstudio.opibuilder.editparts.AbstractOpiBuilderAnchor
org.csstudio.opibuilder.editparts.FixedPositionAnchor
All Implemented Interfaces:
org.eclipse.draw2d.AncestorListener, org.eclipse.draw2d.ConnectionAnchor

public class FixedPositionAnchor extends AbstractOpiBuilderAnchor
The anchor is on a fixed position of the figure. For example, left, right, top left, ...
  • Constructor Details

  • Method Details

    • getOrientation

      Specified by:
      getOrientation in class AbstractOpiBuilderAnchor
      Returns:
      The direction in which the connection is oriented at this anchor, if the Manhattan router is being selected
    • getBox

      protected org.eclipse.draw2d.geometry.Rectangle getBox()
      Returns the bounds of this ChopboxAnchor's owner. Subclasses can override this method to adjust the box the anchor can be placed on. For instance, the owner figure may have a drop shadow that should not be included in the box.
      Returns:
      The bounds of this ChopboxAnchor's owner
    • 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
    • getLocation

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

      public boolean equals(Object obj)
      Returns true if the other anchor has the same owner and box.
      Overrides:
      equals in class Object
      Parameters:
      obj - the other anchor
      Returns:
      true if equal
    • hashCode

      public int hashCode()
      The owning figure's hashcode is used since equality is approximately based on the owner.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code.