Пример #1
0
  public CellViewRenderer getRenderer() {
    try {
      return this.renderer;
    } catch (Exception e) {
      e.printStackTrace();
      ingenias.editor.Log.getInstance().log(e.getMessage());
    }

    return renderer;
  }
Пример #2
0
 public java.awt.Component getRendererComponent(JGraph jg, boolean b1, boolean b2, boolean b3) {
   CellViewRenderer renderer = null;
   try {
     ingenias.editor.entities.IUIterate ent =
         (ingenias.editor.entities.IUIterate) ((DefaultGraphCell) this.getCell()).getUserObject();
     this.renderer.setEntity(ent, jg.getModel().getAttributes(this.getCell()));
     JPanel uop = (JPanel) this.renderer.getRendererComponent(jg, this, false, false, false);
     return (Component) uop;
   } catch (Exception e) {
     e.printStackTrace();
     ingenias.editor.Log.getInstance().log("WARNING!!!" + e.getMessage());
   }
   return super.getRendererComponent(jg, b1, b2, b3);
 }