CircleReport generateStaticReport(double time, XYDoubleLocation eventCenter) { GraphicsPath gradientPath = new GraphicsPath(); gradientPath.AddEllipse((float)eventCenter.X, (float)eventCenter.Y, (float)(eventSize), (float)(eventSize)); CircleReport circReport = new CircleReport(time, eventCenter, eventSize * 2, gradientPath, true, -1); circReport.Color = ColorEnum.FlashOverride; circReport.FinalColor = ColorEnum.Transparent; circReport.Layer = DrawLayer.Background; return circReport; }
public IReport GenerateStaticReport() { CircleReport circReport = new CircleReport(EventMgr.CurrentClock, location, nodeSize, gradientPath, true, id); circReport.MaximumMessageSize = PhysProc.MaximumRange * 2; if (this.isSink) { circReport.Color = ColorEnum.Sink; circReport.FinalColor = ColorEnum.Sink; } else { circReport.Color = ColorEnum.Node; circReport.FinalColor = ColorEnum.Node; } if (busyCount == 1) { circReport.Color = ColorEnum.Busy; } if ((busyCount > 1) || collided) { circReport.Color = ColorEnum.Collision; } return circReport; }
public IGraphicalReport GenerateStaticReport() { CircleReport circReport = new CircleReport(_eventManager.CurrentClock, _location, _nodeSize, _gradientPath, true, _id.GetID()); circReport.MaximumMessageSize = _physicalProcessor.MaximumRange * 2; if (_isSink) { circReport.Color = ColorEnum.Sink; circReport.FinalColor = ColorEnum.Sink; } else { circReport.Color = ColorEnum.Node; circReport.FinalColor = ColorEnum.Node; } if (_busyCount == 1) { circReport.Color = ColorEnum.Busy; } if ((_busyCount > 1) || _collided) { circReport.Color = ColorEnum.Collision; } return circReport; }