C# Class PocketCampus.IsAcademia.Controls.DayDisplay.PeriodMatrix

Represents a matrix of periods possibly overlapping vertically.
Show file Open project: accandme/pocketcampus

Public Methods

Method Description
GetColumn ( Period period ) : int

Gets the column in which the specified period should be put to avoid collisions.

GetWidthMultiplier ( Period period ) : double

Gets the width multiplier for the specified period. Always less than or equal to 1.

PeriodMatrix ( StudyDay day ) : System

Creates a new PeriodMatrix for the specified day's periods.

Private Methods

Method Description
IterateOverIntervals ( Period period, int intervals, Action action ) : void

Iterates over the specified intervals for the specified period, executing the specified action that takes an index.

Method Details

GetColumn() public method

Gets the column in which the specified period should be put to avoid collisions.
public GetColumn ( Period period ) : int
period PocketCampus.IsAcademia.Models.Period
return int

GetWidthMultiplier() public method

Gets the width multiplier for the specified period. Always less than or equal to 1.
public GetWidthMultiplier ( Period period ) : double
period PocketCampus.IsAcademia.Models.Period
return double

PeriodMatrix() public method

Creates a new PeriodMatrix for the specified day's periods.
public PeriodMatrix ( StudyDay day ) : System
day PocketCampus.IsAcademia.Models.StudyDay
return System