public void VisitFigure(Figure f) { if (increaseSize) { f.SetHeight(f.GetHeight() + 5); f.SetWidth(f.GetWidth() + 5); } else { f.SetHeight(f.GetHeight() - 5); f.SetWidth(f.GetWidth() - 5); } }
public void Execute(Figure f, bool ean) { // checks if figure is selected if (ean) { Singleton.GetCanvas().DrawRectangle(Singleton.GetSelectedPen(), f.GetX(), f.GetY(), f.GetWidth(), f.GetHeight()); } else { Singleton.GetCanvas().DrawRectangle(Singleton.GetPen(), f.GetX(), f.GetY(), f.GetWidth(), f.GetHeight()); } }
public void VisitFigure(Figure f) { saveData += f.GetFigureType() + " " + f.GetX() + " " + f.GetY() + " " + f.GetWidth() + " " + f.GetHeight() + "\n"; }