DK for Java | tatukgis.jdk.IGIS_Subscribe | Interfaces | Methods
Interface for objects that receive viewer subscription notifications.
// Java public abstract interface IGIS_Subscribe { };
// Oxygene type IGIS_Subscribe = public interface end;
| Name | Visibility | Description | |
|---|---|---|---|
| SubscribedEvent | public | Handles a viewer subscription notification. | |
PURPOSE: Implement this interface in controls or helper objects that need to react to viewer state changes and refresh their own presentation or cached information.
BEHAVIOR: Subscribers receive notifications through SubscribedEvent with the sender, event identifier, and optional context object supplied by the viewer. This interface is used by components such as TGIS_ControlLegend and TGIS_ControlScale.
USAGE: Implement the callback and subscribe the object to the viewer.
subscriber = CustomSubscriber() viewer.Subscribe(subscriber)