context.setY(mY);
if (pe instanceof Shape && !(pe instanceof Diagram)) {
GraphicsAlgorithm ga = pe.getGraphicsAlgorithm();
if (ga != null) {
ILocation relLocation = Graphiti.getPeService().getLocationRelativeToDiagram((Shape) pe);
int x = relLocation.getX();
int y = relLocation.getY();
int width = ga.getWidth();
int height = ga.getHeight();
if (mX > x && mX < x + width && mY > y && mY < y + height) {
int relativeX = mX - x;