Exemplo n.º 1
0
 /// <param name="engine">the rete-engine which should become visualised
 ///
 /// </param>
 public Visualiser(Rete engine)
 {
     InitBlock();
     this.engine = engine;
     container   = new JZoomableShapeContainer();
     container.addMouseListener(this);
     radar = new JMiniRadarShapeContainer();
     radar.MasterShapeContainer    = container;
     radar.NormalizedFontHeight    = nodeVertical;
     container.RadarShapeContainer = radar;
     calculateMainContainerFont();
     even = new SimpleAttributeSet();
     odd  = new SimpleAttributeSet();
     StyleConstants.setForeground(even, System.Drawing.Color.Blue);
     System.Drawing.Color temp_Color;
     temp_Color = System.Drawing.Color.Green;
     StyleConstants.setForeground(odd, System.Drawing.Color.FromArgb(System.Convert.ToInt32(temp_Color.R * 0.7), System.Convert.ToInt32(temp_Color.G * 0.7), System.Convert.ToInt32(temp_Color.B * 0.7)));
     actAttributes = even;
     reloadView();
 }
Exemplo n.º 2
0
 /// <param name="engine">the rete-engine which should become visualised
 /// 
 /// </param>
 public Visualiser(Rete engine)
 {
     InitBlock();
     this.engine = engine;
     container = new JZoomableShapeContainer();
     container.addMouseListener(this);
     radar = new JMiniRadarShapeContainer();
     radar.MasterShapeContainer = container;
     radar.NormalizedFontHeight = nodeVertical;
     container.RadarShapeContainer = radar;
     calculateMainContainerFont();
     even = new SimpleAttributeSet();
     odd = new SimpleAttributeSet();
     StyleConstants.setForeground(even, System.Drawing.Color.Blue);
     System.Drawing.Color temp_Color;
     temp_Color = System.Drawing.Color.Green;
     StyleConstants.setForeground(odd, System.Drawing.Color.FromArgb(System.Convert.ToInt32(temp_Color.R * 0.7), System.Convert.ToInt32(temp_Color.G * 0.7), System.Convert.ToInt32(temp_Color.B * 0.7)));
     actAttributes = even;
     reloadView();
 }