blob: f4ecbdddde13a378edde8434d1e4fdf7bf3c8db1 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2016 CEA LIST and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* CEA LIST - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.interoperability.rpy.geometry.custom;
import org.eclipse.papyrus.interoperability.rpy.geometry.rpygeometry.Point;
import org.eclipse.papyrus.interoperability.rpy.geometry.rpygeometry.impl.RectangleImpl;
import org.eclipse.papyrus.interoperability.rpy.geometry.utils.RectangleOperations;
public class CustomRectangle extends RectangleImpl {
@Override
public Point getTopLeft() {
return RectangleOperations.getTopLeft(this);
}
@Override
public Point getTopRight() {
return RectangleOperations.getTopRight(this);
}
@Override
public Point getBottomRight() {
return RectangleOperations.getBottomRight(this);
}
@Override
public Point getBottomLeft() {
return RectangleOperations.getBottomLeft(this);
}
}