C# Class Tp.Integration.Ide.VisualStudio.UI.TimeLogChartControl.Table

Position rows and cells on the stage accordint to start and end time.
显示文件 Open project: TargetProcess/Tp.Integration.Ide.VisualStudio

Public Methods

Method Description
AddRow ( Row row ) : void
GetCell ( Point p ) : Cell

Finds cell under cursor position.

GetColOffset ( int n ) : int
GetRowOffset ( int n ) : int
Layout ( Point offset ) : void

Position rows and cells on the stage according to times.

Table ( IEnumerable timeRecords ) : System

Convert time records to rows and cells.

Private Methods

Method Description
GetTimeOffset ( System.DateTime dateTime ) : int

Method Details

AddRow() public method

public AddRow ( Row row ) : void
row Row
return void

GetCell() public method

Finds cell under cursor position.
public GetCell ( Point p ) : Cell
p Point Cursor position under which to find cell.
return Cell

GetColOffset() public method

public GetColOffset ( int n ) : int
n int
return int

GetRowOffset() public method

public GetRowOffset ( int n ) : int
n int
return int

Layout() public method

Position rows and cells on the stage according to times.
public Layout ( Point offset ) : void
offset Point Offset to top left corner.
return void

Table() public method

Convert time records to rows and cells.
public Table ( IEnumerable timeRecords ) : System
timeRecords IEnumerable Time records to parse.
return System