Sine Object
Namespace:
RightEdge.Common.ChartObjectsAssembly: Common (in Common.dll)
Version: 2008.1.0.0 (2008.1.0.0)
Syntax
| C# |
|---|
[SerializableAttribute] public class ChartSineObject : ChartObjectBase |
| Visual Basic (Declaration) |
|---|
<SerializableAttribute> _ Public Class ChartSineObject _ Inherits ChartObjectBase |
| Visual C++ |
|---|
[SerializableAttribute] public ref class ChartSineObject : public ChartObjectBase |
Remarks
A geometric waveform that oscillates
(moves up, down or side-to-side) periodically,
and is defined by the function y = sin x.
It is an s-shaped, smooth wave that oscillates above
and below zero.
The two points that are used for the sine wave object specify the top portion of the wave and the bottom portion of the wave.
Examples
Create a sine wave programmatically (C#)
CopyC#
// Setup our X coordinates. DateTime topPoint = DateTime.Now.AddDays(-7); DateTime bottomPoint = DateTime.Now; // Create the sine wave object. ChartSineObject wave = new ChartSineObject(new ChartPoint(topPoint, 25.00), new ChartPoint(bottomPoint, 20.00)); // Add this object to the chart. "symbol" would equal the current symbol object in the system. ChartObjects.Add(symbol, wave);
Inheritance Hierarchy
System..::.Object
RightEdge.Common.ChartObjects..::.ChartObjectBase
RightEdge.Common.ChartObjects..::.ChartSineObject
RightEdge.Common.ChartObjects..::.ChartObjectBase
RightEdge.Common.ChartObjects..::.ChartSineObject