Package com.luciad.edit.handles
Interface ITranslateEditAction
public interface ITranslateEditAction
A translate action performs a translation of a geometry or feature.
This translation is non-incremental. For example when translating a Geometry, this means that consecutive calls to the ITranslateEditAction#translate method should be applied to the same initial geometry. So consecutive calls should not apply a translation on the result of the previous translation.
You can distinguish between different stages of the translation using the translation status parameter. It allows to make a distinction between the start and end of the translation, and intermediate updates.
-
Method Summary
Modifier and TypeMethodDescriptionvoidtranslate(Coordinate translation, EventStatus translateStatus, ChangeStatus changeStatus) Performs a translation.
-
Method Details
-
translate
void translate(@NotNull Coordinate translation, @NotNull EventStatus translateStatus, @NotNull ChangeStatus changeStatus) Performs a translation.- Parameters:
translation- the translation to performtranslateStatus- Used to indicate that a translation has started, is in progress, or has ended. This parameter is useful to determine on which object a change needs to be applied. For example when translationstarts, this action should determine an 'initial state' on which the next (updateandend) translate calls will be applied. This initial state can be discarded afterEventStatus#Endhas been passed. It is guaranteed that a translate sequence will contain at least 1 Start, and 1 End call.changeStatus- the status of the change. Can be used to distinguish between intermediate changes and a keypoint change.
-