org.jhotdraw8.draw.figure.ConnectingFigure Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jhotdraw8.draw Show documentation
Show all versions of org.jhotdraw8.draw Show documentation
JHotDraw8 Drawing Framework
The newest version!
/*
* @(#)ConnectingFigure.java
* Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.draw.figure;
import org.jhotdraw8.draw.connector.Connector;
/**
* ConnectingFigure.
*
* @author Werner Randelshofer
*/
public interface ConnectingFigure extends Figure {
/**
* Returns true if this figure can connect to the specified figure with the
* specified connector.
*
* @param figure The figure to which we want connect
* @param connector The connector that we want to use
* @return true if the connection is supported
*/
default boolean canConnect(Figure figure, Connector connector) {
return true;
}
}