C# Class TimelineControl.Model.TimelineGenerator

Afficher le fichier Open project: kienaiProject/ArtOfWords Class Usage Examples

Méthodes publiques

Méthode Description
AddEventBlock ( System.Windows.Controls.Canvas canvas, Rect rect, EventBorderViewModel evt, bool isUnbound ) : System.Windows.Controls.Border
GenerateBorders ( System.Windows.Controls.Canvas canvas ) : void
GenerateEventBorders ( System.Windows.Controls.Canvas canvas, List placableList, double minLeft, double width, bool isUnbounded ) : void
GenerateEvents ( System.Windows.Controls.Canvas canvas, EventModelManager eventManager ) : void
GenerateGeneralEventBorder ( System.Windows.Controls.Canvas canvas, Rect rect, EventBorderViewModel evt ) : System.Windows.Controls.Border
GenerateScale ( System.Windows.Controls.Canvas canvas ) : void
GenerateScaleControl ( TimeRange prevRange, TimeRange currentRange ) : UIElement
GenerateShadowEventBorder ( System.Windows.Controls.Canvas canvas, Rect rect, EventBorderViewModel evt ) : System.Windows.Controls.Border
GetAxis ( int id ) : TimelineAxis
GetHeight ( System.DateTime startTime, System.DateTime endTime ) : double
GetLargestText ( TimeRange range ) : string
GetLargestTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
GetLeft ( int id ) : double
GetMiddleText ( TimeRange range ) : string
GetMiddleTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
GetOverView ( EventBorderViewModel evt ) : String
GetSmallText ( TimeRange range ) : string
GetSmallTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
GetTop ( System.DateTime time ) : double
GetVacanteTextBlock ( ) : System.Windows.Controls.TextBlock
TimelineGenerator ( ICollection axis, TimeRangeCollection allies, double scaleWidth, double minPos, double maxPos ) : System

Private Methods

Méthode Description
GenerateBorder ( System.Windows.Controls.Canvas canvas, TimeBorderViewModel model, double x, double y, double width, bool isUnbound ) : System.Windows.Controls.Border
MoveToNextObject ( double &x, double &y, double width ) : void
MoveToTimePosition ( double &x, double &y, TimeRange range ) : void
VacantBorder ( double width ) : System.Windows.Controls.Border

Method Details

AddEventBlock() public méthode

public AddEventBlock ( System.Windows.Controls.Canvas canvas, Rect rect, EventBorderViewModel evt, bool isUnbound ) : System.Windows.Controls.Border
canvas System.Windows.Controls.Canvas
rect System.Windows.Rect
evt EventBorderViewModel
isUnbound bool
Résultat System.Windows.Controls.Border

GenerateBorders() public méthode

public GenerateBorders ( System.Windows.Controls.Canvas canvas ) : void
canvas System.Windows.Controls.Canvas
Résultat void

GenerateEventBorders() public méthode

public GenerateEventBorders ( System.Windows.Controls.Canvas canvas, List placableList, double minLeft, double width, bool isUnbounded ) : void
canvas System.Windows.Controls.Canvas
placableList List
minLeft double
width double
isUnbounded bool
Résultat void

GenerateEvents() public méthode

public GenerateEvents ( System.Windows.Controls.Canvas canvas, EventModelManager eventManager ) : void
canvas System.Windows.Controls.Canvas
eventManager EventModelManager
Résultat void

GenerateGeneralEventBorder() public méthode

public GenerateGeneralEventBorder ( System.Windows.Controls.Canvas canvas, Rect rect, EventBorderViewModel evt ) : System.Windows.Controls.Border
canvas System.Windows.Controls.Canvas
rect System.Windows.Rect
evt EventBorderViewModel
Résultat System.Windows.Controls.Border

GenerateScale() public méthode

public GenerateScale ( System.Windows.Controls.Canvas canvas ) : void
canvas System.Windows.Controls.Canvas
Résultat void

GenerateScaleControl() public méthode

public GenerateScaleControl ( TimeRange prevRange, TimeRange currentRange ) : UIElement
prevRange TimeRange
currentRange TimeRange
Résultat UIElement

GenerateShadowEventBorder() public méthode

public GenerateShadowEventBorder ( System.Windows.Controls.Canvas canvas, Rect rect, EventBorderViewModel evt ) : System.Windows.Controls.Border
canvas System.Windows.Controls.Canvas
rect System.Windows.Rect
evt EventBorderViewModel
Résultat System.Windows.Controls.Border

GetAxis() public méthode

public GetAxis ( int id ) : TimelineAxis
id int
Résultat TimelineAxis

GetHeight() public méthode

public GetHeight ( System.DateTime startTime, System.DateTime endTime ) : double
startTime System.DateTime
endTime System.DateTime
Résultat double

GetLargestText() public méthode

public GetLargestText ( TimeRange range ) : string
range TimeRange
Résultat string

GetLargestTextBlock() public méthode

public GetLargestTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
prevRange TimeRange
currentRange TimeRange
Résultat System.Windows.Controls.TextBlock

GetLeft() public méthode

public GetLeft ( int id ) : double
id int
Résultat double

GetMiddleText() public méthode

public GetMiddleText ( TimeRange range ) : string
range TimeRange
Résultat string

GetMiddleTextBlock() public méthode

public GetMiddleTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
prevRange TimeRange
currentRange TimeRange
Résultat System.Windows.Controls.TextBlock

GetOverView() public méthode

public GetOverView ( EventBorderViewModel evt ) : String
evt EventBorderViewModel
Résultat String

GetSmallText() public méthode

public GetSmallText ( TimeRange range ) : string
range TimeRange
Résultat string

GetSmallTextBlock() public méthode

public GetSmallTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
prevRange TimeRange
currentRange TimeRange
Résultat System.Windows.Controls.TextBlock

GetTop() public méthode

public GetTop ( System.DateTime time ) : double
time System.DateTime
Résultat double

GetVacanteTextBlock() public méthode

public GetVacanteTextBlock ( ) : System.Windows.Controls.TextBlock
Résultat System.Windows.Controls.TextBlock

TimelineGenerator() public méthode

public TimelineGenerator ( ICollection axis, TimeRangeCollection allies, double scaleWidth, double minPos, double maxPos ) : System
axis ICollection
allies TimeRangeCollection
scaleWidth double
minPos double
maxPos double
Résultat System