Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 protected internal virtual void addPrimitive(Shape p)
 {
     container.addPrimitive(p);
     radar.addPrimitive(p);
 }
Esempio n. 3
0
 /// <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);
 }
Esempio n. 4
0
 /// <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;
 }
Esempio n. 5
0
 /// <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();
     }
 }