(graphStruct.getAttributes()).put(this, this.attributes); GraphConstants.setAutoSize(this.attributes, true); GraphConstants.setBounds(this.attributes, graphStruct.setRectCoords(this)); GraphConstants.setBorder(this.attributes , BorderFactory.createLineBorder(Color.green));  (graphStruct.getGraphModel()).insert(new Object[] {this}, null, null, null, null); graphStruct.getJGraph().getGraphLayoutCache().setVisible(this.getChildren().toArray(), false);
this.initDrawAttributes(graphStruct);
	public GEStreamNode construct(GraphStructure graphStruct, int level)	{		System.out.println("Constructing the SplitJoin " +this.getName());		this.draw();				graphStruct.addToLevelContainer(level, this);		level++;				/*		DefaultGraphModel model = new DefaultGraphModel();		this.localGraphStruct.setGraphModel(model);		JGraph jgraph = new JGraph(model);		jgraph.addMouseListener(new JGraphMouseAdapter(jgraph));							frame = new LiveJGraphInternalFrame(this.localGraphStruct.getJGraph());		this.localGraphStruct.internalFrame = frame;		*/				graphStruct.getJGraph().addMouseListener(new JGraphMouseAdapter(graphStruct.getJGraph()));		//graphStruct.getJGraph().getGraphLayoutCache().setVisible(this, true);				//this.localGraphStruct.setJGraph(graphStruct.getJGraph());		this.localGraphStruct = graphStruct;					this.splitter.construct(graphStruct, level); //this.splitter.construct(this.localGraphStruct); 				ArrayList nodeList = (ArrayList) this.getSuccesors();		Iterator listIter =  nodeList.listIterator();		ArrayList lastNodeList = new ArrayList();				while(listIter.hasNext())		{			GEStreamNode strNode = ((GEStreamNode) listIter.next());			lastNodeList.add(strNode.construct(graphStruct,level));// lastNodeList.add(strNode.construct(this.localGraphStruct)); 						System.out.println("Connecting " + splitter.getName()+  " to "+ strNode.getName());				graphStruct.connectDraw(splitter, strNode); //this.localGraphStruct.connectDraw(splitter, strNode); 		}				listIter =  lastNodeList.listIterator();				this.joiner.construct(graphStruct, level); //this.joiner.construct(this.localGraphStruct); 				while(listIter.hasNext())		{			GEStreamNode strNode = (GEStreamNode) listIter.next();			System.out.println("Connecting " + strNode.getName()+  " to "+ joiner.getName());			graphStruct.connectDraw(strNode, joiner); //this.localGraphStruct.connectDraw(strNode, joiner); 		}				//this.localGraphStruct.getGraphModel().insert(localGraphStruct.getCells().toArray(),localGraphStruct.getAttributes(), localGraphStruct.getConnectionSet(), null, null);		graphStruct.getGraphModel().insert(graphStruct.getCells().toArray(),graphStruct.getAttributes(), graphStruct.getConnectionSet(), null, null);				this.port = new DefaultPort();		this.add(this.port);				/*		frame.setGraphCell(this);		frame.setGraphStruct(graphStruct);		frame.setGraphModel(graphStruct.getGraphModel());		frame.create(this.getName());		frame.setSize(400, 400);		*/				(graphStruct.getAttributes()).put(this, this.attributes);		GraphConstants.setAutoSize(this.attributes, true);		GraphConstants.setBounds(this.attributes, graphStruct.setRectCoords(this));		GraphConstants.setBorder(this.attributes , BorderFactory.createLineBorder(Color.green));				(graphStruct.getGraphModel()).insert(new Object[] {this}, null, null, null, null);		graphStruct.getJGraph().getGraphLayoutCache().setVisible(this.getChildren().toArray(), false);										//graphStruct.internalFrame.getContentPane().add(frame);		/*		try {				frame.setSelected(true);		} catch(Exception pve) {}		JGraphLayoutManager manager = new JGraphLayoutManager(this.localGraphStruct.getJGraph());		manager.arrange();		*/				return this;	}