| 1 | package hozo.maptool; | 
|---|
| 2 |  | 
|---|
| 3 |  | 
|---|
| 4 | import java.awt.Color; | 
|---|
| 5 | import java.awt.Font; | 
|---|
| 6 | import java.io.File; | 
|---|
| 7 | import java.util.ArrayList; | 
|---|
| 8 | import java.util.Enumeration; | 
|---|
| 9 | import java.util.List; | 
|---|
| 10 | import java.util.Vector; | 
|---|
| 11 |  | 
|---|
| 12 | import javax.swing.JOptionPane; | 
|---|
| 13 |  | 
|---|
| 14 | import hozo.sparql.gui.SparqlBuilderPanel; | 
|---|
| 15 |  | 
|---|
| 16 | import org.biohackathon.SPARQLBuilder.OWL.ClassLink; | 
|---|
| 17 | import org.biohackathon.SPARQLBuilder.OWL.Direction; | 
|---|
| 18 | import org.biohackathon.SPARQLBuilder.OWL.Path; | 
|---|
| 19 | import org.json.JSONException; | 
|---|
| 20 |  | 
|---|
| 21 | /***邵イ�ス008/10/18邵イ�スkozaki | 
|---|
| 22 | 邵イ�スAP騾墓サ難ソス邵コ�ョ邵コ貅假ス∫クコ�ォ�ス譴ァ�ウ證ョ�ス郢ァミ杆L邵コ�ョAPI邵コ荵晢ス会ソス蠕鯉ソス郢晢ソス�ス騾包スィ邵コ�ョ郢晢ソス�ス郢ァ�ソ郢ァ蜑�スス諛茨ソス邵コ蜷カ�狗クコ貅假ス∫クコ�ョ | 
|---|
| 23 | 邵イ�スホ鍋ケァ�ス郢晢ソス繝ゥ鬯俶ァュ�堤クコ阮呻ソス郢ァ�ッ郢晢スゥ郢ァ�ケ邵コ�ォ邵コ�セ邵コ�ィ郢ァ竏夲ス具ソス�ス | 
|---|
| 24 |  | 
|---|
| 25 | ***/ | 
|---|
| 26 | public class MapFactory implements Runnable{ | 
|---|
| 27 |  | 
|---|
| 28 | ExtendBP exbp; | 
|---|
| 29 | public ExtendFrame exbpframe; | 
|---|
| 30 | Vector focal_points;//隴幢ソス�ス邵コ�ォ鬩包スク隰壽ァュ�邵コ讚サode(邵コ�ェ邵コ�ゥ)郢ァ蜑�スソ譎�亜邵コ蜷カ�� | 
|---|
| 31 | boolean isSubLung; | 
|---|
| 32 | static boolean isGrayView=false; | 
|---|
| 33 | Vector<String> checked_nodes; | 
|---|
| 34 | boolean search_shortest=true;//郢ァ�オ郢晢スシ郢昶�繝ア郢ァ�ケ邵コ�ァ隴幢ソス豢堤ケ昜サ」縺帷ケァ蜻茨ス、諛�スエ�「邵コ蜷カ�� | 
|---|
| 35 | int serch_depth = 10;//郢ァ�オ郢晢スシ郢昶�繝ア郢ァ�ケ邵コ�ァ隴幢ソス豢堤ケ昜サ」縺帷ケァ蜻茨ス、諛�スエ�「邵コ蜷カ�玖アコ�ア邵コ蛹�スシ蝓滓咎¥�ュ郢昜サ」縺幄ョ諛�スエ�「郢ァ蛛オ�邵コ�ェ邵コ�ス竊堤クコ髦ェ�ス陟「�ス笘�抄�ソ邵コ�ス�シ�ス | 
|---|
| 36 | Vector<ExbpNodeTemp> temp_nodes; | 
|---|
| 37 |  | 
|---|
| 38 | SparqlBuilderPanel spBuilder; | 
|---|
| 39 |  | 
|---|
| 40 | public static void main (String[] args) { | 
|---|
| 41 | MapFactory map = new MapFactory(); | 
|---|
| 42 | //map.loadPathList(map.getDummyPathList()); | 
|---|
| 43 | } | 
|---|
| 44 |  | 
|---|
| 45 | public List<Path> getDummyPathList(){ | 
|---|
| 46 | ArrayList pathlist = new ArrayList(); | 
|---|
| 47 | //              ArrayList class_link_list = new ArrayList<ClassLink>() {{ | 
|---|
| 48 | //                      add(new ClassLink("propertyURI", "linkedClassURI2", Direction.forward)); | 
|---|
| 49 | //                      add(new ClassLink("propertyURI2", "linkedClassURI3", Direction.forward)); | 
|---|
| 50 | //                      add(new ClassLink("propertyURI3", "linkedClassURI4", Direction.forward)); | 
|---|
| 51 | //                  }}; | 
|---|
| 52 | //              Path path = new Path("StartClass1", class_link_list); | 
|---|
| 53 | //              pathlist.add(path); | 
|---|
| 54 | // | 
|---|
| 55 | return pathlist; | 
|---|
| 56 | } | 
|---|
| 57 |  | 
|---|
| 58 | public void setSPARQLbuilder(SparqlBuilderPanel builder){ | 
|---|
| 59 | this.spBuilder = builder; | 
|---|
| 60 | } | 
|---|
| 61 |  | 
|---|
| 62 | //      void setSPARQLquery(Path path){ | 
|---|
| 63 | //              this.spBuilder; | 
|---|
| 64 | //      } | 
|---|
| 65 |  | 
|---|
| 66 | public MapFactory() { | 
|---|
| 67 | exbpframe = new ExtendFrame(this); | 
|---|
| 68 | exbp = exbpframe.getExtendBP(); | 
|---|
| 69 | focal_points = new Vector<Object>(); | 
|---|
| 70 | temp_nodes = new Vector<ExbpNodeTemp>(); | 
|---|
| 71 |  | 
|---|
| 72 | //              focal_points.add("TEST"); | 
|---|
| 73 | //              focal_points.add("TEST2"); | 
|---|
| 74 |  | 
|---|
| 75 | //              isSubLung=hze.isSubLang; | 
|---|
| 76 | //              isGrayView=hze.isGrayView;//#kozaki 2009/07/28 | 
|---|
| 77 | //              exbp.setHZEditor(hze); | 
|---|
| 78 | //              exbpframe.select_dialog = new EtendBPSelectDialog(exbp,exbpframe); | 
|---|
| 79 | exbpframe.setVisible(true); | 
|---|
| 80 | exbpframe.RefreshExbp(); | 
|---|
| 81 |  | 
|---|
| 82 | //      if(focal_points.size()==1){ | 
|---|
| 83 | //              exbp.cmd_dialog.setCommandOptions(exbp.exbp_node_center); | 
|---|
| 84 | //      } | 
|---|
| 85 | // | 
|---|
| 86 | //      treeSelectDialog = new TreeSelectDialog(true); | 
|---|
| 87 | //          treeSelectDialog.setHZEditor(this.hzEditor); | 
|---|
| 88 | //          treeSelectDialog.setSubLang(this.isSubLung); | 
|---|
| 89 | //          treeSelectDialog.setSize(450, 600); | 
|---|
| 90 | // | 
|---|
| 91 | } | 
|---|
| 92 |  | 
|---|
| 93 | public void loadPathList(Path[] pathlist) throws JSONException{ | 
|---|
| 94 | if(pathlist.length==0){ | 
|---|
| 95 | JOptionPane.showMessageDialog(null, "NO PATH!!"); | 
|---|
| 96 | return; | 
|---|
| 97 | } | 
|---|
| 98 | Path path = pathlist[0]; | 
|---|
| 99 |  | 
|---|
| 100 | this.exbp.exbp_node_center = new ExbpNode(getTempLabel(path.getStartClass())); | 
|---|
| 101 |  | 
|---|
| 102 | String json_data=""; | 
|---|
| 103 |  | 
|---|
| 104 | for(int i = 0; i<pathlist.length; i++){ | 
|---|
| 105 | addPath(pathlist[i]); | 
|---|
| 106 | json_data+=pathlist[i].toJSONString2(); | 
|---|
| 107 | } | 
|---|
| 108 | this.exbpframe.RefreshExbp(); | 
|---|
| 109 | System.out.println(json_data); | 
|---|
| 110 | //              this.exbp.exbp_node_center = exbpnode; | 
|---|
| 111 | //              exbpnode= new ExbpNode("Center");; | 
|---|
| 112 | //              exbpnode.setChildrenColor(Color.red); | 
|---|
| 113 | //              exbpnode.key="prop1"; | 
|---|
| 114 | //              this.exbp_node_center.addChild(exbpnode); | 
|---|
| 115 | //              this.exbp_node_center.addChild(new ExbpNode("TEST2")); | 
|---|
| 116 | //              this.exbp_node_center.addChild(new ExbpNode("TEST3")); | 
|---|
| 117 | //              this.exbp_node_center.addChild(new ExbpNode("TEST4")); | 
|---|
| 118 |  | 
|---|
| 119 |  | 
|---|
| 120 | } | 
|---|
| 121 |  | 
|---|
| 122 |  | 
|---|
| 123 |  | 
|---|
| 124 | void addPath(Path path){ | 
|---|
| 125 | System.out.println("addPath"+path.getStartClass()+"--->"+path.getClassLinks().size()); | 
|---|
| 126 | String target_class = path.getStartClass(); | 
|---|
| 127 | //              ExbpNode node = this.exbp.findExbpNode(target_class); | 
|---|
| 128 | ExbpNode node = this.exbp.exbp_node_center; | 
|---|
| 129 |  | 
|---|
| 130 |  | 
|---|
| 131 | List<ClassLink> links = path.getClassLinks(); | 
|---|
| 132 | for(ClassLink link : links){ | 
|---|
| 133 | String next_class = link.getLinkedClassURI(); | 
|---|
| 134 | System.out.println("="+link.getNumOfLinks()+"=>"+next_class); | 
|---|
| 135 |  | 
|---|
| 136 | /* | 
|---|
| 137 | String next_class_lbl =""; | 
|---|
| 138 | int index = next_class.lastIndexOf("/"); | 
|---|
| 139 | if(index>0 && index<next_class.length()){ | 
|---|
| 140 | next_class_lbl = next_class.substring(index+1); | 
|---|
| 141 | } | 
|---|
| 142 | else{ | 
|---|
| 143 | next_class_lbl = next_class; | 
|---|
| 144 | } | 
|---|
| 145 |  | 
|---|
| 146 | int index2 = next_class_lbl.lastIndexOf("#"); | 
|---|
| 147 | if(index2>0 && index2<next_class_lbl.length()){ | 
|---|
| 148 | next_class_lbl = next_class_lbl.substring(index2+1); | 
|---|
| 149 | } | 
|---|
| 150 |  | 
|---|
| 151 | */ | 
|---|
| 152 | ExbpNode next_node = new ExbpNode(getTempLabel(next_class)); | 
|---|
| 153 | next_node.setOrgNode(path); | 
|---|
| 154 |  | 
|---|
| 155 | node.addChild(next_node); | 
|---|
| 156 | node = next_node; | 
|---|
| 157 | String prop = getTempLabel(link.getPropertyURI()); | 
|---|
| 158 |  | 
|---|
| 159 | if(link.getDirection().equals(Direction.reverse)){ | 
|---|
| 160 | prop += "[<=]"; | 
|---|
| 161 | } | 
|---|
| 162 | else if(link.getDirection().equals(Direction.both)){ | 
|---|
| 163 | prop += "[<=>]"; | 
|---|
| 164 | } | 
|---|
| 165 | next_node.key = prop; | 
|---|
| 166 | } | 
|---|
| 167 |  | 
|---|
| 168 |  | 
|---|
| 169 | } | 
|---|
| 170 |  | 
|---|
| 171 |  | 
|---|
| 172 | String getTempLabel(String next_class){ | 
|---|
| 173 | String next_class_lbl =""; | 
|---|
| 174 | int index = next_class.lastIndexOf("/"); | 
|---|
| 175 | if(index>0 && index<next_class.length()){ | 
|---|
| 176 | next_class_lbl = next_class.substring(index+1); | 
|---|
| 177 | } | 
|---|
| 178 | else{ | 
|---|
| 179 | next_class_lbl = next_class; | 
|---|
| 180 | } | 
|---|
| 181 |  | 
|---|
| 182 | int index2 = next_class_lbl.lastIndexOf("#"); | 
|---|
| 183 | if(index2>0 && index2<next_class_lbl.length()){ | 
|---|
| 184 | next_class_lbl = next_class_lbl.substring(index2+1); | 
|---|
| 185 | } | 
|---|
| 186 |  | 
|---|
| 187 | return next_class_lbl; | 
|---|
| 188 | } | 
|---|
| 189 |  | 
|---|
| 190 | //陷茨ソス竊堤クコ�ェ郢ァ逡ソditor驕イ蟲ィ縲樽apTool郢ァ蝣、�ョ�。騾�ソス�邵コ�ヲ邵コ�ス�儀ector郢ァ螳夲スソ譁絶�邵イ鬟殪zo闔会ス・陞滓じ縲堤クコ�ッ郢ァ�ェ郢晢スシ郢晁��ス郢晢スゥ郢ァ�、郢晏ウィ笘�ケァ荵晢ソス | 
|---|
| 191 | Vector getMapVec(){ | 
|---|
| 192 | return null; | 
|---|
| 193 | } | 
|---|
| 194 |  | 
|---|
| 195 | //陷茨ソス竊堤クコ�ェ郢ァ荵昴′郢晢スウ郢晏現ホ溽ケァ�ク郢晢スシ邵コ�ョ郢晁シ斐<郢ァ�、郢晢スォ郢ァ螳夲スソ譁絶�邵イ鬟殪zo闔会ス・陞滓じ縲堤クコ�ッ郢ァ�ェ郢晢スシ郢晁��ス郢晢スゥ郢ァ�、郢晏ウィ笘�ケァ荵晢ソス | 
|---|
| 196 | File getFile(){ | 
|---|
| 197 | return null; | 
|---|
| 198 | } | 
|---|
| 199 |  | 
|---|
| 200 | //邵コ蜷カ竏狗クコ�ヲ邵コ�ョ郢晢スュ郢晢スシ郢晢スォ邵コ�ョ闕ウ�ス�ヲ�ァ郢ァ螳夲スソ譁絶� | 
|---|
| 201 | Vector getRoleList(){ | 
|---|
| 202 | Vector roles = new Vector(); | 
|---|
| 203 | /*              Enumeration en = this.hzEditor.WCEditor.browsingPanel.node_lists.elements(); | 
|---|
| 204 | while(en.hasMoreElements()){ | 
|---|
| 205 | Node n =(Node)en.nextElement(); | 
|---|
| 206 | Enumeration slot_en = n.getSlots().elements(); | 
|---|
| 207 | while(slot_en.hasMoreElements()){ | 
|---|
| 208 | Slot slot =(Slot)slot_en.nextElement(); | 
|---|
| 209 | if(!roles.contains(slot.getRoleName())){ | 
|---|
| 210 | roles.addElement(slot.getRoleName()); | 
|---|
| 211 | } | 
|---|
| 212 | } | 
|---|
| 213 | } | 
|---|
| 214 | */ | 
|---|
| 215 | return roles; | 
|---|
| 216 | } | 
|---|
| 217 |  | 
|---|
| 218 | //陷茨ソス竊堤クコ�ェ郢ァ荵昴′郢晢スウ郢晏現ホ溽ケァ�ク郢晢スシ邵コ�ァ邵コ�ョ鬩包スク隰壽ゥク�シ蛹サ縺醍ケ晢スェ郢晢ソス縺托ソス迚呻ソス騾�ソス�スHozo闔会ス・陞滓じ縲堤クコ�ッ郢ァ�ェ郢晢スシ郢晁��ス郢晢スゥ郢ァ�、郢晏ウィ笘�ケァ荵晢ソス | 
|---|
| 219 | void selected(ExbpNode exbpnode){ | 
|---|
| 220 | //              this.hzEditor.WCEditor.browsingPanel.Jump(exbpnode.getHozoNode()); | 
|---|
| 221 | } | 
|---|
| 222 |  | 
|---|
| 223 | //陷茨ソス竊堤クコ�ェ郢ァ荵昴′郢晢スウ郢晏現ホ溽ケァ�ク郢晢スシ邵コ�ァ邵コ�ョ鬩包スク隰壽ゥク�シ蛹サ縺醍ケ晢スェ郢晢ソス縺托ソス迚呻ソス騾�ソス�スHozo闔会ス・陞滓じ縲堤クコ�ッ郢ァ�ェ郢晢スシ郢晁��ス郢晢スゥ郢ァ�、郢晏ウィ笘�ケァ荵晢ソス | 
|---|
| 224 | void selectedClear(){ | 
|---|
| 225 | //              this.hzEditor.WCEditor.definitionPanel.uncursel(); | 
|---|
| 226 | //              this.hzEditor.WCEditor.browsingPanel.pick(null, false); | 
|---|
| 227 | } | 
|---|
| 228 | //Open邵コ蜉ア笳�AP邵コ�ィ郢ァ�ェ郢晢スウ郢晏現ホ溽ケァ�ク郢晢スシ邵コ�ョ陷茨ソス繝ァ郢晢スシ郢ァ�ソ邵コ�ョ陝�スセ陟「諛岩名邵コ�ス | 
|---|
| 229 | void setOrgNodes(){ | 
|---|
| 230 | /* | 
|---|
| 231 | if (this.hzEditor==null) { | 
|---|
| 232 | System.out.println("ERROR!!:::HzEditor is NOT FOUND!"); | 
|---|
| 233 | return; | 
|---|
| 234 | } | 
|---|
| 235 |  | 
|---|
| 236 | Enumeration en =exbp.nodes.elements(); | 
|---|
| 237 | while(en.hasMoreElements()){ | 
|---|
| 238 | ExbpNode node =(ExbpNode)en.nextElement(); | 
|---|
| 239 | String lbl = node.getLabel(); | 
|---|
| 240 | Node org_node; | 
|---|
| 241 | if(lbl.endsWith("[RH]")){ | 
|---|
| 242 | lbl=lbl.substring(0,lbl.indexOf("[RH]")); | 
|---|
| 243 | //System.out.println(node.getLabel()+"====>"+lbl); | 
|---|
| 244 | if(this.isSubLung){ | 
|---|
| 245 | org_node = this.hzEditor.WCEditor.findNodeWithSubLang(lbl); | 
|---|
| 246 | } | 
|---|
| 247 | else{ | 
|---|
| 248 | org_node = this.hzEditor.findRH(lbl); | 
|---|
| 249 | } | 
|---|
| 250 | } | 
|---|
| 251 | else{ | 
|---|
| 252 | if(this.isSubLung){ | 
|---|
| 253 | org_node = this.hzEditor.WCEditor.findNodeWithSubLang(lbl); | 
|---|
| 254 | } | 
|---|
| 255 | else{ | 
|---|
| 256 | org_node = this.hzEditor.findNode(lbl); | 
|---|
| 257 | } | 
|---|
| 258 | } | 
|---|
| 259 | node.setOrgNode(org_node); | 
|---|
| 260 | if(org_node!=null){ | 
|---|
| 261 | //System.out.println("setOrgNodes:::"+lbl+"<=>"+org_node.getLabel()); | 
|---|
| 262 | }else{ | 
|---|
| 263 | //System.out.println("setOrgNodes:::"+lbl+"<=>NOT FOUND!"); | 
|---|
| 264 | } | 
|---|
| 265 | } | 
|---|
| 266 | */ | 
|---|
| 267 | } | 
|---|
| 268 |  | 
|---|
| 269 | //陷茨ソス竊堤クコ�ェ郢ァ霆恵ject邵コ荵晢ス宇ocalPoint邵コ�ィ邵コ�ェ郢ァ逡ソxbpNode郢ァ蜑�スス諛奇ス狗クイ鬟殪zo闔会ス・陞滓じ縲堤クコ�ッ郢ァ�ェ郢晢スシ郢晁��ス郢晢スゥ郢ァ�、郢晏ウィ笘�ケァ荵晢ソス | 
|---|
| 270 | ExbpNode[] setFocalPoints(){ | 
|---|
| 271 | //              if (this.hzEditor==null) return null; | 
|---|
| 272 |  | 
|---|
| 273 | ExbpNode[] exbpnodes = null; | 
|---|
| 274 |  | 
|---|
| 275 | exbp.nodes.removeAllElements(); | 
|---|
| 276 |  | 
|---|
| 277 | //              Vector<Node> chi_nodes; | 
|---|
| 278 | //              GraphicObject gobj=null; | 
|---|
| 279 | //              Object ob=null; | 
|---|
| 280 |  | 
|---|
| 281 | if (focal_points.size() == 1) {//�ス莉」笆ス邵コ�ョNode郢ァ蟶昶�隰壽ァュ�邵コ貊�怙邵コ�ョ陷�スヲ騾�ソス | 
|---|
| 282 | Object gobj = focal_points.firstElement(); | 
|---|
| 283 | //gobj =(GraphicObject) focal_points.firstElement(); | 
|---|
| 284 |  | 
|---|
| 285 | if(gobj instanceof String){ | 
|---|
| 286 | exbp.exbp_node_center =new ExbpNode((String)gobj); | 
|---|
| 287 | exbp.exbp_node_center.setOrgNode(gobj); | 
|---|
| 288 | exbp.nodes.add(exbp.exbp_node_center); | 
|---|
| 289 | exbpnodes = new ExbpNode[1]; | 
|---|
| 290 | exbpnodes[0]=exbp.exbp_node_center; | 
|---|
| 291 | } | 
|---|
| 292 | else if(gobj instanceof Object){ | 
|---|
| 293 | System.out.println("*** ERROR:Node郢ァ蟶昶�隰壽ァュ笘�ケァ蜿・�ソ�ス�ヲ竏壺イ邵コ繧�ス顔クコ�セ邵コ�ス:" ); | 
|---|
| 294 | } | 
|---|
| 295 | else{//鬩包スク隰壽ァュ竊醍クコ蜉ア�ス陜」�エ陷キ蛹サ�ス�ス蠕後♀郢晢スゥ郢晢スシ郢ァ雋橸ソス邵コ蜉ア窶サ驍ィ繧�スコ�ス | 
|---|
| 296 |  | 
|---|
| 297 | JOptionPane.showMessageDialog(exbpframe, | 
|---|
| 298 | "You Have to select [Node]!", | 
|---|
| 299 | "ERROR", | 
|---|
| 300 | JOptionPane.ERROR_MESSAGE); | 
|---|
| 301 | System.out.println("ERROR:Node郢ァ蟶昶�隰壽ァュ笘�ケァ蜿・�ソ�ス�ヲ竏壺イ邵コ繧�ス顔クコ�セ邵コ�ス:" ); | 
|---|
| 302 | exbpframe.dispose(); | 
|---|
| 303 | } | 
|---|
| 304 | } | 
|---|
| 305 | else {//髫搾ソス辟哢ode郢ァ蟶昶�隰壽ァュ�邵コ貊�怙邵コ�ョ陷�スヲ騾�ソス | 
|---|
| 306 | if(focal_points.size() > 1){ | 
|---|
| 307 | exbp.exbp_node_center = new ExbpNode("(ROOT)"); | 
|---|
| 308 | exbp.nodes.addElement(exbp.exbp_node_center); | 
|---|
| 309 |  | 
|---|
| 310 | Vector chi_nodes = new Vector(); | 
|---|
| 311 | Enumeration node_en = focal_points.elements(); | 
|---|
| 312 | while(node_en.hasMoreElements()){ | 
|---|
| 313 | Object gobj2 = node_en.nextElement(); | 
|---|
| 314 | if(gobj2 instanceof String){ | 
|---|
| 315 | ExbpNode chinode = new ExbpNode((String)gobj2); | 
|---|
| 316 | chinode.setOrgNode(gobj2); | 
|---|
| 317 | exbp.exbp_node_center.addChild(chinode); | 
|---|
| 318 | exbp.nodes.add(chinode); | 
|---|
| 319 | } | 
|---|
| 320 |  | 
|---|
| 321 | exbpnodes = new ExbpNode[exbp.exbp_node_center.children.size()]; | 
|---|
| 322 | for(int i=0;i<exbp.exbp_node_center.children.size();i++){ | 
|---|
| 323 | exbpnodes[i]=(ExbpNode)exbp.exbp_node_center.children.elementAt(i); | 
|---|
| 324 | } | 
|---|
| 325 | } | 
|---|
| 326 | } | 
|---|
| 327 | else{//Node郢ァ螳夲スヲ遏ゥ竏郁ャ壽ァュ�ス鬮ォ蟶呻ソス陷�スヲ騾�ソス | 
|---|
| 328 | JOptionPane.showMessageDialog(exbpframe, | 
|---|
| 329 | "You Have to select [Node]!", | 
|---|
| 330 | "ERROR", | 
|---|
| 331 | JOptionPane.ERROR_MESSAGE); | 
|---|
| 332 | System.out.println("ERROR:Node"); | 
|---|
| 333 | exbpframe.dispose(); | 
|---|
| 334 | } | 
|---|
| 335 | } | 
|---|
| 336 |  | 
|---|
| 337 | return exbpnodes; | 
|---|
| 338 | } | 
|---|
| 339 |  | 
|---|
| 340 | /* | 
|---|
| 341 | //陷茨ソス竊堤クコ�ェ郢ァ霆恵ject邵コ荵晢ス右xbpNode郢ァ蜑�スス諛奇ス狗クイ鬟殪zo闔会ス・陞滓じ縲堤クコ�ッ郢ァ�ェ郢晢スシ郢晁��ス郢晢スゥ郢ァ�、郢晏ウィ笘�ケァ荵晢ソス | 
|---|
| 342 | ExbpNode makeExbpNode(Object obj){ | 
|---|
| 343 | if(!(obj instanceof String)){ | 
|---|
| 344 | //System.out.println("ERROR@makeChildNodes():obj is NOT Node!"); | 
|---|
| 345 | return null; | 
|---|
| 346 | } | 
|---|
| 347 |  | 
|---|
| 348 | Node node =(Node)obj; | 
|---|
| 349 | ExbpNode exbpnode; | 
|---|
| 350 |  | 
|---|
| 351 |  | 
|---|
| 352 | //#kozaki 2009/08/19邵イ�スlot邵コ�ョ陷�スヲ騾�ソス�帝恆�ス陷会ソス | 
|---|
| 353 | if(node instanceof hozo.oe.gobj.Slot){ | 
|---|
| 354 | if(!((Slot)node).getRHname().equals("")){ | 
|---|
| 355 | node = this.hzEditor.findRH(((Slot)node).getRHname()); | 
|---|
| 356 | } | 
|---|
| 357 | else{ | 
|---|
| 358 |  | 
|---|
| 359 | } | 
|---|
| 360 | } | 
|---|
| 361 |  | 
|---|
| 362 | if(node instanceof hozo.oe.gobj.NodeRH){ | 
|---|
| 363 | if(this.isSubLung){ | 
|---|
| 364 | exbpnode= new ExbpNode(node.getSubLabel()+"[RH]"); | 
|---|
| 365 | } | 
|---|
| 366 | else{ | 
|---|
| 367 | exbpnode= new ExbpNode(node.getLabel()+"[RH]"); | 
|---|
| 368 | } | 
|---|
| 369 | } | 
|---|
| 370 | else{ | 
|---|
| 371 | if(this.isSubLung){ | 
|---|
| 372 | exbpnode= new ExbpNode(node.getSubLabel()); | 
|---|
| 373 | } | 
|---|
| 374 | else{ | 
|---|
| 375 | exbpnode= new ExbpNode(node.getLabel()); | 
|---|
| 376 | } | 
|---|
| 377 | } | 
|---|
| 378 |  | 
|---|
| 379 | exbpnode.setOrgNode(obj); | 
|---|
| 380 | //exbp.nodes.add(exbpnode); | 
|---|
| 381 |  | 
|---|
| 382 | return exbpnode; | 
|---|
| 383 | }*/ | 
|---|
| 384 |  | 
|---|
| 385 |  | 
|---|
| 386 | //�ス莉」笆ス邵コ�ョExbpNode邵コ�ォ郢ァ�ウ郢晄ァュホヲ郢晏ウィ�帝ゥ包スゥ陟「諛奇シ邵コ�ヲ闕ウ蛟カ�ス蟄肺bpNode郢ァ螳夲スソ�ス陷会ソス笘�ケァ荵晢ソスHozo闔会ス・陞滓じ縲堤クコ�ョ郢ァ�ェ郢晢スシ郢晁��ス郢晢スゥ郢ァ�、郢晏ウィ�ス陟「�ス�ヲ竏壺�邵コ蜉ア�ス | 
|---|
| 387 | //邵イ�ス縺慕ケ晄ァュホヲ郢晉判�ッ蠑ア竊鍋ケ晢ス。郢ァ�ス郢晢ソス繝ゥ郢ァ蛛オ縺檎ケ晢スシ郢晁��ス郢晢スゥ郢ァ�、郢晏ウィ笘�ケァ�ス | 
|---|
| 388 | void makeChildNodes(ExbpNode exbpnode, String command){ | 
|---|
| 389 | /*      if(!(exbpnode.getOrgNode() instanceof Node)){ | 
|---|
| 390 | //System.out.println("ERROR@makeChildNodes():orgnode is NOT Node!"); | 
|---|
| 391 | return; | 
|---|
| 392 | } | 
|---|
| 393 |  | 
|---|
| 394 | //              exbpnode.children.removeAllElements(); | 
|---|
| 395 | //              System.out.println("makeChildNodes():::command="+command); | 
|---|
| 396 | removeAllChildren(exbpnode); | 
|---|
| 397 |  | 
|---|
| 398 |  | 
|---|
| 399 | if(command.equals("isa")){ // ?邵イ�ス�ク蛟カ�ス閧エ�ヲ繧�スソ�オ邵コ�ョ隰夲スス陷�スコ is-a | 
|---|
| 400 | makeChildNodeISA(exbpnode); | 
|---|
| 401 | } | 
|---|
| 402 | else if(command.equals("super")){// ?闕ウ雍具スス閧エ�ヲ繧�スソ�オ邵コ�ョ隰夲スス陷�スコ | 
|---|
| 403 | makeChildNodeSuper(exbpnode); | 
|---|
| 404 | } | 
|---|
| 405 | else if(command.startsWith(":")){// 陷ソ繧会ソス陷茨ソス�ス隰夲スス陷�スコ邵イ�スefereed to | 
|---|
| 406 | makeChildNodeRefered(exbpnode,command); | 
|---|
| 407 | } | 
|---|
| 408 | // #hirota 08/08/19 郢ァ�ウ郢晄ァュホヲ郢晁��オ莉咏イ� | 
|---|
| 409 | else if(command.startsWith(";")){ // (old)郢晢スュ郢晢スシ郢晢スォ隰厄ソス�ョ螢ケ竕郢ァ鄙ォ�ス�ス荵晢ソス闕ウ蛟カ�ス閧エ�ヲ繧�スソ�オ隰厄ソス�ョ螢ケ竕郢ァ�ス | 
|---|
| 410 | makeChildNodeRoleSub(exbpnode,command); | 
|---|
| 411 | } | 
|---|
| 412 | else if(command.equals("any-h")){ // ? depend-on 遶奇ソス #hirota 11/26  霑エ�セ陜ィ�ィ邵コ�ョ髫穂ケ溘○邵コ蜷孃de邵コ�ョ邵コ�ィ邵コ髦ェ�スNode邵コ�ョ郢ァ�ケ郢晢スュ郢晢ソス繝ィ邵コ�ョRH郢ァ螳夲ス。�ィ驕会スコ | 
|---|
| 413 | makeChildNodeDependOnRH(exbpnode,command); | 
|---|
| 414 | } | 
|---|
| 415 | else if(command.equals("++s")){// ?邵イ�スepend on 邵イ�ス�ス郢ァ�ウ郢晢スウ郢晢ソス縺冗ケァ�ケ郢晏現�定愾謔カ�願怎�コ邵コ�ス | 
|---|
| 416 | makeChildNodeDependOnContext(exbpnode,command); | 
|---|
| 417 | } | 
|---|
| 418 | else if(command.equals("++P")){//  playable 鬮「�「闖ォ�ス?邵イ�ス�ス all | 
|---|
| 419 | makeChildNodePlayable(exbpnode); | 
|---|
| 420 | } | 
|---|
| 421 | else if(command.startsWith("++p")){// playable 鬮「�「闖ォ�ス?邵イ�ス�ス label 隰厄ソス�ョ�ス | 
|---|
| 422 | makeChildNodePlayableByLabel(exbpnode, command); | 
|---|
| 423 | } | 
|---|
| 424 | else if(command.equals("++c")){ // ?邵イ�スlayable 遶奇ソス郢晏干ホ樒ケァ�、郢晢ス、郢晢スシ邵コ�ョ陷ソ謔カ�願怎�コ邵コ�ス | 
|---|
| 425 | makeChildNodePlayer(exbpnode); | 
|---|
| 426 | } | 
|---|
| 427 | else if(command.startsWith("++r:")){// ?鬮「�「闖ォ繧茨スヲ繧�スソ�オ邵コ�ョ陷ソ謔カ�願怎�コ邵コ�ス ++r:Lable | 
|---|
| 428 | makeChildNodeRelationConcept(exbpnode,command); | 
|---|
| 429 | } | 
|---|
| 430 | else if(command.equals("++R")){ // ++R  陷茨スィ鬩幢スィ陷ソ謔カ�願怎�コ邵コ�ス | 
|---|
| 431 | makeChildNodeRelationAll(exbpnode); | 
|---|
| 432 | } | 
|---|
| 433 | else if(command.startsWith("super_isa")){ // #hirota 08/09/03 陷茨ソス�シ貊難スヲ繧�スソ�オ邵コ�ョ陷ソ謔カ�願怎�コ邵コ�スsuper+isa) | 
|---|
| 434 | makeChildNodeBrothers(exbpnode); | 
|---|
| 435 | } | 
|---|
| 436 | else if(command.startsWith("_")){//             郢ァ�ッ郢晢スゥ郢ァ�ケ陋サ�カ驍擾ソス�帝恷�ソ郢ァ蜿・�ス騾�ソス�スonly RH | 
|---|
| 437 | makeChildNodeCConlyRH(exbpnode,command); | 
|---|
| 438 | } | 
|---|
| 439 | else{ | 
|---|
| 440 | makeChildNodeReferringTo(exbpnode,command);// 郢ァ�ッ郢晢スゥ郢ァ�ケ陋サ�カ驍擾ソス�帝恷�ソ郢ァ蜿・�ス騾�ソス | 
|---|
| 441 | } | 
|---|
| 442 | */ | 
|---|
| 443 | } | 
|---|
| 444 |  | 
|---|
| 445 | public void run(){ | 
|---|
| 446 | //SerachPath(target_nodes,target_cls); | 
|---|
| 447 | } | 
|---|
| 448 |  | 
|---|
| 449 | public void stop(){ | 
|---|
| 450 | //              pbar_frame.stop(); | 
|---|
| 451 | //              pbar_frame=null; | 
|---|
| 452 | } | 
|---|
| 453 |  | 
|---|
| 454 | ExbpNode[] target_nodes; | 
|---|
| 455 | //      Node[] target_cls; | 
|---|
| 456 | int[] match_num; | 
|---|
| 457 | //      ProgressFrame pbar_frame; | 
|---|
| 458 |  | 
|---|
| 459 | /* | 
|---|
| 460 | public void SearchPathAsThread(ExbpNode[] nodes, Node[] cls){ | 
|---|
| 461 | pbar_frame = new ProgressFrame("Serach Path","Now,Searching..., Please wait."); | 
|---|
| 462 | pbar_frame.frame.setAlwaysOnTop(true); | 
|---|
| 463 | pbar_frame.frame.setLocation(exbp.cmd_dialog.getWidth(),100); | 
|---|
| 464 |  | 
|---|
| 465 |  | 
|---|
| 466 | target_nodes = nodes; | 
|---|
| 467 | target_cls =cls; | 
|---|
| 468 | match_num = new int[cls.length]; | 
|---|
| 469 | for(int i=0;i<match_num.length;i++){ | 
|---|
| 470 | match_num[i]=0; | 
|---|
| 471 | } | 
|---|
| 472 |  | 
|---|
| 473 | Thread thread = new Thread(this); | 
|---|
| 474 | thread.start(); | 
|---|
| 475 |  | 
|---|
| 476 |  | 
|---|
| 477 | }*/ | 
|---|
| 478 | /* | 
|---|
| 479 |  | 
|---|
| 480 | void checkMatchCount(){ | 
|---|
| 481 | match_num = new int[target_cls.length]; | 
|---|
| 482 | for(int i=0;i<match_num.length;i++){ | 
|---|
| 483 | match_num[i]=0; | 
|---|
| 484 | } | 
|---|
| 485 |  | 
|---|
| 486 | Enumeration en = this.exbp.nodes.elements(); | 
|---|
| 487 | while(en.hasMoreElements()){ | 
|---|
| 488 | ExbpNode node = (ExbpNode)en.nextElement(); | 
|---|
| 489 | Object obj = node.getOrgNode(); | 
|---|
| 490 | if(obj instanceof Node){ | 
|---|
| 491 | Node hozonode=(Node)obj; | 
|---|
| 492 | for(int i=0;i<target_cls.length;i++){ | 
|---|
| 493 | if(target_cls[i] instanceof Node){ | 
|---|
| 494 | if(hozonode.isSubclassOf((Node)target_cls[i]) | 
|---|
| 495 | || hozonode.equals(target_cls[i])){ | 
|---|
| 496 | match_num[i]++; | 
|---|
| 497 | } | 
|---|
| 498 | } | 
|---|
| 499 | } | 
|---|
| 500 | } | 
|---|
| 501 | } | 
|---|
| 502 |  | 
|---|
| 503 | for(int i=0;i<target_cls.length;i++){ | 
|---|
| 504 | System.out.println( | 
|---|
| 505 | target_cls[i].getLabel()+" = "+ | 
|---|
| 506 | match_num[i]); | 
|---|
| 507 | } | 
|---|
| 508 | } | 
|---|
| 509 | */ | 
|---|
| 510 |  | 
|---|
| 511 | //#kozaki邵イ�ス009/02/13邵イ�ス�ッ�セ髮趣ス。郢晏シア�ス郢晏ウィ�帝嚶�ス辟夂クコ�ォ隲。�。陟托スオ | 
|---|
| 512 | //      public void SerachPath(ExbpNode[] nodes, Node[] target_cls/*String[] cls_lists*/){} | 
|---|
| 513 |  | 
|---|
| 514 | //      private Vector<ExbpNode> SerachPath(Vector<ExbpNode> nodes, | 
|---|
| 515 | //                      Node[] cls_lists,Vector<ExbpNode> match_nodes){} | 
|---|
| 516 |  | 
|---|
| 517 | void removeAllChildren(ExbpNode exbpnode){ | 
|---|
| 518 | this.exbp.nodes.removeAll(exbpnode.children); | 
|---|
| 519 | exbpnode.children.removeAllElements(); | 
|---|
| 520 | } | 
|---|
| 521 |  | 
|---|
| 522 | //隹コ�。邵コ�ォ邵コ貅倪�郢ァ荵昴Π郢晢スシ郢晏ウィ�ス郢晢スェ郢ァ�ケ郢晏現�定愾髢�セ蜉ア笘�ケァ�ス | 
|---|
| 523 | //遯カ�サ闕ウ�ス�コ�ヲ邵コ貅倪�邵コ�」邵コ貅假シ�クコ�ィ邵コ�ョ邵コ繧�ス狗ケ晢ソス�ス郢ァ�ソ邵コ�ッ�ス闕各mp_nodes邵コ�ォ闖ォ譎�亜邵コ霈費ス鯉ソス蠕娯落邵コ�。郢ァ蟲ィ�帝恆譁絶� | 
|---|
| 524 | //      Vector<ExbpNode> getChildNodeFromTemp(ExbpNode exbpnode, String cmd){} | 
|---|
| 525 |  | 
|---|
| 526 |  | 
|---|
| 527 | void explore(ExbpNode exbpnode, boolean all, String cmd){ | 
|---|
| 528 | /*      ExbpNode[] exbpnodes=new ExbpNode[1]; | 
|---|
| 529 |  | 
|---|
| 530 | if(!all){ | 
|---|
| 531 | exbpnodes=new ExbpNode[1]; | 
|---|
| 532 | exbpnodes[0]=exbpnode; | 
|---|
| 533 | } | 
|---|
| 534 | else{ | 
|---|
| 535 | int layer = exbpnode.getLocatedLayer(); | 
|---|
| 536 | exbpnodes=exbp.getExbpNodesAtLear(layer,true); | 
|---|
| 537 | } | 
|---|
| 538 |  | 
|---|
| 539 | for(int l=0;l<exbpnodes.length;l++){ | 
|---|
| 540 | if(exbpnodes[l].visible){ | 
|---|
| 541 | this.makeChildNodeReferringToDirectly(exbpnodes[l], cmd); | 
|---|
| 542 | this.makeChildNodeRefered(exbpnodes[l], ":Any"); | 
|---|
| 543 |  | 
|---|
| 544 | //exbpnodes[l].children.removeAllElements(); | 
|---|
| 545 | //                              Vector temp_children = getChildNodeFromTemp(exbpnodes[l],cmd); | 
|---|
| 546 | //                              Enumeration en = temp_children.elements(); | 
|---|
| 547 | //                              while(en.hasMoreElements()){ | 
|---|
| 548 | //                                      ExbpNode chi = (ExbpNode)en.nextElement(); | 
|---|
| 549 | //                                      exbpnodes[l].addChild(chi); | 
|---|
| 550 | //                                      chi.setVisible(true); | 
|---|
| 551 | //                              } | 
|---|
| 552 | } | 
|---|
| 553 | }*/ | 
|---|
| 554 |  | 
|---|
| 555 | } | 
|---|
| 556 |  | 
|---|
| 557 | void clearSubPath(ExbpNode exbpnode){ | 
|---|
| 558 | ExbpNode[] exbpnodes=new ExbpNode[1]; | 
|---|
| 559 |  | 
|---|
| 560 | int layer = exbpnode.getLocatedLayer(); | 
|---|
| 561 | exbpnodes=exbp.getExbpNodesAtLear(layer,true); | 
|---|
| 562 |  | 
|---|
| 563 |  | 
|---|
| 564 | for(int l=0;l<exbpnodes.length;l++){ | 
|---|
| 565 | if(exbpnodes[l].visible){ | 
|---|
| 566 | this.removeAllChildren(exbpnodes[l]); | 
|---|
| 567 | } | 
|---|
| 568 | } | 
|---|
| 569 |  | 
|---|
| 570 | } | 
|---|
| 571 |  | 
|---|
| 572 |  | 
|---|
| 573 | //陷キ�ス縺慕ケ晄ァュホヲ郢晏ウィ�帝ゥ包スゥ騾包スィ邵コ蜉ア笳�クコ�ィ邵コ髦ェ竊鍋クコ貅倪�郢ァ荵昴Π郢晢スシ郢晏ウィ�堤クコ蜉ア�臥クコ�ケ邵コ�ヲ�ス蜊ヲree邵コ�ョ郢ァ�ウ郢晄ァュホヲ郢晏ウィホ懃ケァ�ケ郢晏現竊楢怦�・郢ァ蠕鯉ス具ソス�ス | 
|---|
| 574 | //      void setCommandsTree(ExbpNode[] exbpnodes){} | 
|---|
| 575 |  | 
|---|
| 576 | public void makeChildNodeSuper(ExbpNode exbpnode) {} | 
|---|
| 577 |  | 
|---|
| 578 |  | 
|---|
| 579 | private void makeSlotRelatedExbpNode(ExbpNode exbpnode, String command) {} | 
|---|
| 580 |  | 
|---|
| 581 | //      #kozaki 2008/08/17邵イ�ス縺帷ケ晢スュ郢晢ソス繝ィ邵コ�ァ鬮「�「鬨セ�」邵コ蜉ア笳�ョ弱g�ソ�オ郢ァ螳夲スセ�ソ郢ァ蜿・�ス騾�ソス竏育クコ�ョ陋サ�ス�イ�ス | 
|---|
| 582 | //      private void makeSlotRelatedExbpNode(ExbpNode par_exbpnode, Node node, String command){} | 
|---|
| 583 |  | 
|---|
| 584 |  | 
|---|
| 585 | //#kozaki 2008/08/12邵イ�ス縺醍ケ晢スゥ郢ァ�ケ陋サ�カ驍擾ソス�帝恷�ソ郢ァ蜿・�ス騾�ソス�定ソ「�ャ驕カ�ス | 
|---|
| 586 | //      private void makeExbpNodeCC(ExbpNode par_exbpnode,      //髫包スェ邵コ�ィ邵コ�ェ郢ァ逡ソxbpNode | 
|---|
| 587 | //                                                              Slot slot,                              //髴趣スソ郢ァ蜿・�ッ�セ髮趣ス。邵コ�ィ邵コ�ェ郢ァ荵昴○郢晢スュ郢晢ソス繝ィ | 
|---|
| 588 | //                                                              Node slot_node,                 //郢ァ�ッ郢晢スゥ郢ァ�ケ陋サ�カ驍擾ソス竊堤クコ蜉ア窶サ陷ソ繧会ソス邵コ蜉ア窶サ邵コ�ス�狗ケ晏シア�ス郢晢ソス | 
|---|
| 589 | //                                                              Node node,                              //髴趣スソ郢ァ荵昴○郢晢スュ郢晢ソス繝ィ郢ァ蜻域亜邵コ�、郢晏シア�ス郢晢ソス | 
|---|
| 590 | //                                                              String command,         //髴趣スソ郢ァ荵昴&郢晄ァュホヲ郢晢ソス | 
|---|
| 591 | //                                                              String match_key                //闕ウ�ス�ス邵コ蜉ア笳�ケァ�ウ郢晄ァュホヲ郢昜シ夲スシ莠包スク雍具スス髦ェ縺帷ケ晢スュ郢晢ソス繝ィ邵コ�ョ陷�スヲ騾�ソス逡托ソス�ス | 
|---|
| 592 | //                                                              ){} | 
|---|
| 593 |  | 
|---|
| 594 | //      public void makeChildNodeISA(ExbpNode exbpnode){} | 
|---|
| 595 |  | 
|---|
| 596 |  | 
|---|
| 597 | // ? | 
|---|
| 598 | //      private void makeChildNodeRefered(ExbpNode exbpnode, String command) {} | 
|---|
| 599 |  | 
|---|
| 600 | //      ?遯カ�ス(old)郢晢スュ郢晢スシ郢晢スォ隰厄ソス�ョ螢ケ竕郢ァ鄙ォ�ス�ス荵晢ソス闕ウ蛟カ�ス閧エ�ヲ繧�スソ�オ隰厄ソス�ョ螢ケ竕郢ァ�ス | 
|---|
| 601 | //      public void makeChildNodeRoleSub(ExbpNode exbpnode,String command) {} | 
|---|
| 602 |  | 
|---|
| 603 | // ? depend-on 遶奇ソス #hirota 11/26  霑エ�セ陜ィ�ィ邵コ�ョ髫穂ケ溘○邵コ蜷孃de邵コ�ョ邵コ�ィ邵コ髦ェ�スNode邵コ�ョ郢ァ�ケ郢晢スュ郢晢ソス繝ィ邵コ�ョRH郢ァ螳夲ス。�ィ驕会スコ | 
|---|
| 604 | //      public void makeChildNodeDependOnRH(ExbpNode exbpnode,String NodeCC) {} | 
|---|
| 605 |  | 
|---|
| 606 |  | 
|---|
| 607 |  | 
|---|
| 608 | // ?邵イ�スepend on 邵イ�ス�ス郢ァ�ウ郢晢スウ郢晢ソス縺冗ケァ�ケ郢晏現�定愾謔カ�願怎�コ邵コ�ス#hirota add 09/11/09 | 
|---|
| 609 | //      public void makeChildNodeDependOnContext(ExbpNode exbpnode,String command) {} | 
|---|
| 610 |  | 
|---|
| 611 | //  playable 鬮「�「闖ォ�ス?邵イ�ス�ス all | 
|---|
| 612 | //      public void makeChildNodePlayable(ExbpNode exbpnode) {} | 
|---|
| 613 |  | 
|---|
| 614 | // playable 鬮「�「闖ォ�ス?邵イ�ス�ス label 隰厄ソス�ョ�ス | 
|---|
| 615 | //      private void makeChildNodePlayableByLabel(ExbpNode exbpnode,String command) {} | 
|---|
| 616 |  | 
|---|
| 617 | // ?邵イ�スlayable 遶奇ソス郢晏干ホ樒ケァ�、郢晢ス、郢晢スシ邵コ�ョ陷ソ謔カ�願怎�コ邵コ�ス | 
|---|
| 618 | //      public void makeChildNodePlayer(ExbpNode exbpnode) {} | 
|---|
| 619 | //      private void makeChildNodeRelationConcept(ExbpNode exbpnode,String command) {} | 
|---|
| 620 |  | 
|---|
| 621 | //       ++R  陷茨スィ鬩幢スィ陷ソ謔カ�願怎�コ邵コ�ス驍ッ蜻惹セ。郢ァ�ェ郢晏干縺咏ケ晢スァ郢晢スウ邵コ繧�ス顔クコ�ョ邵コ�ィ邵コ謳セ�シ�ス | 
|---|
| 622 | //      public void makeChildNodeRelationAllToDirectry(ExbpNode exbpnode) {} | 
|---|
| 623 | // ++R  陷茨スィ鬩幢スィ陷ソ謔カ�願怎�コ邵コ�ス | 
|---|
| 624 | //      public void makeChildNodeRelationAll(ExbpNode exbpnode) {} | 
|---|
| 625 |  | 
|---|
| 626 | // #hirota 08/09/03 陷茨ソス�シ貊難スヲ繧�スソ�オ邵コ�ョ陷ソ謔カ�願怎�コ邵コ�スsuper+isa) | 
|---|
| 627 | //      private void makeChildNodeBrothers(ExbpNode exbpnode) {} | 
|---|
| 628 |  | 
|---|
| 629 | //      郢ァ�ッ郢晢スゥ郢ァ�ケ陋サ�カ驍擾ソス�帝恷�ソ郢ァ蜿・�ス騾�ソス�スonly RH | 
|---|
| 630 | //      private void makeChildNodeCConlyRH(ExbpNode exbpnode,String command) {} | 
|---|
| 631 |  | 
|---|
| 632 | //      郢ァ�ッ郢晢スゥ郢ァ�ケ陋サ�カ驍擾ソス�帝恷�ソ郢ァ蜿・�ス騾�ソス�ス | 
|---|
| 633 | //      private void makeChildNodeReferringTo(ExbpNode exbpnode,String command) {} | 
|---|
| 634 |  | 
|---|
| 635 | //      郢ァ�ッ郢晢スゥ郢ァ�ケ陋サ�カ驍擾ソス�帝恷�ソ郢ァ蜿・�ス騾�ソス�ス郢ァ�オ郢晄じ縺帷ケ晢スュ郢晢ソス繝ィ郢ァ雋樊ァ邵コ�セ邵コ�ェ邵コ�ス�ス#kozaki邵イ�ス009/08/19 | 
|---|
| 636 | //      private void makeChildNodeReferringToDirectly(ExbpNode exbpnode,String command) {} | 
|---|
| 637 |  | 
|---|
| 638 |  | 
|---|
| 639 | //      String[] getOtionLists(Vector<ExbpNode> exbpnodes){} | 
|---|
| 640 |  | 
|---|
| 641 |  | 
|---|
| 642 | /*      public String[] getSelectedClass(String[] labels){ | 
|---|
| 643 | TreeSelectDialog treeSelectDialog = new TreeSelectDialog(true); | 
|---|
| 644 | treeSelectDialog.setHZEditor(this.hzEditor); | 
|---|
| 645 | treeSelectDialog.setSubLang(this.isSubLung); | 
|---|
| 646 | treeSelectDialog.updateTree(); | 
|---|
| 647 | //treeSelectDialog.setSize(320, 450); | 
|---|
| 648 | if(labels.length>0){ | 
|---|
| 649 | String label = labels[0]; | 
|---|
| 650 | for(int i=1;i<labels.length;i++){ | 
|---|
| 651 | label +=" "+"\\" + Slot.OR_DELIMITER+" "+labels[i]; | 
|---|
| 652 | } | 
|---|
| 653 | treeSelectDialog.setSelectedTreeDialog(labels, label); | 
|---|
| 654 | } | 
|---|
| 655 | treeSelectDialog.setVisible(true); | 
|---|
| 656 | if (treeSelectDialog.isOK()) { | 
|---|
| 657 | String[] cls_lists = treeSelectDialog.getSelectedHozoNodesByLabel(); | 
|---|
| 658 | //              String opt = treeSelectDialog.getSelected(); | 
|---|
| 659 | //              if(opt==null){ | 
|---|
| 660 | //                              opt="Any"; | 
|---|
| 661 | //                      } | 
|---|
| 662 | //              String[] cls_lists = opt.split(" "+"\\" + Slot.OR_DELIMITER+" "); | 
|---|
| 663 | return cls_lists; | 
|---|
| 664 | } | 
|---|
| 665 | return null; | 
|---|
| 666 | }*/ | 
|---|
| 667 |  | 
|---|
| 668 | //      public Object[] getSelectedClasses(String target_cls){} | 
|---|
| 669 |  | 
|---|
| 670 | //      public Node[] getSelectedClassesAsNode(String target_cls){} | 
|---|
| 671 |  | 
|---|
| 672 | //      public Node getHozoNode(String lbl){} | 
|---|
| 673 |  | 
|---|
| 674 | //      public boolean isSubClassOfSelectedClasses(Object node, Object[] target_classes){} | 
|---|
| 675 |  | 
|---|
| 676 | //      public boolean isSubClass(Object node, Object target){} | 
|---|
| 677 |  | 
|---|
| 678 | //#kozaki 2009/02/13邵イ�スode[]郢ァ諡�ring[]邵コ�ォ陞溽判驪、 | 
|---|
| 679 | //      public String[] NodesToStrings(Node[] nodes){} | 
|---|
| 680 |  | 
|---|
| 681 | //#kozaki 2009/02/13邵イ�ス縺醍ケ晢スゥ郢ァ�ケ闕ウ�ス�ヲ�ァ郢ァ隱ーode[]邵コ�ァ陷ソ髢�セ�ス | 
|---|
| 682 | //      public Node[] getSelectedClassNodes(Node[] nodes){} | 
|---|
| 683 |  | 
|---|
| 684 | //#hirota 2009/05/18邵イ�ス譛ェ闖ォ繧茨スヲ繧�スソ�オ闕ウ�ス�ヲ�ァ郢ァ隱ーode[]邵コ�ァ陷ソ髢�セ�ス | 
|---|
| 685 | //      public Node[] getSelectedClassNodes2(Node[] nodes){ | 
|---|
| 686 | //       return null; | 
|---|
| 687 | //      } | 
|---|
| 688 |  | 
|---|
| 689 | //#kozaki 09/02/15 | 
|---|
| 690 | //      public void setSubLang(boolean b){} | 
|---|
| 691 |  | 
|---|
| 692 | } | 
|---|
| 693 |  | 
|---|
| 694 |  | 
|---|