/******************************************************************************* | |
* <copyright> | |
* | |
* Copyright (c) 2013, 2013 SAP AG. | |
* 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: | |
* SAP AG - initial API, implementation and documentation | |
* | |
* </copyright> | |
* | |
*******************************************************************************/ | |
package org.eclipse.fmc.blockdiagram.editor.algorithm.node; | |
import java.util.List; | |
import org.eclipse.graphiti.mm.algorithms.styles.Point; | |
/** | |
* This is the super interface that all polygon algorithms must implement. | |
* | |
* @author Benjamin Schmeling | |
* @author Heiko Witteborg | |
* | |
*/ | |
public interface PolygonAlgorithm extends AnchoredNode, MultipleNode, | |
ResizableNode, NamedNode, ContainerNode, RotatableNode { | |
/** | |
* Indicates whether the polygon algorithm has rounded corners. | |
*/ | |
public boolean hasRoundedCorners(); | |
/** | |
* Retrieve a list of initial points according to the given parameters. | |
* | |
* @param x | |
* The relative x offset of the polygon. | |
* @param y | |
* The relative y offset of the polygon. | |
* @param width | |
* The width of the polygon. | |
* @param height | |
* The height of the polygon. | |
* @return The list of initial points of the polygon. | |
*/ | |
public List<Point> getInitialPoints(int x, int y, int width, int height); | |
} |