Метод | Описание | |
---|---|---|
Blink ( ) : void |
Causes the graphic to "blink" to show as selected
|
|
SetScale ( double scale ) : bool |
Sets the scale of the track block relative to the screen Scale is represented as a ratio of actual length units per pixel, e.g. 10 miles/pixel would be set as 0.1 |
|
StopBlinking ( ) : void |
Causes the graphic to stop blinking
|
|
TrackBlockGraphic ( TrackBlock block, double scale ) : System |
Primary constructor for the track block graphic class
|
Метод | Описание | |
---|---|---|
OnPaint ( PaintEventArgs e ) : void |
Paint override that draws the block control
|
Метод | Описание | |
---|---|---|
CalculateArrowPoints ( ) : void |
Calculates the points for drawing arrows
|
|
DrawArrows ( |
Draws the arrows indicating the allowed direction of travel of the block
|
|
GetDrawColor ( ) : Color |
Gets the color the block should draw in
|
|
OnClick ( object sender, |
Catch and rethrow of the click event. Necessary to allow picture boxes to throw the click event as well
|
protected OnPaint ( PaintEventArgs e ) : void | ||
e | PaintEventArgs | Paint event arguments (from .NET) |
Результат | void |
public SetScale ( double scale ) : bool | ||
scale | double | Scale to display |
Результат | bool |
public TrackBlockGraphic ( TrackBlock block, double scale ) : System | ||
block | TrackBlock | Track block object this graphic represents |
scale | double | Scaling constant for the screen |
Результат | System |