|
@@ -148,7 +148,8 @@ public class HolonView extends JPanel{
|
|
element.setEleName(name);
|
|
element.setEleName(name);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- static final Icon holonIcon = new ImageIcon(ImageImport.loadImage("/Button_Images/holon.png",16,16));
|
|
|
|
|
|
+ static final Icon holonIcon = new ImageIcon(ImageImport.loadImage("/Button_Images/holon_logic.png",16,16));
|
|
|
|
+ static final Icon holonPhysicalIcon = new ImageIcon(ImageImport.loadImage("/Button_Images/holon_physical.png",16,16));
|
|
static final String holonToolTip = "Holon";
|
|
static final String holonToolTip = "Holon";
|
|
class HolonInfo implements HolonNode{
|
|
class HolonInfo implements HolonNode{
|
|
private Holon holon;
|
|
private Holon holon;
|
|
@@ -181,7 +182,7 @@ public class HolonView extends JPanel{
|
|
}
|
|
}
|
|
@Override
|
|
@Override
|
|
public Icon getIcon() {
|
|
public Icon getIcon() {
|
|
- return holonIcon;
|
|
|
|
|
|
+ return holon.isPhysical? holonPhysicalIcon: holonIcon;
|
|
}
|
|
}
|
|
@Override
|
|
@Override
|
|
public String getToolTip() {
|
|
public String getToolTip() {
|
|
@@ -239,9 +240,9 @@ public class HolonView extends JPanel{
|
|
if(info == null) return;
|
|
if(info == null) return;
|
|
HolonObject obj = info.holon.getHolonObject();
|
|
HolonObject obj = info.holon.getHolonObject();
|
|
if(obj != null) {
|
|
if(obj != null) {
|
|
- control.deleteCanvasObject(obj, true);
|
|
|
|
|
|
+ info.holon.reassignAllChildren(info.holon.getParent());
|
|
}else {
|
|
}else {
|
|
- info.holon.reassignAllChildren(control.getModel().getStateHolon());
|
|
|
|
|
|
+ info.holon.reassignAllChildren(info.holon.getParent());
|
|
info.holon.removeFromParent();
|
|
info.holon.removeFromParent();
|
|
info.holon.removeAllRefrences();
|
|
info.holon.removeAllRefrences();
|
|
}
|
|
}
|