package OSI.OPE.OVU.MVU.OVU.PQE.nodeEdit; import java.awt.event.MouseEvent; import OSI.OPE.MVU.OVU.OVU.PQE.nodeEdit.C.ChooseCheck;; //作者,著作权人: 罗瑶光,浏阳 public class ChooseQ_VPS implements ChooseCheck { public Object[] chooseCheckNode(LinkNode first, MouseEvent arg0) { LinkNode node= first; int x, y; while(null!= node){ x= arg0.getX(); y= arg0.getY(); if((x> node.x)&& (x< node.x+ 50) && (y> node.y)&& (y< node.y+ 50)){ if(1== arg0.getButton()){ node.leftChoose= true; } if(3== arg0.getButton()){ node.rightChoose= true; } Object[] object= new Object[3]; object[0]= node.name; object[1]= node.ID; object[2]= node.primaryKey; return object; } if(null== node.next) { break; } node= node.next; } Object[] object= new Object[3]; object[0]= ""; object[1]= 0; object[2]= ""; return object; } } ///////////////////////////////////////////////////////////////////////////////// package OSI.OPE.OEQ.MCQ.OVU.PQE.osgi; import javax.swing.ImageIcon; //作者,著作权人: 罗瑶光,浏阳 public class NodeOSGI{ public NodeOSGI next; public NodeOSGI pre; public OSU_AVQ_ASQ_ASQ_OCQ_OSI_PCI_PCU_MCI_MCU_MSI currentFace; public ImageIcon thisIcon; public String SQ_OSU_MSQ_OSU_AVQ_ASQ_SQ_VPC_PCS; @Override public Object clone() { NodeOSGI obj= null; try{ obj= (NodeOSGI)super.clone(); }catch(CloneNotSupportedException e) { e.printStackTrace(); } return obj; } public NodeOSGI(){ next= null; pre= null; currentFace= null; thisIcon= null; SQ_OSU_MSQ_OSU_AVQ_ASQ_SQ_VPC_PCS= null; } public void I_Name(OSU_AVQ_ASQ_ASQ_OCQ_OSI_PCI_PCU_MCI_MCU_MSI thisface){ next= null; pre= null; currentFace= thisface; thisIcon= currentFace.thisIcon; SQ_OSU_MSQ_OSU_AVQ_ASQ_SQ_VPC_PCS = new String(currentFace.SQ_OSU_MSQ_OSU_AVQ_ASQ_SQ_VPC_PCS); } }