1 27 28 package org.nightlabs.editor2d.handle; 29 30 import org.eclipse.draw2d.geometry.Point; 31 import org.eclipse.gef.GraphicalEditPart; 32 33 34 public class CenterLocator 35 extends AbstractLocator 36 { 37 public CenterLocator(GraphicalEditPart owner) 38 { 39 super(owner); 40 } 41 42 protected Point getLocation() { 43 return figure.getBounds().getCenter(); 44 } 45 46 } 47 | Popular Tags |