public void TransferFrom(IPlotGroupStyle fromb) { var from = (DashPatternGroupStyle)fromb; _value = from._value; _listOfValues = from._listOfValues; }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (LineConnection2DGroupStyle)fromb; _isInitialized = from._isInitialized; _lineConnectionStyle = from._lineConnectionStyle; }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (VariableSymbolSizeGroupStyle)fromb; _isInitialized = from._isInitialized; _symbolSizeForIndex = from._symbolSizeForIndex; }
/// <summary> /// Inserts a group style by adding it. The child group style type is appended as child to this group type. /// In case the child type has a parent, then this will be the parent of the inserted group style. /// </summary> /// <param name="groupStyle"></param> /// <param name="childGroupStyleType"></param> public void Insert(IPlotGroupStyle groupStyle, System.Type childGroupStyleType) { if (groupStyle == null) { throw new ArgumentNullException("Try to add a null value to this group style collection"); } if (_typeToInstance.ContainsKey(groupStyle.GetType())) { throw new ArgumentException(string.Format("The group style type <<{0}>> is already present in this group style collection", groupStyle.GetType())); } if (childGroupStyleType != null && !_typeToInstance.ContainsKey(childGroupStyleType)) { throw new ArgumentException(string.Format("The child group style (of type: {0}) can not be found in this collection", childGroupStyleType)); } _typeToInstance.Add(groupStyle.GetType(), groupStyle); GroupInfo groupInfo = new GroupInfo(); groupInfo.ChildGroupType = childGroupStyleType; _typeToInfo.Add(groupStyle.GetType(), groupInfo); if (childGroupStyleType != null) { System.Type oldParentType = _typeToInfo[childGroupStyleType].ParentGroupType; _typeToInfo[childGroupStyleType].ParentGroupType = groupStyle.GetType(); groupInfo.ParentGroupType = oldParentType; if (oldParentType != null) { _typeToInfo[oldParentType].ChildGroupType = groupStyle.GetType(); } } }
public void EhView_MoveDownGroupStyle() { if (0 == _currentNoOfItemsThatCanHaveChilds || _currentNormalStyles[_currentNoOfItemsThatCanHaveChilds - 1].IsSelected) { return; // can not move down any more } for (int i = _currentNoOfItemsThatCanHaveChilds - 2; i >= 0; i--) { CheckableSelectableListNode selected = _currentNormalStyles[i]; if (!selected.IsSelected) { continue; } IPlotGroupStyle style = _doc.GetPlotGroupStyle((Type)selected.Tag); Type childtype = _doc.GetTypeOfChild(style.GetType()); _doc.RemoveType(style.GetType()); // Removing the type so removing also the parent-child-relationship if (childtype == null) { _doc.Add(style); } else { _doc.Add(style, childtype); // Add the type, but the child type this time is the parent type } _currentNormalStyles.Exchange(i, i + 1); } // this requires the whole currentNormalStyle list to be updated UpdateCurrentNormalOrder(); _view.InitializeCurrentNormalGroupStyles(_currentNormalStyles); }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (VariableColorGroupStyle)fromb; _isInitialized = from._isInitialized; _colorForIndex = from._colorForIndex; }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (ScatterSymbolGroupStyle)fromb; _value = from._value; _listOfValues = from._listOfValues; }
public void EhView_IndentGroupStyle() { // for all selected items: append it as child to the item upward int count = Math.Min(_currentNoOfItemsThatCanHaveChilds + 1, _currentNormalStyles.Count); // note: the first item that can step, but can not have childs, could also be indented, thats why 1+ for (int i = 1; i < count; ++i) { CheckableSelectableListNode selected = _currentNormalStyles[i]; if (!selected.IsSelected) { continue; } if (null != _doc.GetParentTypeOf((Type)selected.Tag)) { continue; // only ident those items who dont have a parent } IPlotGroupStyle style = _doc.GetPlotGroupStyle((Type)selected.Tag); _doc.RemoveType(style.GetType()); // Removing the type so removing also the parent-child-relationship _doc.Add(style, (Type)_currentNormalStyles[i - 1].Tag); // Add the type again, but this time without parents or childs } // this requires the whole currentNormalStyle list to be updated UpdateCurrentNormalOrder(); UpdateCurrentNormalIndentation(); _view.InitializeCurrentNormalGroupStyles(_currentNormalStyles); }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (SkipFrequencyGroupStyle)fromb; _isInitialized = from._isInitialized; _skipFrequency = from._skipFrequency; }
public void TransferFrom(IPlotGroupStyle fromb) { SymbolShapeStyleGroupStyle from = (SymbolShapeStyleGroupStyle)fromb; this._isInitialized = from._isInitialized; this._shapeAndStyle = new ShapeAndStyle(from._shapeAndStyle.Shape, from._shapeAndStyle.Style); }
public void TransferFrom(IPlotGroupStyle fromb) { SymbolSizeGroupStyle from = (SymbolSizeGroupStyle)fromb; this._isInitialized = from._isInitialized; _symbolSize = from._symbolSize; }
public void EhView_AddNormalGroupStyle() { SelectableListNode selected = null; foreach (SelectableListNode node in _availableNormalStyles) { if (node.Selected) { selected = node; break; } } if (null != selected) { _availableNormalStyles.Remove(selected); IPlotGroupStyle s = (IPlotGroupStyle)Activator.CreateInstance((Type)selected.Item); _doc.Add(s); CheckableSelectableListNode node = new CheckableSelectableListNode( Current.Gui.GetUserFriendlyClassName(s.GetType()), s.GetType(), true, s.IsStepEnabled); if (s.CanHaveChilds()) { _currentNormalStyles.Insert(_currentStepItems, node); _currentStepItems++; } else { _currentNormalStyles.Add(node); } _view.InitializeAvailableNormalGroupStyles(_availableNormalStyles); _view.InitializeCurrentNormalGroupStyles(_currentNormalStyles); } }
public void EhView_MoveUpGroupStyle() { if (0 == _currentStepItems || _currentNormalStyles[0].Selected) { return; // can not move up any more } for (int i = 1; i < _currentStepItems; i++) { CheckableSelectableListNode selected = _currentNormalStyles[i]; if (!selected.Selected) { continue; } IPlotGroupStyle style = _doc.GetPlotGroupStyle((Type)selected.Item); Type parenttype = _doc.GetParentTypeOf(style.GetType()); _doc.RemoveType(style.GetType()); // Removing the type so removing also the parent-child-relationship if (parenttype == null) { _doc.Add(style); } else { _doc.Insert(style, parenttype); // Add the type, but parent type is this time the child type } _currentNormalStyles.Exchange(i, i - 1); } // this requires the whole currentNormalStyle list to be updated UpdateCurrentNormalOrder(); _view.InitializeCurrentNormalGroupStyles(_currentNormalStyles); }
public void Step(int step) { foreach (KeyValuePair <Type, IPlotGroupStyle> entry in _typeToInstance) { Type groupType = entry.Key; IPlotGroupStyle groupStyle = entry.Value; GroupInfo groupInfo = _typeToInfo[groupType]; if (groupInfo.ParentGroupType == null && groupInfo.WasApplied && groupStyle.IsStepEnabled ) { int subStep = groupStyle.Step(step); GroupInfo subGroupInfo = groupInfo; for (Type subGroupType = subGroupInfo.ChildGroupType; subGroupType != null && subStep != 0; subGroupType = subGroupInfo.ChildGroupType) { subGroupInfo = _typeToInfo[subGroupType]; IPlotGroupStyle subGroupStyle = _typeToInstance[subGroupType]; subStep = subGroupStyle.IsStepEnabled ? subGroupStyle.Step(subStep) : 0; } } groupInfo.WasApplied = false; } }
public override bool Apply(bool disposeController) { foreach (SelectableListNode node in _availableTransfoStyles) { if (node.IsSelected) { _currentTransfoStyle = (ICoordinateTransformingGroupStyle)node.Tag; _doc.CoordinateTransformingStyle = _currentTransfoStyle; break; } } _view.SynchronizeCurrentNormalGroupStyles(); // synchronize the checked state of the items foreach (CheckableSelectableListNode node in _currentNormalStyles) { IPlotGroupStyle style = _doc.GetPlotGroupStyle((Type)node.Tag); style.IsStepEnabled = node.IsChecked; } _view.QueryUpdateMode(out var inherit, out var distribute); _doc.InheritFromParentGroups = inherit; _doc.DistributeToChildGroups = distribute; foreach (SelectableListNode node in _availableUpdateModes) { if (node.IsSelected) { _doc.PlotGroupStrictness = (PlotGroupStrictness)node.Tag; break; } } return(ApplyEnd(true, disposeController)); }
/// <summary> /// Executes a step only on those items, where in the own collection the stepping is enabled, but in the foreign collection it is present, but is not enabled. /// </summary> /// <param name="step"></param> /// <param name="foreignStyles"></param> public void StepIfForeignSteppingFalse(int step, PlotGroupStyleCollectionBase foreignStyles) { foreach (KeyValuePair <Type, IPlotGroupStyle> entry in _typeToInstance) { Type groupType = entry.Key; IPlotGroupStyle groupStyle = entry.Value; GroupInfo groupInfo = _typeToInfo[groupType]; if (groupInfo.ParentGroupType == null && groupInfo.WasApplied && groupStyle.IsStepEnabled && foreignStyles.ContainsType(groupType) && !(foreignStyles.GetPlotGroupStyle(groupType).IsStepEnabled) ) { int subStep = groupStyle.Step(step); GroupInfo subGroupInfo = groupInfo; for (Type subGroupType = subGroupInfo.ChildGroupType; subGroupType != null && subStep != 0; subGroupType = subGroupInfo.ChildGroupType) { subGroupInfo = _typeToInfo[subGroupType]; IPlotGroupStyle subGroupStyle = _typeToInstance[subGroupType]; subStep = subGroupStyle.IsStepEnabled ? subGroupStyle.Step(subStep) : 0; } } groupInfo.WasApplied = false; } }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (IgnoreMissingDataPointsGroupStyle)fromb; _isInitialized = from._isInitialized; _ignoreMissingDataPoints = from._ignoreMissingDataPoints; }
public static void TransferFromToIfBothSteppingEnabled(PlotGroupStyleCollectionBase from, PlotGroupStyleCollectionBase tothis) { foreach (KeyValuePair <Type, IPlotGroupStyle> entry in from._typeToInstance) { Type groupType = entry.Key; if (!tothis.ContainsType(groupType)) { continue; } IPlotGroupStyle fromGroupStyle = entry.Value; if (false == fromGroupStyle.IsStepEnabled) { continue; } IPlotGroupStyle tothisGroupStyle = tothis.GetPlotGroupStyle(groupType); if (false == tothisGroupStyle.IsStepEnabled) { continue; } tothisGroupStyle.TransferFrom(fromGroupStyle); } }
public void TransferFrom(IPlotGroupStyle fromb) { LineStyleGroupStyle from = (LineStyleGroupStyle)fromb; this._isInitialized = from._isInitialized; this._value = from._value; }
public void TransferFrom(IPlotGroupStyle fromb) { ColorGroupStyle from = (ColorGroupStyle)fromb; System.Diagnostics.Debug.WriteLine(string.Format("ColorTransfer: myIni={0}, myCol={1}, fromI={2}, fromC={3}", _isInitialized, (_color == null?null:_color.Color.ToString()), from._isInitialized, (from._color == null?null:from._color.Color.ToString()))); this._isInitialized = from._isInitialized; this._color = from._color; }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (ColorGroupStyle)fromb; //System.Diagnostics.Debug.WriteLine(string.Format("ColorTransfer: myIni={0}, myCol={1}, fromI={2}, fromC={3}", _isInitialized, _color.Color.ToString(), from._isInitialized, from._color.Color.ToString())); _isInitialized = from._isInitialized; _listOfValues = from._listOfValues; _colorIndex = from._colorIndex; _cachedColor = from._cachedColor; }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (BarSizePosition2DGroupStyle)fromb; _relInnerGapX = from._relInnerGapX; _relOuterGapX = from._relOuterGapX; _logicalClusterSizeX = from._logicalClusterSizeX; _logicalItemSizeX = from._logicalItemSizeX; _logicalItemOffsetX = from._logicalItemOffsetX; }
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; }
/// <summary> /// Adds a group style to this collection, as a child of another group style. If the parent group style doesn't allow childs, then the group style is added normally. /// </summary> /// <param name="groupStyle">Group style to add to this collection.</param> /// <param name="parentGroupStyleType">Type of the parent group style.</param> public void Add(IPlotGroupStyle groupStyle, System.Type parentGroupStyleType) { if (parentGroupStyleType != null) { if (!_typeToInstance.ContainsKey(parentGroupStyleType)) { throw new ArgumentException(string.Format("The parent group style (of type: {0}) can not be found in this collection", parentGroupStyleType)); } var parentInstance = _typeToInstance[parentGroupStyleType]; if (!parentInstance.CanCarryOver) { Add(groupStyle); EhSelfChanged(EventArgs.Empty); return; } } if (groupStyle == null) { throw new ArgumentNullException("Try to add a null value to this group style collection"); } if (_typeToInstance.ContainsKey(groupStyle.GetType())) { throw new ArgumentException(string.Format("The group style type <<{0}>> is already present in this group style collection", groupStyle.GetType())); } groupStyle.ParentObject = this; _typeToInstance.Add(groupStyle.GetType(), groupStyle); var groupInfo = new GroupInfo { ParentGroupType = parentGroupStyleType }; _typeToInfo.Add(groupStyle.GetType(), groupInfo); if (parentGroupStyleType != null) { System.Type oldChildType = _typeToInfo[parentGroupStyleType].ChildGroupType; _typeToInfo[parentGroupStyleType].ChildGroupType = groupStyle.GetType(); groupInfo.ChildGroupType = oldChildType; if (oldChildType != null) { _typeToInfo[oldChildType].ParentGroupType = groupStyle.GetType(); } } EhSelfChanged(EventArgs.Empty); }
/// <summary> /// Comparison of plot group styles. Primarily they are sorted by the flag <see cref="IPlotGroupStyle.CanCarryOver"/>, so that items that can not have childs appear /// later in the list. Secondly, the items that can step appear earlier in the list. Thirdly, the items are sorted by their parent-child relationship, and finally, by their name. /// </summary> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> private int ComparePlotGroupStyles(IPlotGroupStyle x, IPlotGroupStyle y) { if (x.CanCarryOver != y.CanCarryOver) { return(x.CanCarryOver ? -1 : 1); } if (x.CanStep != y.CanStep) { return(x.CanStep ? -1 : 1); } else { return(string.Compare(Current.Gui.GetUserFriendlyClassName(x.GetType()), Current.Gui.GetUserFriendlyClassName(y.GetType()))); } }
public virtual void SDeserialize(PlotGroupStyleCollectionBase s, Altaxo.Serialization.Xml.IXmlDeserializationInfo info, object parent) { Type parentStyleType = null; int count = info.OpenArray(); for (int i = 0; i < count; i++) { IPlotGroupStyle style = (IPlotGroupStyle)info.GetValue("Style", s); bool hasChild = info.GetBoolean("HasChild"); s.Add(style, parentStyleType); parentStyleType = hasChild ? style.GetType() : null; } info.CloseArray(count); s._plotGroupStrictness = (PlotGroupStrictness)info.GetEnum("Strictness", typeof(PlotGroupStrictness)); }
public bool Apply() { foreach (SelectableListNode node in _availableTransfoStyles) { if (node.Selected) { _currentTransfoStyle = (Type)node.Item; break; } } if (null != _currentTransfoStyle) { _doc.CoordinateTransformingStyle = (ICoordinateTransformingGroupStyle)Activator.CreateInstance(_currentTransfoStyle); } else { _doc.CoordinateTransformingStyle = null; } _view.SynchronizeCurrentNormalGroupStyles(); // synchronize the checked state of the items foreach (CheckableSelectableListNode node in _currentNormalStyles) { IPlotGroupStyle style = _doc.GetPlotGroupStyle((Type)node.Item); style.IsStepEnabled = node.Checked; } bool inherit, distribute; _view.QueryUpdateMode(out inherit, out distribute); _doc.InheritFromParentGroups = inherit; _doc.DistributeToChildGroups = distribute; foreach (SelectableListNode node in _availableUpdateModes) { if (node.Selected) { _doc.PlotGroupStrictness = (PlotGroupStrictness)node.Item; break; } } if (_useDocument == UseDocument.Copy) { _origdoc.CopyFrom(_doc); } return(true); }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (BarSizePosition3DGroupStyle)fromb; _barShiftStrategy = from._barShiftStrategy; _barShiftMaxNumberOfItemsInOneDirection = from._barShiftMaxNumberOfItemsInOneDirection; _relInnerGapX = from._relInnerGapX; _relOuterGapX = from._relOuterGapX; _relInnerGapY = from._relInnerGapY; _relOuterGapY = from._relOuterGapY; _logicalClusterSizeX = from._logicalClusterSizeX; _logicalClusterSizeY = from._logicalClusterSizeY; _logicalItemSizeX = from._logicalItemSizeX; _logicalItemOffsetX = from._logicalItemOffsetX; _logicalItemSizeY = from._logicalItemSizeY; _logicalItemOffsetY = from._logicalItemOffsetY; }
/// <summary> /// Executes a prepare step only on those items, where in the own collection the stepping is enabled, but in the foreign collection it is present, but is not enabled. /// </summary> /// <param name="foreignStyles"></param> public void PrepareStepIfForeignSteppingFalse(PlotGroupStyleCollectionBase foreignStyles) { foreach (KeyValuePair <Type, IPlotGroupStyle> entry in _typeToInstance) { Type groupType = entry.Key; IPlotGroupStyle groupStyle = entry.Value; GroupInfo groupInfo = _typeToInfo[groupType]; if (groupInfo.ParentGroupType == null && groupInfo.WasApplied && groupStyle.IsStepEnabled && foreignStyles.ContainsType(groupType) && !(foreignStyles.GetPlotGroupStyle(groupType).IsStepEnabled) ) { groupStyle.PrepareStep(); } } }
/// <summary> /// This updates the list, presuming that the number of items has not changed. /// </summary> private void UpdateCurrentNormalOrder() { // if possible, we try to maintain the order in the list in which the items // appear if (0 == _currentNoOfItemsThatCanHaveChilds) { return; // then there is nothing to do now } IPlotGroupStyle previousStyle = null; IPlotGroupStyle style = null; for (int i = 0; i < _currentNoOfItemsThatCanHaveChilds; i++, previousStyle = style) { CheckableSelectableListNode node = _currentNormalStyles[i]; style = _doc.GetPlotGroupStyle((Type)node.Tag); if (previousStyle != null) { Type prevchildtype = _doc.GetTypeOfChild(previousStyle.GetType()); if (prevchildtype != null) { if (prevchildtype != style.GetType()) { int pi = _currentNormalStyles.IndexOfObject(prevchildtype); _currentNormalStyles.Exchange(i, pi); } continue; } } Type parenttype = _doc.GetParentTypeOf(style.GetType()); if (parenttype != null && (previousStyle == null || previousStyle.GetType() != parenttype)) { int pi = _currentNormalStyles.IndexOfObject(parenttype); _currentNormalStyles.Exchange(i, pi); } } UpdateCurrentNormalIndentation(); }
public void TransferFrom(IPlotGroupStyle fromb) { ScatterSymbolGroupStyle from = (ScatterSymbolGroupStyle)fromb; this._value = from._value; this._listOfValues = from._listOfValues; }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (VariableSymbolSizeGroupStyle)fromb; this._isInitialized = from._isInitialized; _symbolSizeForIndex = from._symbolSizeForIndex; }
public void TransferFrom(IPlotGroupStyle fromb) { DashPatternGroupStyle from = (DashPatternGroupStyle)fromb; this._value = from._value; this._listOfValues = from._listOfValues; }
public void TransferFrom(IPlotGroupStyle fromb) { IgnoreMissingDataPointsGroupStyle from = (IgnoreMissingDataPointsGroupStyle)fromb; this._isInitialized = from._isInitialized; _ignoreMissingDataPoints = from._ignoreMissingDataPoints; }
/// <summary> /// Adds a group style to this collection. An exception will be thrown if an item of the same type already exists in the collection. /// </summary> /// <param name="groupStyle">Group style to add.</param> public void Add(IPlotGroupStyle groupStyle) { Add(groupStyle, null); }
public void TransferFrom(IPlotGroupStyle fromb) { var from = (VariableColorGroupStyle)fromb; this._isInitialized = from._isInitialized; _colorForIndex = from._colorForIndex; }
/// <summary> /// Adds a group style to this collection, as a child of another group style. If the parent group style doesn't allow childs, then the group style is added normally. /// </summary> /// <param name="groupStyle">Group style to add to this collection.</param> /// <param name="parentGroupStyleType">Type of the parent group style.</param> public void Add(IPlotGroupStyle groupStyle, System.Type parentGroupStyleType) { if (parentGroupStyleType != null) { if (!_typeToInstance.ContainsKey(parentGroupStyleType)) throw new ArgumentException(string.Format("The parent group style (of type: {0}) can not be found in this collection", parentGroupStyleType)); var parentInstance = _typeToInstance[parentGroupStyleType]; if (!parentInstance.CanCarryOver) { Add(groupStyle); EhSelfChanged(EventArgs.Empty); return; } } if (groupStyle == null) throw new ArgumentNullException("Try to add a null value to this group style collection"); if (_typeToInstance.ContainsKey(groupStyle.GetType())) throw new ArgumentException(string.Format("The group style type <<{0}>> is already present in this group style collection", groupStyle.GetType())); groupStyle.ParentObject = this; _typeToInstance.Add(groupStyle.GetType(), groupStyle); GroupInfo groupInfo = new GroupInfo(); groupInfo.ParentGroupType = parentGroupStyleType; _typeToInfo.Add(groupStyle.GetType(), groupInfo); if (parentGroupStyleType != null) { System.Type oldChildType = _typeToInfo[parentGroupStyleType].ChildGroupType; _typeToInfo[parentGroupStyleType].ChildGroupType = groupStyle.GetType(); groupInfo.ChildGroupType = oldChildType; if (oldChildType != null) _typeToInfo[oldChildType].ParentGroupType = groupStyle.GetType(); } EhSelfChanged(EventArgs.Empty); }
/// <summary> /// Inserts a group style by adding it. The child group style type is appended as child to this group type. /// In case the child type has already a parent, then this parent will be the parent of the inserted group style. /// </summary> /// <param name="groupStyle">Group style to add.</param> /// <param name="childGroupStyleType">Type of group style, which should be the child of the added group style.</param> public void Insert(IPlotGroupStyle groupStyle, System.Type childGroupStyleType) { if (groupStyle == null) throw new ArgumentNullException("Try to add a null value to this group style collection"); if (_typeToInstance.ContainsKey(groupStyle.GetType())) throw new ArgumentException(string.Format("The group style type <<{0}>> is already present in this group style collection", groupStyle.GetType())); if (childGroupStyleType != null && !_typeToInstance.ContainsKey(childGroupStyleType)) throw new ArgumentException(string.Format("The child group style (of type: {0}) can not be found in this collection", childGroupStyleType)); groupStyle.ParentObject = this; _typeToInstance.Add(groupStyle.GetType(), groupStyle); GroupInfo groupInfo = new GroupInfo(); groupInfo.ChildGroupType = childGroupStyleType; _typeToInfo.Add(groupStyle.GetType(), groupInfo); if (childGroupStyleType != null) { System.Type oldParentType = _typeToInfo[childGroupStyleType].ParentGroupType; _typeToInfo[childGroupStyleType].ParentGroupType = groupStyle.GetType(); groupInfo.ParentGroupType = oldParentType; if (oldParentType != null) _typeToInfo[oldParentType].ChildGroupType = groupStyle.GetType(); } EhSelfChanged(EventArgs.Empty); }
public void TransferFrom(IPlotGroupStyle fromb) { SkipFrequencyGroupStyle from = (SkipFrequencyGroupStyle)fromb; this._isInitialized = from._isInitialized; _skipFrequency = from._skipFrequency; }
public void TransferFrom(IPlotGroupStyle fromb) { ColorGroupStyle from = (ColorGroupStyle)fromb; //System.Diagnostics.Debug.WriteLine(string.Format("ColorTransfer: myIni={0}, myCol={1}, fromI={2}, fromC={3}", _isInitialized, _color.Color.ToString(), from._isInitialized, from._color.Color.ToString())); this._isInitialized = from._isInitialized; this._listOfValues = from._listOfValues; this._colorIndex = from._colorIndex; this._cachedColor = from._cachedColor; }
public void TransferFrom(IPlotGroupStyle fromb) { ColorGroupStyle from = (ColorGroupStyle)fromb; System.Diagnostics.Debug.WriteLine(string.Format("ColorTransfer: myIni={0}, myCol={1}, fromI={2}, fromC={3}", _isInitialized, (_color==null?null:_color.Color.ToString()), from._isInitialized, (from._color==null?null:from._color.Color.ToString()))); this._isInitialized = from._isInitialized; this._color = from._color; }
public void TransferFrom(IPlotGroupStyle fromb) { LineConnection2DGroupStyle from = (LineConnection2DGroupStyle)fromb; this._isInitialized = from._isInitialized; _lineConnectionStyle = from._lineConnectionStyle; }