コード例 #1
0
        object ICloneable.Clone()
        {
            BarWidthPositionGroupStyle result = new BarWidthPositionGroupStyle();

            result.CopyFrom(this);
            return(result);
        }
コード例 #2
0
            public object Deserialize(object o, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent)
            {
                BarWidthPositionGroupStyle s = null != o ? (BarWidthPositionGroupStyle)o : new BarWidthPositionGroupStyle();

                s._isStepEnabled = info.GetBoolean("StepEnabled");
                return(s);
            }
コード例 #3
0
        public BarWidthPositionGroupStyle Clone()
        {
            BarWidthPositionGroupStyle result = new BarWidthPositionGroupStyle();

            result.CopyFrom(this);
            return(result);
        }
コード例 #4
0
 public static void AddExternalGroupStyle(IPlotGroupStyleCollection externalGroups)
 {
     if (PlotGroupStyle.ShouldAddExternalGroupStyle(externalGroups, typeof(BarWidthPositionGroupStyle)))
     {
         BarWidthPositionGroupStyle gstyle = new BarWidthPositionGroupStyle();
         gstyle.IsStepEnabled = true;
         externalGroups.Add(gstyle);
     }
 }
コード例 #5
0
        public void TransferFrom(IPlotGroupStyle fromb)
        {
            BarWidthPositionGroupStyle from = (BarWidthPositionGroupStyle)fromb;

            _isInitialized       = from._isInitialized;
            _numberOfItems       = from._numberOfItems;
            _relInnerGapWidth    = from._relInnerGapWidth;
            _relOuterGapWidth    = from._relOuterGapWidth;
            _logicalClusterWidth = from._logicalClusterWidth;
            _width     = from._width;
            _positionX = from._positionX;
        }
コード例 #6
0
 void CopyFrom(BarWidthPositionGroupStyle from)
 {
     _isInitialized = from._isInitialized;
     _isStepEnabled = from._isStepEnabled;
     _wasTouchedInThisPrepareStep = from._wasTouchedInThisPrepareStep;
     _numberOfItems       = from._numberOfItems;
     _relInnerGapWidth    = from._relInnerGapWidth;
     _relOuterGapWidth    = from._relOuterGapWidth;
     _logicalClusterWidth = from._logicalClusterWidth;
     _width     = from._width;
     _positionX = from._positionX;
 }
コード例 #7
0
 void CopyFrom(BarWidthPositionGroupStyle from)
 {
   _isInitialized = from._isInitialized;
   _isStepEnabled = from._isStepEnabled;
   _wasTouchedInThisPrepareStep = from._wasTouchedInThisPrepareStep;
   _numberOfItems = from._numberOfItems;
   _relInnerGapWidth = from._relInnerGapWidth;
   _relOuterGapWidth = from._relOuterGapWidth;
   _logicalClusterWidth = from._logicalClusterWidth;
   _width = from._width;
   _positionX = from._positionX;
 }
コード例 #8
0
            public void Serialize(object obj, Altaxo.Serialization.Xml.IXmlSerializationInfo info)
            {
                BarWidthPositionGroupStyle s = (BarWidthPositionGroupStyle)obj;

                info.AddValue("StepEnabled", s._isStepEnabled);
            }
コード例 #9
0
 public static void AddExternalGroupStyle(IPlotGroupStyleCollection externalGroups)
 {
   if (PlotGroupStyle.ShouldAddExternalGroupStyle(externalGroups, typeof(BarWidthPositionGroupStyle)))
   {
     BarWidthPositionGroupStyle gstyle = new BarWidthPositionGroupStyle();
     gstyle.IsStepEnabled = true;
     externalGroups.Add(gstyle);
   }
 }
コード例 #10
0
 object ICloneable.Clone()
 {
   BarWidthPositionGroupStyle result = new BarWidthPositionGroupStyle();
   result.CopyFrom(this);
   return result;
 }
コード例 #11
0
 public BarWidthPositionGroupStyle Clone()
 {
   BarWidthPositionGroupStyle result = new BarWidthPositionGroupStyle();
   result.CopyFrom(this);
   return result;
 }