throw new NotImplementedYetException();
}
@Override
public void resize(Object node, Dimension newSize) {
GraphNodeUi2D nodeUi = getGraph().getNodeUi(node);
if (!nodeUi.isResizable()) {
// alternatively just return quietly
throw new IllegalArgumentException("node is not resizable");
}
Dimension currentSize = nodeUi.getSize();
Dimension minSize = nodeUi.getMinimumSize();
newSize.width = Math.max(newSize.width, minSize.width);
newSize.height = Math.max(newSize.height, minSize.height);
if (!currentSize.equals(newSize)) {
if (node instanceof EmailWrapperNode) {
resizeEmailNode((EmailWrapperNode) node, newSize);