C# Class WPNest.ThermostatTickCreator

Afficher le fichier Open project: garyjohnson/wpnest

Méthodes publiques

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

Private Methods

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

Method Details

ClearTicks() public méthode

public ClearTicks ( ) : void
Résultat void

GetPathFigure() public méthode

public GetPathFigure ( Point start, Point end ) : System.Windows.Media.PathFigure
start Point
end Point
Résultat System.Windows.Media.PathFigure

RedrawTicks() public méthode

public RedrawTicks ( Size thermostatSize, double currentTemperature, double targetTemperature ) : void
thermostatSize System.Windows.Size
currentTemperature double
targetTemperature double
Résultat void

RedrawTicksForOff() public méthode

public RedrawTicksForOff ( Size thermostatSize, double currentTemperature ) : void
thermostatSize System.Windows.Size
currentTemperature double
Résultat void

RedrawTicksForTemperatureRange() public méthode

public RedrawTicksForTemperatureRange ( Size thermostatSize, double currentTemperature, double targetTemperatureLow, double targetTemperatureHigh ) : void
thermostatSize System.Windows.Size
currentTemperature double
targetTemperatureLow double
targetTemperatureHigh double
Résultat void

UpdateCurrentTemperatureLabelPosition() public méthode

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