C# Class TimelineControl.Model.TimelineGenerator

Mostra file Open project: kienaiProject/ArtOfWords Class Usage Examples

Public Methods

Method 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

Method 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 method

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
return System.Windows.Controls.Border

GenerateBorders() public method

public GenerateBorders ( System.Windows.Controls.Canvas canvas ) : void
canvas System.Windows.Controls.Canvas
return void

GenerateEventBorders() public method

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
return void

GenerateEvents() public method

public GenerateEvents ( System.Windows.Controls.Canvas canvas, EventModelManager eventManager ) : void
canvas System.Windows.Controls.Canvas
eventManager EventModelManager
return void

GenerateGeneralEventBorder() public method

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
return System.Windows.Controls.Border

GenerateScale() public method

public GenerateScale ( System.Windows.Controls.Canvas canvas ) : void
canvas System.Windows.Controls.Canvas
return void

GenerateScaleControl() public method

public GenerateScaleControl ( TimeRange prevRange, TimeRange currentRange ) : UIElement
prevRange TimeRange
currentRange TimeRange
return UIElement

GenerateShadowEventBorder() public method

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
return System.Windows.Controls.Border

GetAxis() public method

public GetAxis ( int id ) : TimelineAxis
id int
return TimelineAxis

GetHeight() public method

public GetHeight ( System.DateTime startTime, System.DateTime endTime ) : double
startTime System.DateTime
endTime System.DateTime
return double

GetLargestText() public method

public GetLargestText ( TimeRange range ) : string
range TimeRange
return string

GetLargestTextBlock() public method

public GetLargestTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
prevRange TimeRange
currentRange TimeRange
return System.Windows.Controls.TextBlock

GetLeft() public method

public GetLeft ( int id ) : double
id int
return double

GetMiddleText() public method

public GetMiddleText ( TimeRange range ) : string
range TimeRange
return string

GetMiddleTextBlock() public method

public GetMiddleTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
prevRange TimeRange
currentRange TimeRange
return System.Windows.Controls.TextBlock

GetOverView() public method

public GetOverView ( EventBorderViewModel evt ) : String
evt EventBorderViewModel
return String

GetSmallText() public method

public GetSmallText ( TimeRange range ) : string
range TimeRange
return string

GetSmallTextBlock() public method

public GetSmallTextBlock ( TimeRange prevRange, TimeRange currentRange ) : System.Windows.Controls.TextBlock
prevRange TimeRange
currentRange TimeRange
return System.Windows.Controls.TextBlock

GetTop() public method

public GetTop ( System.DateTime time ) : double
time System.DateTime
return double

GetVacanteTextBlock() public method

public GetVacanteTextBlock ( ) : System.Windows.Controls.TextBlock
return System.Windows.Controls.TextBlock

TimelineGenerator() public method

public TimelineGenerator ( ICollection axis, TimeRangeCollection allies, double scaleWidth, double minPos, double maxPos ) : System
axis ICollection
allies TimeRangeCollection
scaleWidth double
minPos double
maxPos double
return System