/// <summary> Removes a Primitive from the container /// </summary> /// <param name="p">primitive to delete /// /// </param> public virtual void removePrimitive(Primitive p) { if (p is ConnectorLine) lines.remove(p); if (p is Shape) shapes.remove(p); repaint(); }
protected internal virtual void drawPrimitive(Primitive p, Graphics2D g) { p.draw(g, offsetX, offsetY); }
protected internal override void drawPrimitive(Primitive p, Graphics2D g) { double factor = Factor; p.draw(g, factor, factor); }