コード例 #1
0
 /// <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();
 }
コード例 #2
0
 protected internal virtual void drawPrimitive(Primitive p, Graphics2D g)
 {
     p.draw(g, offsetX, offsetY);
 }
コード例 #3
0
 protected internal override void drawPrimitive(Primitive p, Graphics2D g)
 {
     double factor = Factor;
     p.draw(g, factor, factor);
 }