All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bigcustard.scene2dplus.textarea.command.SelectCommand Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.bigcustard.scene2dplus.textarea.command;

import com.bigcustard.scene2dplus.XY;
import com.bigcustard.scene2dplus.textarea.TextAreaModel;

public class SelectCommand extends AbstractTextAreaCommand {
    private XY startLocation;
    private XY endLocation;

    public SelectCommand(TextAreaModel model, XY startLocation, XY endLocation) {
        super(model);
        this.startLocation = startLocation;
        this.endLocation = endLocation;
    }

    @Override
    public void execute() {
        model.caret().setSelection(startLocation, endLocation);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy