using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Gissky.Geography.Legend
{
/// <summary>
/// Legend 的摘要说明。//code by aji 2004-10-01
/// </summary>
public class LegendSingle : System.Windows.Forms.UserControl
{
private ESRI.MapObjects2.Core.AxMap m_MapObj;
System.Drawing.Bitmap bmp ;
System.Drawing.Graphics g ;
int iTextDrawX;
private System.Windows.Forms.VScrollBar ScrollBarv;
private System.Windows.Forms.HScrollBar ScrollBarh;
private System.Windows.Forms.PictureBox LegendPicture;
private int bmpHeight;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public LegendSingle()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TOD 在 InitializeComponent 调用后添加任何构造函数代码
//
}
public LegendSingle(ESRI.MapObjects2.Core.AxMap obj)
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TOD 在 InitializeComponent 调用后添加任何构造函数代码
//
this.m_MapObj = obj;
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.LegendPicture = new System.Windows.Forms.PictureBox();
this.ScrollBarv = new System.Windows.Forms.VScrollBar();
this.ScrollBarh = new System.Windows.Forms.HScrollBar();
this.SuspendLayout();
//
// LegendPicture
//
this.LegendPicture.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.LegendPicture.BackColor = System.Drawing.SystemColors.HighlightText;
this.LegendPicture.Location = new System.Drawing.Point(0, 0);
this.LegendPicture.Name = "LegendPicture";
this.LegendPicture.Size = new System.Drawing.Size(200, 300);
this.LegendPicture.TabIndex = 3;
this.LegendPicture.TabStop = false;
//
// ScrollBarv
//
this.ScrollBarv.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Right)));
this.ScrollBarv.Location = new System.Drawing.Point(184, 0);
this.ScrollBarv.Name = "ScrollBarv";