/// <summary>デフォルトコンストラクタ。</summary>
		public GlobalRenderingSettingData()
			{
			BackgroundColor = new ColorEx( 255, 0, 0, 0 );
			SelectedObjectBorder = Pens.Yellow;
			SelectedObjectFill = new HatchBrush( HatchStyle.Percent25, Color.Yellow );
			InvalidObjectBorder = Pens.Red;
			InvalidObjectFill = new HatchBrush( HatchStyle.Percent25, Color.Red );
			DisabledObjectBorder = Pens.Gray;
			DisabledObjectFill = new HatchBrush( HatchStyle.Percent25, Color.Gray );
			}
		/// <summary></summary>
		public GlobalRenderingSettingData(GlobalRenderingSettingData previous)
			{
			BackgroundColor = new ColorEx( previous.BackgroundColor );
			SelectedObjectBorder = new PenEx( previous.SelectedObjectBorder );
			SelectedObjectFill = new HatchBrushEx( previous.SelectedObjectFill );
			InvalidObjectBorder = new PenEx( previous.InvalidObjectBorder );
			InvalidObjectFill = new HatchBrushEx( previous.InvalidObjectFill );
			DisabledObjectBorder = new PenEx( previous.DisabledObjectBorder );
			DisabledObjectFill = new HatchBrushEx( previous.DisabledObjectFill );
			}
 /// <summary></summary>
 public GlobalRenderingSettingData(GlobalRenderingSettingData previous)
 {
     BackgroundColor      = new ColorEx(previous.BackgroundColor);
     SelectedObjectBorder = new PenEx(previous.SelectedObjectBorder);
     SelectedObjectFill   = new HatchBrushEx(previous.SelectedObjectFill);
     InvalidObjectBorder  = new PenEx(previous.InvalidObjectBorder);
     InvalidObjectFill    = new HatchBrushEx(previous.InvalidObjectFill);
     DisabledObjectBorder = new PenEx(previous.DisabledObjectBorder);
     DisabledObjectFill   = new HatchBrushEx(previous.DisabledObjectFill);
 }
 /// <summary>デフォルトコンストラクタ。</summary>
 public GlobalRenderingSettingData()
 {
     BackgroundColor      = new ColorEx(255, 0, 0, 0);
     SelectedObjectBorder = Pens.Yellow;
     SelectedObjectFill   = new HatchBrush(HatchStyle.Percent25, Color.Yellow);
     InvalidObjectBorder  = Pens.Red;
     InvalidObjectFill    = new HatchBrush(HatchStyle.Percent25, Color.Red);
     DisabledObjectBorder = Pens.Gray;
     DisabledObjectFill   = new HatchBrush(HatchStyle.Percent25, Color.Gray);
 }
        private void RadioButton_Paint(object sender, PaintEventArgs e)
        {
            RadioButton  radioButton = (sender as RadioButton);
            HatchBrushEx brush       = new HatchBrushEx();

            brush.HatchStyle = (HatchStyleEx)radioButton.Tag;
            e.Graphics.Clear(Color.Black);
            if (radioButton.Checked)
            {
                e.Graphics.DrawRectangle(new Pen(Color.Yellow, 3), e.ClipRectangle.X + 2, e.ClipRectangle.Y + 2, e.ClipRectangle.Width - 5, e.ClipRectangle.Height - 5);
            }
            e.Graphics.FillRectangle(brush, e.ClipRectangle.X + 4, e.ClipRectangle.Y + 4, e.ClipRectangle.Width - 8, e.ClipRectangle.Height - 8);
        }
		internal LayerSettingDialog(LayerData layer)
			{
			InitializeComponent();
			DialogResult = DialogResult.Cancel;

			Layer = layer;
			LayerProfile = Layer.Profile;
			textBoxLayerName.Text = Layer.Name;
			Border = new PenEx( LayerProfile.RenderSetting.Border );
			Fill = new HatchBrushEx( LayerProfile.RenderSetting.Fill );

			Text = Language.LayerSettingDialog.Text;
			labelName.Text = Language.LayerSettingDialog.LabelLayerName;
			groupBoxMaterial.Text = Language.LayerSettingDialog.GroupBoxMaterial;
			buttonMaterial.Text = Language.LayerSettingDialog.ButtonMaterial;
			groupBoxRenderingStyle.Text = Language.LayerSettingDialog.GroupBoxRenderingStyle;
			buttonBorderColor.Text = Language.LayerSettingDialog.ButtonBorderColor;
			buttonFillColor.Text = Language.LayerSettingDialog.ButtonFillColor;
			buttonFillStyle.Text = Language.LayerSettingDialog.ButtonFillStyle;
			buttonOK.Text = Language.DialogGeneral.ButtonOK;
			buttonCancel.Text = Language.DialogGeneral.ButtonCancel;
			}
        internal LayerSettingDialog(LayerData layer)
        {
            InitializeComponent();
            DialogResult = DialogResult.Cancel;

            Layer                 = layer;
            LayerProfile          = Layer.Profile;
            textBoxLayerName.Text = Layer.Name;
            Border                = new PenEx(LayerProfile.RenderSetting.Border);
            Fill = new HatchBrushEx(LayerProfile.RenderSetting.Fill);

            Text                        = Language.LayerSettingDialog.Text;
            labelName.Text              = Language.LayerSettingDialog.LabelLayerName;
            groupBoxMaterial.Text       = Language.LayerSettingDialog.GroupBoxMaterial;
            buttonMaterial.Text         = Language.LayerSettingDialog.ButtonMaterial;
            groupBoxRenderingStyle.Text = Language.LayerSettingDialog.GroupBoxRenderingStyle;
            buttonBorderColor.Text      = Language.LayerSettingDialog.ButtonBorderColor;
            buttonFillColor.Text        = Language.LayerSettingDialog.ButtonFillColor;
            buttonFillStyle.Text        = Language.LayerSettingDialog.ButtonFillStyle;
            buttonOK.Text               = Language.DialogGeneral.ButtonOK;
            buttonCancel.Text           = Language.DialogGeneral.ButtonCancel;
        }
		/// <summary>コピーコンストラクタ。</summary>
		/// <param name="previous"></param>
		public LayerRenderSettingData(LayerRenderSettingData previous)
			{
			Visible = previous.Visible;
			Border = new PenEx( previous.Border );
			Fill = new HatchBrushEx( previous.Fill );
			}
Beispiel #9
0
 /// <summary>コピーコンストラクタ。</summary>
 /// <param name="previous"></param>
 public LayerRenderSettingData(LayerRenderSettingData previous)
 {
     Visible = previous.Visible;
     Border  = new PenEx(previous.Border);
     Fill    = new HatchBrushEx(previous.Fill);
 }