using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; namespace OSGeo.MapGuide.Viewer { /// /// A legend control that displays and controls the visiblity of the layers in a runtime map /// public interface IMapLegend : IMapViewerComponent { /// /// Refreshes this component /// void RefreshLegend(); /// /// Sets the applicable scale /// /// void SetScale(double scale); /// /// Raised when a layer's visibility has changed /// event EventHandler VisibilityChanged; /// /// Gets or sets the context menu that is attached to group nodes /// ContextMenuStrip GroupContextMenu { get; set; } /// /// Gets or sets the context menu that is attached to layer nodes /// ContextMenuStrip LayerContextMenu { get; set; } /// /// Gets or sets the theme compression limit (the number of rules a theme must exceed in order to be /// compressed) /// int ThemeCompressionLimit { get; set; } /// /// Gets whether to show tooltips over nodes in the legend control /// bool ShowTooltips { get; set; } /// /// Gets the selected layer /// /// MgLayerBase GetSelectedLayer(); /// /// Gets the selected group /// /// MgLayerGroup GetSelectedGroup(); } }