The drawer is responsible for drawing on the graphics object.
More...
The drawer is responsible for drawing on the graphics object.
◆ Drawer()
| Advanced_Software_Engineering.Drawer.Drawer |
( |
Graphics |
graphics | ) |
|
Creates a new drawer object.
- Parameters
-
◆ ClearCanvas()
| void Advanced_Software_Engineering.Drawer.ClearCanvas |
( |
| ) |
|
◆ DisableFill()
| void Advanced_Software_Engineering.Drawer.DisableFill |
( |
| ) |
|
Disables the filling of objects.
◆ DrawCircle()
| void Advanced_Software_Engineering.Drawer.DrawCircle |
( |
double |
scale | ) |
|
Draws a circle of a scale ath the pen's position
- Parameters
-
◆ DrawDot()
| void Advanced_Software_Engineering.Drawer.DrawDot |
( |
| ) |
|
Draws a single pixel with the pen's color at the pen's position.
◆ DrawLine()
| void Advanced_Software_Engineering.Drawer.DrawLine |
( |
Point |
point | ) |
|
Draws a line from the current pen position to the one specified in the parameter. This also sets the pens new position.
- Parameters
-
◆ DrawLines() [1/2]
| void Advanced_Software_Engineering.Drawer.DrawLines |
( |
GraphicsPath |
path | ) |
|
Draws multiple lines to multiple points. This doesn't change the pens position.
- Parameters
-
| path | GraphicsPath to draw to |
◆ DrawLines() [2/2]
| void Advanced_Software_Engineering.Drawer.DrawLines |
( |
Point[] |
points | ) |
|
Draws multiple lines to multiple points. This doesn't change the pens position.
- Parameters
-
◆ EnableFill()
| void Advanced_Software_Engineering.Drawer.EnableFill |
( |
| ) |
|
Allows the filling of objects.
◆ GetFill()
| bool Advanced_Software_Engineering.Drawer.GetFill |
( |
| ) |
|
Get current fill status
- Returns
- current fill satus
◆ GetPenPosition()
| Point Advanced_Software_Engineering.Drawer.GetPenPosition |
( |
| ) |
|
Returns the current pen position
- Returns
- The curren pen position
◆ GetValueStorage()
| ValueStorage Advanced_Software_Engineering.Drawer.GetValueStorage |
( |
| ) |
|
Gets the valueStorage object
- Returns
◆ MovePen()
| void Advanced_Software_Engineering.Drawer.MovePen |
( |
Point |
point | ) |
|
Move the pen to the point.
- Parameters
-
| point | Position to move the pen to |
◆ ResetDrawer()
| void Advanced_Software_Engineering.Drawer.ResetDrawer |
( |
| ) |
|
◆ SetFill()
| void Advanced_Software_Engineering.Drawer.SetFill |
( |
bool |
fill | ) |
|
Set the filling of objects
- Parameters
-
◆ SetFillColor()
| void Advanced_Software_Engineering.Drawer.SetFillColor |
( |
Color |
color | ) |
|
Set fill color
- Parameters
-
◆ SetGraphics()
| void Advanced_Software_Engineering.Drawer.SetGraphics |
( |
Graphics |
graphics | ) |
|
Set thhe graphics context.
- Parameters
-
◆ SetPenColor()
| void Advanced_Software_Engineering.Drawer.SetPenColor |
( |
Color |
color | ) |
|
Set the pen color
- Parameters
-
◆ SetPenWidth()
| void Advanced_Software_Engineering.Drawer.SetPenWidth |
( |
float |
width | ) |
|
Set the width of the pen
- Parameters
-
◆ brush
| SolidBrush Advanced_Software_Engineering.Drawer.brush |
|
protected |
◆ defaultColor
| Color Advanced_Software_Engineering.Drawer.defaultColor = Color.Black |
|
staticprotected |
The starting color of the pen / brush
◆ defaultWidth
| float Advanced_Software_Engineering.Drawer.defaultWidth = 1f |
|
staticprotected |
The deafult width of the pen
◆ fill
| bool Advanced_Software_Engineering.Drawer.fill = false |
|
protected |
Weather enclosed spaces will have fill.
◆ graphics
| Graphics Advanced_Software_Engineering.Drawer.graphics |
|
protected |
◆ Methods
| Dictionary<string, MethodChunk> Advanced_Software_Engineering.Drawer.Methods = new Dictionary<string, MethodChunk>() |
A list of methods. See MethodChunk
◆ pen
| Pen Advanced_Software_Engineering.Drawer.pen |
|
protected |
◆ penPosition
| Point Advanced_Software_Engineering.Drawer.penPosition |
|
protected |
The current position of the pen.
◆ verbChunkGeneratingMethod
| bool Advanced_Software_Engineering.Drawer.verbChunkGeneratingMethod = false |
A veriable that represents wether the last verbchunk is a method. See MethodChunk
◆ verbChunks
List of verbChunks used to create for loops, if statements, while loops and methods. See ForChunk, IfChunk, MethodChunk, WhileChunk and
- See also
- IVerbChunk
.
The documentation for this class was generated from the following file:
- Advanced Software Engineering/Drawer.cs