⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 f057a971a33d001d192abbead0da6110

📁 动态演绎2叉树的原理。演示二叉树的前序遍历过程。 演示二叉树的中序遍历过程。 演示二叉树的后序遍历过程。
💻
📖 第 1 页 / 共 5 页
字号:
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(339, 188 ,326, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_18.getText()=="")
				{
					pleaseGiveNodeText_18.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_18.getText(), "011", false,pleaseGiveNodeText_18);
			}
		});
		confirmButton_1_2_2_2_3_3.setBounds(305, 240, 43, 22);
		confirmButton_1_2_2_2_3_3.setVisible(false);
		confirmButton_1_2_2_2_3_3.setText("Confirm");

		pleaseGiveNodeText_22 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_22.setBounds(548, 216, 36, 22);
		pleaseGiveNodeText_22.setVisible(false);

		final Button confirmButton_1_2_2_2_3_4 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_4.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_4.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_19.setBackground(color);
				pleaseGiveNodeText_19.setEnabled(false);
				confirmButton_1_2_2_2_3_4.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(339, 188 ,374, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_19.getText()=="")
				{
					pleaseGiveNodeText_19.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_19.getText(), "011", true,pleaseGiveNodeText_19);
			}
		});
		confirmButton_1_2_2_2_3_4.setBounds(354, 240, 43, 22);
		confirmButton_1_2_2_2_3_4.setVisible(false);
		confirmButton_1_2_2_2_3_4.setText("Confirm");

		pleaseGiveNodeText_23 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_23.setBounds(596, 216, 36, 22);
		pleaseGiveNodeText_23.setVisible(false);

		final Button confirmButton_1_2_2_2_3_5 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_5.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_5.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_30.setBackground(color);
				pleaseGiveNodeText_30.setEnabled(false);
				confirmButton_1_2_2_2_3_5.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(431, 188 ,422, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_30.getText()=="")
				{
					pleaseGiveNodeText_30.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_30.getText(), "100", false,pleaseGiveNodeText_30);
			}
		});
		confirmButton_1_2_2_2_3_5.setBounds(401, 240, 43, 22);
		confirmButton_1_2_2_2_3_5.setVisible(false);
		confirmButton_1_2_2_2_3_5.setText("Confirm");

		pleaseGiveNodeText_24 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_24.setBounds(644, 216, 36, 22);
		pleaseGiveNodeText_24.setVisible(false);

		final Button confirmButton_1_2_2_2_3_6 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_6.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_6.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_20.setBackground(color);
				pleaseGiveNodeText_20.setEnabled(false);
				confirmButton_1_2_2_2_3_6.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(431, 188 ,470, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_20.getText()=="")
				{
					pleaseGiveNodeText_20.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_20.getText(), "100", true,pleaseGiveNodeText_20);
			}
		});
		confirmButton_1_2_2_2_3_6.setBounds(448, 240, 43, 22);
		confirmButton_1_2_2_2_3_6.setVisible(false);
		confirmButton_1_2_2_2_3_6.setText("Confirm");

		pleaseGiveNodeText_25 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_25.setBounds(692, 216, 36, 22);
		pleaseGiveNodeText_25.setVisible(false);

		final Button confirmButton_1_2_2_2_3_7 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_7.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_7.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_21.setBackground(color);
				pleaseGiveNodeText_21.setEnabled(false);
				confirmButton_1_2_2_2_3_7.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(513, 188 ,518, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_21.getText()=="")
				{
					pleaseGiveNodeText_21.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_21.getText(), "101", false,pleaseGiveNodeText_21);
			}
		});
		confirmButton_1_2_2_2_3_7.setBounds(499, 240, 43, 22);
		confirmButton_1_2_2_2_3_7.setVisible(false);
		confirmButton_1_2_2_2_3_7.setText("Confirm");

		pleaseGiveNodeText_26 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_26.setBounds(68, 216, 36, 22);
		pleaseGiveNodeText_26.setVisible(false);

		pleaseGiveNodeText_27 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_27.setBounds(740, 216, 36, 22);
		pleaseGiveNodeText_27.setVisible(false);

		

	

		pleaseGiveNodeText_30 = new Text(shell, SWT.CENTER | SWT.BORDER);
		pleaseGiveNodeText_30.setBounds(404, 216, 36, 22);
		pleaseGiveNodeText_30.setVisible(false);

		final Button confirmButton_1_2_2_2_3_7_1 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_7_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_7_1.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_22.setBackground(color);
				pleaseGiveNodeText_22.setEnabled(false);
				confirmButton_1_2_2_2_3_7_1.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(513, 188 ,566, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_22.getText()=="")
				{
					pleaseGiveNodeText_22.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_22.getText(), "101", true,pleaseGiveNodeText_22);
			}
		});
		confirmButton_1_2_2_2_3_7_1.setBounds(545, 241, 43, 22);
		confirmButton_1_2_2_2_3_7_1.setVisible(false);
		confirmButton_1_2_2_2_3_7_1.setText("Confirm");

		final Button confirmButton_1_2_2_2_3_7_2 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_7_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_7_2.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_23.setBackground(color);
				pleaseGiveNodeText_23.setEnabled(false);
				confirmButton_1_2_2_2_3_7_2.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(588, 188 ,614, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_23.getText()=="")
				{
					pleaseGiveNodeText_23.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_23.getText(), "110", false,pleaseGiveNodeText_23);
			}
		});
		confirmButton_1_2_2_2_3_7_2.setBounds(594, 241, 43, 22);
		confirmButton_1_2_2_2_3_7_2.setVisible(false);
		confirmButton_1_2_2_2_3_7_2.setText("Confirm");

		final Button confirmButton_1_2_2_2_3_7_3 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_7_3.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_7_3.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_24.setBackground(color);
				pleaseGiveNodeText_24.setEnabled(false);
				confirmButton_1_2_2_2_3_7_3.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(588, 188 ,662, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_24.getText()=="")
				{
					pleaseGiveNodeText_24.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_24.getText(), "110", true,pleaseGiveNodeText_24);
			}
		});
		confirmButton_1_2_2_2_3_7_3.setBounds(643, 241, 43, 22);
		confirmButton_1_2_2_2_3_7_3.setVisible(false);
		confirmButton_1_2_2_2_3_7_3.setText("Confirm");

		final Button confirmButton_1_2_2_2_3_7_4 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_7_4.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_7_4.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_25.setBackground(color);
				pleaseGiveNodeText_25.setEnabled(false);
				confirmButton_1_2_2_2_3_7_4.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(668, 188 ,710, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_25.getText()=="")
				{
					pleaseGiveNodeText_25.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_25.getText(), "111", false,pleaseGiveNodeText_25);
			}
		});
		confirmButton_1_2_2_2_3_7_4.setBounds(692, 241, 43, 22);
		confirmButton_1_2_2_2_3_7_4.setVisible(false);
		confirmButton_1_2_2_2_3_7_4.setText("Confirm");

		final Button confirmButton_1_2_2_2_3_7_5 = new Button(shell, SWT.NONE);
		confirmButton_1_2_2_2_3_7_5.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				confirmButton_1_2_2_2_3_7_5.setVisible(false);
				Color color =new Color(e.widget.getDisplay(),0,0,255);
				pleaseGiveNodeText_27.setBackground(color);
				pleaseGiveNodeText_27.setEnabled(false);
				confirmButton_1_2_2_2_3_7_5.addSelectionListener(new SelectionAdapter() 
				{
					public void widgetSelected(SelectionEvent e)
					{		shell.addPaintListener(new PaintListener() {
						public void paintControl(PaintEvent e)
						{
							GC gc = e.gc;
							gc.drawLine(668, 188 ,758, 216);
						}
					});
						
					}
				});
				shell.redraw();
				if (pleaseGiveNodeText_27.getText()=="")
				{
					pleaseGiveNodeText_27.setText(Integer.toString(TrackingNum));
					TrackingNum++;
				}
				BT.insert(pleaseGiveNodeText_27.getText(), "111", true,pleaseGiveNodeText_27);
			}
		});
		confirmButton_1_2_2_2_3_7_5.setBounds(741, 241, 43, 22);
		confirmButton_1_2_2_2_3_7_5.setVisible(false);
		confirmButton_1_2_2_2_3_7_5.setText("Confirm");
		
		extendTheLeftButton_3_2_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_3_2_2.setVisible(false);
				pleaseGiveNodeText_26.setVisible(true);
				confirmButton_1_2_2_2_1.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_2_2_2_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_2_2_2_1.setVisible(false);
				pleaseGiveNodeText_16.setVisible(true);
				confirmButton_1_2_2_2_2.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_3_2_2_1.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_3_2_2_1.setVisible(false);
				pleaseGiveNodeText_28.setVisible(true);
				confirmButton_1_2_2_2_3.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_3_2_2_1_4.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEvent e)
			{
				extendTheLeftButton_3_2_2_1_4.setVisible(false);
				pleaseGiveNodeText_22.setVisible(true);
				confirmButton_1_2_2_2_3_7_1.setVisible(true);
				
			}
		});
		
		extendTheLeftButton_3_2_2_1_2.addSelectionListener(new SelectionAdapter() {
			public void widgetSelected(SelectionEven

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -