C# 클래스 WPNest.ThermostatTickCreator

파일 보기 프로젝트 열기: garyjohnson/wpnest

공개 메소드들

메소드 설명
ClearTicks ( ) : void
GetPathFigure ( Point start, Point end ) : System.Windows.Media.PathFigure
RedrawTicks ( Size thermostatSize, double currentTemperature, double targetTemperature ) : void
RedrawTicksForOff ( Size thermostatSize, double currentTemperature ) : void
RedrawTicksForTemperatureRange ( Size thermostatSize, double currentTemperature, double targetTemperatureLow, double targetTemperatureHigh ) : void
UpdateCurrentTemperatureLabelPosition ( System.Windows.Controls.TextBlock currentTemperatureLabel, Size thermostatSize, double currentTemperature, double targetTemperature ) : void

비공개 메소드들

메소드 설명
AngleFromTemperature ( double temperature ) : double
DrawCurrentTemperatureTick ( Size thermostatSize, double currentTemperature ) : void
DrawMinorTicksForTemperatureRange ( Size thermostatSize ) : void
DrawMinorTicksForTemperatureTarget ( Size thermostatSize, double currentTemperature, double targetTemperature ) : void
DrawTargetTemperatureTick ( Size thermostatSize, double targetTemperature ) : void
GetRotateTransform ( Size thermostatSize ) : RotateTransform
GetRotatedPathFigure ( Size thermostatSize, Point start, Point end, double angle ) : System.Windows.Media.PathFigure

메소드 상세

ClearTicks() 공개 메소드

public ClearTicks ( ) : void
리턴 void

GetPathFigure() 공개 메소드

public GetPathFigure ( Point start, Point end ) : System.Windows.Media.PathFigure
start Point
end Point
리턴 System.Windows.Media.PathFigure

RedrawTicks() 공개 메소드

public RedrawTicks ( Size thermostatSize, double currentTemperature, double targetTemperature ) : void
thermostatSize System.Windows.Size
currentTemperature double
targetTemperature double
리턴 void

RedrawTicksForOff() 공개 메소드

public RedrawTicksForOff ( Size thermostatSize, double currentTemperature ) : void
thermostatSize System.Windows.Size
currentTemperature double
리턴 void

RedrawTicksForTemperatureRange() 공개 메소드

public RedrawTicksForTemperatureRange ( Size thermostatSize, double currentTemperature, double targetTemperatureLow, double targetTemperatureHigh ) : void
thermostatSize System.Windows.Size
currentTemperature double
targetTemperatureLow double
targetTemperatureHigh double
리턴 void

UpdateCurrentTemperatureLabelPosition() 공개 메소드

public UpdateCurrentTemperatureLabelPosition ( System.Windows.Controls.TextBlock currentTemperatureLabel, Size thermostatSize, double currentTemperature, double targetTemperature ) : void
currentTemperatureLabel System.Windows.Controls.TextBlock
thermostatSize System.Windows.Size
currentTemperature double
targetTemperature double
리턴 void