org.jhotdraw8.draw.action.AlignBottomAction 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!
/*
* @(#)AlignBottomAction.java
* Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.draw.action;
import javafx.event.ActionEvent;
import javafx.geometry.Point2D;
import javafx.scene.transform.Translate;
import org.jhotdraw8.application.resources.Resources;
import org.jhotdraw8.draw.DrawLabels;
import org.jhotdraw8.draw.DrawingEditor;
import org.jhotdraw8.draw.DrawingView;
import org.jhotdraw8.draw.figure.Figure;
import org.jhotdraw8.draw.model.DrawingModel;
import org.jhotdraw8.geom.FXTransforms;
import org.jspecify.annotations.Nullable;
import java.util.Set;
public class AlignBottomAction extends AbstractDrawingViewAction {
public static final String ID = "edit.alignBottom";
/**
* Creates a new instance.
*
* @param editor the drawing editor
*/
@SuppressWarnings("this-escape")
public AlignBottomAction(DrawingEditor editor) {
super(editor);
Resources labels
= DrawLabels.getResources();
labels.configureAction(this, ID);
}
@Override
protected void onActionPerformed(ActionEvent e, DrawingView drawingView) {
final Set