Пример #1
0
 protected void setCableManager(JTCableManager cableManager) {
   JTCableManager oldManager = this.cableManager;
   if (oldManager != cableManager) {
     if (oldManager != null) {
       oldManager.setOwner(null);
       oldManager.setView(null);
     }
     this.cableManager = cableManager;
     if (cableManager != null) {
       cableManager.setOwner(this);
       cableManager.setView(this);
     }
   }
 }
Пример #2
0
 protected void paintCables(Graphics g) {
   if (cableManager != null) {
     Graphics gs = g.create();
     try {
       cableManager.paintCables((Graphics2D) gs);
     } finally {
       gs.dispose();
     }
   }
 }