public ViewGraphNode() { subtreewidth = - 1; x = - 1; parentsChecked = false; y = - 1; shape = null; childs = new org.jamocha.rete.util.Arraylist(); parents = new org.jamocha.rete.util.Arraylist(); }
protected internal virtual void addPrimitive(Shape p) { container.addPrimitive(p); radar.addPrimitive(p); }
/// <summary> Adds a Shape into the container /// </summary> /// <param name="p">the primitive which should become added /// /// </param> public virtual void addPrimitive(Shape s) { shapes.add(s); if (s.width + s.x > graphwidth) graphwidth = s.width + s.x; if (s.height + s.y > graphheight) graphheight = s.height + s.y; Graphics2D gr = (Graphics2D) Graphics; if (gr == null) return ; drawPrimitive(s, gr); }
/// <param name="from">The From-Shape for the new ConnectorLine /// </param> /// <param name="to">The To-Shape for the new ConnectorLine /// /// </param> public ConnectorLine(Shape from, Shape to) { this.from = from; this.to = to; }
/// <summary> Adds a Shape into the container /// </summary> /// <param name="p">the primitive which should become added /// /// </param> public override void addPrimitive(Shape s) { base.addPrimitive(s); if (s.width + s.x > graphwidth) { graphwidth = s.width + s.x; repaint(); } if (s.height + s.y > graphheight) { graphheight = s.height + s.y; repaint(); } }