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));}
e.g. translateToLeftHalf:
(p, bounds) -> {return p.setX(Math.min(bounds.getTop().x, p.x));}
-
Method Summary
Modifier and TypeMethodDescriptionorg.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)
-