Interface AbstractOrientedAnchor.Translation

Enclosing class:
AbstractOrientedAnchor

protected static interface AbstractOrientedAnchor.Translation
A translation inbetween rectangle bounds.
e.g. translateToLeftHalf:
(p, bounds) -> {return p.setX(Math.min(bounds.getTop().x, p.x));}
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.draw2d.geometry.Point
    translate(org.eclipse.draw2d.geometry.Point previous, org.eclipse.draw2d.geometry.Rectangle r)
     
  • Method Details

    • translate

      org.eclipse.draw2d.geometry.Point translate(org.eclipse.draw2d.geometry.Point previous, org.eclipse.draw2d.geometry.Rectangle r)