Beispiel #1
0
        public LabelPlotStyle(LabelPlotStyle from)
        {
            this._font               = (Font)from._font.Clone();
            this._independentColor   = from._independentColor;
            this._brush              = (BrushX)from._brush.Clone();
            this._xOffset            = from._xOffset;
            this._yOffset            = from._yOffset;
            this._rotation           = from._rotation;
            this._backgroundStyle    = null == from._backgroundStyle ? null : (IBackgroundStyle)from._backgroundStyle.Clone();
            this._cachedStringFormat = (System.Drawing.StringFormat)from._cachedStringFormat.Clone();
            this._attachedPlane      = null == from._attachedPlane ? null : from._attachedPlane.Clone();
            this._labelColumn        = (Altaxo.Data.ReadableColumnProxy)from._labelColumn.Clone();
            this._parent             = from._parent;

            CreateEventChain();
        }
Beispiel #2
0
        public LabelPlotStyle(Altaxo.Data.IReadableColumn labelColumn)
        {
            this._font                             = new Font(System.Drawing.FontFamily.GenericSansSerif, 8, GraphicsUnit.World);
            this._independentColor                 = false;
            this._brush                            = new BrushX(Color.Black);
            this._xOffset                          = 0;
            this._yOffset                          = 0;
            this._rotation                         = 0;
            this._backgroundStyle                  = null;
            this._cachedStringFormat               = new StringFormat(StringFormatFlags.NoWrap);
            this._cachedStringFormat.Alignment     = System.Drawing.StringAlignment.Center;
            this._cachedStringFormat.LineAlignment = System.Drawing.StringAlignment.Center;
            this._attachedPlane                    = null;
            this._labelColumn                      = new Altaxo.Data.ReadableColumnProxy(labelColumn);

            CreateEventChain();
        }
    public LabelPlotStyle(Altaxo.Data.IReadableColumn labelColumn)
    {
      this._font = new Font(System.Drawing.FontFamily.GenericSansSerif, 8, GraphicsUnit.World);
      this._independentColor = false;
      this._brush = new BrushX(Color.Black);
      this._xOffset = 0;
      this._yOffset = 0;
      this._rotation = 0;
      this._backgroundStyle = null;
      this._cachedStringFormat = new StringFormat(StringFormatFlags.NoWrap);
      this._cachedStringFormat.Alignment = System.Drawing.StringAlignment.Center;
      this._cachedStringFormat.LineAlignment = System.Drawing.StringAlignment.Center;
      this._attachedPlane = null;
      this._labelColumn = new Altaxo.Data.ReadableColumnProxy(labelColumn);

      CreateEventChain();
    }
    public LabelPlotStyle(LabelPlotStyle from)
    {
      this._font = (Font)from._font.Clone();
      this._independentColor = from._independentColor;
      this._brush = (BrushX)from._brush.Clone();
      this._xOffset = from._xOffset;
      this._yOffset = from._yOffset;
      this._rotation = from._rotation;
      this._backgroundStyle = null == from._backgroundStyle ? null : (IBackgroundStyle)from._backgroundStyle.Clone();
      this._cachedStringFormat = (System.Drawing.StringFormat)from._cachedStringFormat.Clone();
      this._attachedPlane = null==from._attachedPlane ? null : from._attachedPlane.Clone();
      this._labelColumn = (Altaxo.Data.ReadableColumnProxy)from._labelColumn.Clone();
      this._parent = from._parent;

      CreateEventChain();
    }