Private
Public Access
Documented FillColor
This commit is contained in:
1 parent
fed5315308
commit
2c186f1f1d
1 file changed
+15
+15
@@ -7,20 +7,35 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace Advanced_Software_Engineering.Verbs.DrawingVerbs {
|
namespace Advanced_Software_Engineering.Verbs.DrawingVerbs {
|
||||||
|
/// <summary>
|
||||||
|
/// The FillColor Verb class
|
||||||
|
/// </summary>
|
||||||
public class FillColor : Verb {
|
public class FillColor : Verb {
|
||||||
|
|
||||||
Drawer drawer;
|
Drawer drawer;
|
||||||
Color color;
|
Color color;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Create the FillColor instance
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="drawer">drawer</param>
|
||||||
|
/// <param name="color">The color of the fill</param>
|
||||||
public FillColor(Drawer drawer, Color color) {
|
public FillColor(Drawer drawer, Color color) {
|
||||||
this.drawer = drawer;
|
this.drawer = drawer;
|
||||||
this.color = color;
|
this.color = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Set the fill color
|
||||||
|
/// </summary>
|
||||||
public void ExecuteVerb() {
|
public void ExecuteVerb() {
|
||||||
drawer.SetFillColor(color);
|
drawer.SetFillColor(color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Get description of the color that the drawer will use
|
||||||
|
/// </summary>
|
||||||
|
/// <returns>Description of the fill color</returns>
|
||||||
public string GetDescription() {
|
public string GetDescription() {
|
||||||
return "Set fill color to " + color.ToString();
|
return "Set fill color to " + color.ToString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user