- java.lang.Object
-
- io.github.interacto.command.CommandImpl
-
- io.github.interacto.command.library.PositionCommand
-
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
Zoom
public abstract class PositionCommand extends CommandImpl
Defines an abstract command that move an object to the given position.- Author:
- Arnaud BLOUIN
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.github.interacto.command.Command
Command.CmdStatus, Command.RegistrationPolicy
-
-
Field Summary
Fields Modifier and Type Field Description protected doublepxThe X-coordinate of the location to zoom.protected doublepyThe Y-coordinate of the location to zoom.-
Fields inherited from class io.github.interacto.command.CommandImpl
status
-
-
Constructor Summary
Constructors Constructor Description PositionCommand()Creates the command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetPx(double px)voidsetPy(double py)-
Methods inherited from class io.github.interacto.command.CommandImpl
cancel, canDo, createMemento, doCmdBody, doIt, done, flush, getRegistrationPolicy, getStatus, hadEffect, isDone, toString, unregisteredBy
-
-