Class MapLayerEvent

    • Constructor Detail

      • MapLayerEvent

        public MapLayerEvent​(Object source,
                             int reason)
                      throws IllegalArgumentException
        Creates a new instance of LayerEvent with the specified reason.
        Parameters:
        source - The source of the event change.
        reason - Why the event was fired.
        Throws:
        IllegalArgumentException - If the reason is not a valid enum.
    • Method Detail

      • getReason

        public int getReason()
        Returns the reason why this event is fired. It is one of VISIBILITY_CHANGED or #TITLE_CHANGED constants.