C# Class SmartQuant.FinChart.Pad

Mostrar archivo Open project: fastquant/fastquant.dll Class Usage Examples

Private Properties

Property Type Description
GetPrimitiveDistance Distance
InitContextMenu System.Windows.Forms.ContextMenuStrip
InitContextMenu System.Windows.Forms.Menu
OnDeleteMenuItemClick void
OnPropertiesMenuItemClick void
PrepareForUpdate void
Reset void
ShowContextMenu void
Update void

Public Methods

Method Description
AddPrimitive ( IChartDrawable primitive ) : void
ClearPrimitives ( ) : void
ClientX ( System.DateTime dateTime ) : int
ClientY ( double worldY ) : int
DrawHorizontalGrid ( Pen pen, double y ) : void
DrawHorizontalTick ( Pen pen, double x, double y, int length ) : void
GetDateTime ( int x ) : System.DateTime
IsInRange ( double x, double y ) : bool
MouseDown ( MouseEventArgs evnt ) : void
MouseMove ( MouseEventArgs evnt ) : void
MouseUp ( MouseEventArgs Event ) : void
Pad ( Chart chart, int x1, int x2, int y1, int y2 ) : System
RemovePrimitive ( IChartDrawable primitive ) : void
SetCanvas ( int x1, int x2, int y1, int y2 ) : void
SetInterval ( System.DateTime minDate, System.DateTime maxDate ) : void
SetSelectedObject ( object obj ) : void
WorldY ( int y ) : double

Private Methods

Method Description
GetPrimitiveDistance ( IChartDrawable primitive, Point point ) : Distance
InitContextMenu ( IChartDrawable primitive ) : ContextMenuStrip
InitContextMenu ( IChartDrawable primitive ) : Menu
OnDeleteMenuItemClick ( object sender, EventArgs e ) : void
OnPropertiesMenuItemClick ( object sender, EventArgs e ) : void
PrepareForUpdate ( ) : void
Reset ( ) : void
ShowContextMenu ( IChartDrawable primitive, UserControl control, MouseEventArgs e ) : void
Update ( Graphics g ) : void

Method Details

AddPrimitive() public method

public AddPrimitive ( IChartDrawable primitive ) : void
primitive IChartDrawable
return void

ClearPrimitives() public method

public ClearPrimitives ( ) : void
return void

ClientX() public method

public ClientX ( System.DateTime dateTime ) : int
dateTime System.DateTime
return int

ClientY() public method

public ClientY ( double worldY ) : int
worldY double
return int

DrawHorizontalGrid() public method

public DrawHorizontalGrid ( Pen pen, double y ) : void
pen System.Drawing.Pen
y double
return void

DrawHorizontalTick() public method

public DrawHorizontalTick ( Pen pen, double x, double y, int length ) : void
pen System.Drawing.Pen
x double
y double
length int
return void

GetDateTime() public method

public GetDateTime ( int x ) : System.DateTime
x int
return System.DateTime

IsInRange() public method

public IsInRange ( double x, double y ) : bool
x double
y double
return bool

MouseDown() public method

public MouseDown ( MouseEventArgs evnt ) : void
evnt MouseEventArgs
return void

MouseMove() public method

public MouseMove ( MouseEventArgs evnt ) : void
evnt MouseEventArgs
return void

MouseUp() public method

public MouseUp ( MouseEventArgs Event ) : void
Event MouseEventArgs
return void

Pad() public method

public Pad ( Chart chart, int x1, int x2, int y1, int y2 ) : System
chart Chart
x1 int
x2 int
y1 int
y2 int
return System

RemovePrimitive() public method

public RemovePrimitive ( IChartDrawable primitive ) : void
primitive IChartDrawable
return void

SetCanvas() public method

public SetCanvas ( int x1, int x2, int y1, int y2 ) : void
x1 int
x2 int
y1 int
y2 int
return void

SetInterval() public method

public SetInterval ( System.DateTime minDate, System.DateTime maxDate ) : void
minDate System.DateTime
maxDate System.DateTime
return void

SetSelectedObject() public method

public SetSelectedObject ( object obj ) : void
obj object
return void

WorldY() public method

public WorldY ( int y ) : double
y int
return double