Class VerticalAxis
The vertical (i.e. Y axis) of a GraphView
Inherited Members
Namespace: Terminal.Gui.Graphs
Assembly: Terminal.Gui.dll
Syntax
public class VerticalAxis : Axis
Constructors
| Edit this page View SourceVerticalAxis()
Creates a new Vertical axis
Declaration
public VerticalAxis()
Methods
| Edit this page View SourceDrawAxisLabel(GraphView, int, string)
Draws the given
text on the axis at y screenPosition.
For the screen x position use GetAxisXPosition(GraphView)Declaration
public override void DrawAxisLabel(GraphView graph, int screenPosition, string text)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphView | graph | Graph being drawn onto |
| int | screenPosition | Number of rows from the top of the screen (i.e. down the axis) before rendering |
| string | text | Text to render to the left of the axis tick. Ensure to set MarginLeft or ScrollOffset sufficient that it is visible |
Overrides
| Edit this page View SourceDrawAxisLabels(GraphView)
Draws axis Increment markers and labels
Declaration
public override void DrawAxisLabels(GraphView graph)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphView | graph |
Overrides
| Edit this page View SourceDrawAxisLine(GraphView)
Draws the vertical axis line
Declaration
public override void DrawAxisLine(GraphView graph)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphView | graph |
Overrides
| Edit this page View SourceDrawAxisLine(GraphView, int, int)
Draws a vertical axis line at the given
x, y
screen coordinatesDeclaration
protected override void DrawAxisLine(GraphView graph, int x, int y)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphView | graph | |
| int | x | |
| int | y |
Overrides
| Edit this page View SourceGetAxisXPosition(GraphView)
Returns the X screen position of the origin (typically 0,0) of graph space.
Return value is bounded by the screen i.e. the axis is always rendered even
if the origin is offscreen.
Declaration
public int GetAxisXPosition(GraphView graph)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphView | graph |
Returns
| Type | Description |
|---|---|
| int |