📄 graphicalobject.cs
字号:
namespace Opus6
{
using System;
[Copyright("Copyright (c) 2001 by Bruno R. Preiss, P.Eng."), Version("$Id: GraphicalObject.cs,v 1.4 2001/10/28 19:50:09 brpreiss Exp $")]
public abstract class GraphicalObject : GraphicsPrimitives
{
public GraphicalObject(Point p)
{
this.center = p;
}
public abstract void Draw();
public virtual void Erase()
{
this.SetPenColor(0);
this.Draw();
this.SetPenColor(1);
}
public virtual void MoveTo(Point p)
{
this.Erase();
this.center = p;
this.Draw();
}
public virtual void SetPenColor(int color)
{
throw new MethodNotImplementedException();
}
public const int BACKGROUND_COLOR = 0;
protected Point center;
public const int FOREGROUND_COLOR = 1;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -