Class ALsp3StepEditHandle

Direct Known Subclasses:
ALspObjectTranslationHandle, ALspOutlineResizeHandle, TLspPointTranslationHandle

public abstract class ALsp3StepEditHandle extends ALspEditHandle
Convenience handle class that separates the handling of AWT events into 3 steps. These steps include:
  • Activation: First the handle checks if the handle can be activated. If so, onActivate is called. When a handle is active, the subsequent events will be passed to it. A handle remains active until it is deactivated by onDeactivate.
  • Processing: If a handle is active, the handle checks if it can process an event. If so, process is called. This step is typically performed for multiple events. When an event is processed, it returns a TLspEditHandleResult, which contains the partially processed event, and a list of edit operations to perform.
  • Deactivation: If a handle is active the handle checks if it can be deactivated. If so, onDeactivate is called, and the handle becomes inactive (isActive returns false).
Subclasses should implement the above methods to obtain the desired behavior.

Note: This handle checks if it can be deactivated before it checks if it can process an event.

Since:
2012.0