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

Represents a matrix of periods possibly overlapping vertically.
Afficher le fichier Open project: accandme/pocketcampus

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetWidthMultiplier() public méthode

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
Résultat double

PeriodMatrix() public méthode

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