コード例 #1
0
 /// <summary>
 /// Fires the EnvelopeChanged event.
 /// </summary>
 /// <param name="sender">The object sender for this event (this)</param>
 /// <param name="e">The EnvelopeArgs specifying the envelope</param>
 protected virtual void OnEnvelopeChanged(object sender, EnvelopeArgs e)
 {
     if (EnvelopeChanged != null)
     {
         EnvelopeChanged(sender, e);
     }
 }
コード例 #2
0
ファイル: LayerEventList.cs プロジェクト: osome/DotSpatial
 /// <summary>
 /// Fires the ZoomToLayer method when one of the layers fires its ZoomTo event
 /// </summary>
 /// <param name="sender">The layer to zoom to</param>
 /// <param name="e">The extent of the layer</param>
 protected virtual void OnZoomToLayer(object sender, EnvelopeArgs e)
 {
     // Just forward the event
     if (ZoomToLayer != null)
     {
         ZoomToLayer(sender, e);
     }
 }
コード例 #3
0
 private void LayersZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(e.Envelope);
 }
コード例 #4
0
ファイル: LayerEventList.cs プロジェクト: osome/DotSpatial
 private void Layer_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(sender, e);
 }
コード例 #5
0
 /// <summary>
 /// This adjusts the extents when ZoomToLayer is called in one of the internal layers.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     ViewExtents = e.Envelope.ToExtent();
 }
コード例 #6
0
ファイル: LayerFrame.cs プロジェクト: ExRam/DotSpatial-PCL
 /// <summary>
 /// This adjusts the extents when ZoomToLayer is called in one of the internal layers.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected virtual void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     ViewExtents = e.Envelope.ToExtent();
 }
コード例 #7
0
ファイル: Group.cs プロジェクト: ExRam/DotSpatial-PCL
 private void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     OnZoomToLayer(e.Envelope);
 }
コード例 #8
0
 /// <summary>
 /// Fires the ZoomToLayer method when one of the layers fires its ZoomTo event.
 /// </summary>
 /// <param name="sender">The layer to zoom to.</param>
 /// <param name="e">The extent of the layer.</param>
 protected virtual void OnZoomToLayer(object sender, EnvelopeArgs e)
 {
     // Just forward the event
     ZoomToLayer?.Invoke(sender, e);
 }
コード例 #9
0
 /// <summary>
 /// Fires the EnvelopeChanged event.
 /// </summary>
 /// <param name="sender">The object sender for this event (this)</param>
 /// <param name="e">The EnvelopeArgs specifying the envelope</param>
 protected virtual void OnEnvelopeChanged(object sender, EnvelopeArgs e)
 {
     if (EnvelopeChanged != null)
     {
         EnvelopeChanged(sender, e);
     }
 }
コード例 #10
0
 /// <summary>
 /// Fires the EnvelopeChanged event.
 /// </summary>
 /// <param name="sender">The object sender for this event (this).</param>
 /// <param name="e">The EnvelopeArgs specifying the envelope.</param>
 protected virtual void OnEnvelopeChanged(object sender, EnvelopeArgs e)
 {
     EnvelopeChanged?.Invoke(sender, e);
 }
コード例 #11
0
ファイル: MapFrame.cs プロジェクト: ExRam/DotSpatial-PCL
 /// <summary>
 /// Modifies the ZoomToLayer behavior to account for the possibility of an expanded
 /// MapFrame.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 protected override void Layers_ZoomToLayer(object sender, EnvelopeArgs e)
 {
     ZoomToLayerEnvelope(e.Envelope);
 }