Class ScalableXYAnchor

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

    public class ScalableXYAnchor
    extends org.eclipse.draw2d.XYAnchor
    • Field Summary

      • Fields inherited from class org.eclipse.draw2d.ConnectionAnchorBase

        listeners
    • Constructor Summary

      Constructors 
      Constructor Description
      ScalableXYAnchor​(org.eclipse.draw2d.IFigure root, org.eclipse.draw2d.geometry.Point point)
      Constructs an ScalableXYAnchor at the Point point.
    • Constructor Detail

      • ScalableXYAnchor

        public ScalableXYAnchor​(org.eclipse.draw2d.IFigure root,
                                org.eclipse.draw2d.geometry.Point point)
        Constructs an ScalableXYAnchor at the Point point.
        Parameters:
        point - the point where this anchor will be located
    • Method Detail

      • getSourcePoint

        public org.eclipse.draw2d.geometry.Point getSourcePoint()
      • getLocation

        public org.eclipse.draw2d.geometry.Point getLocation​(org.eclipse.draw2d.geometry.Point reference)
        Specified by:
        getLocation in interface org.eclipse.draw2d.ConnectionAnchor
        Overrides:
        getLocation in class org.eclipse.draw2d.XYAnchor
      • getReferencePoint

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

        public static org.eclipse.draw2d.geometry.Point translateToAbsolute​(org.eclipse.draw2d.IFigure figure,
                                                                            org.eclipse.draw2d.geometry.Point point)