
com.bigcustard.scene2dplus.textarea.command.MoveToCommand Maven / Gradle / Ivy
package com.bigcustard.scene2dplus.textarea.command;
import com.bigcustard.scene2dplus.XY;
import com.bigcustard.scene2dplus.textarea.TextAreaModel;
public class MoveToCommand extends AbstractTextAreaCommand {
private final XY newCaretLocation;
public MoveToCommand(TextAreaModel model, XY caretLocation) {
super(model);
this.newCaretLocation = caretLocation;
}
@Override
public void execute() {
model.caret().setLocation(newCaretLocation);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy