public GraphEntity getPlayer() throws NullEntity{ return new GraphEntityImp(player,graph,ids); }
public GraphEntity getEntityValue() throws NullEntity { if (attribute == null) { throw new NullEntity(); } else { return new GraphEntityImp( (ingenias.editor.entities.Entity) attribute, graph,ids); } }
public GraphEntity getElementAt(int k) throws NullEntity{ return new GraphEntityImp((Entity)tv.elementAt(k),g,ids); }
public GraphEntity createEntityWithoutDiagram(String entType, String id) { Method m; try { m = ids.om.getClass().getMethod("create"+entType,new Class[]{String.class}); Entity result=(Entity)(m.invoke(ids.om,new Object[]{id})); GraphEntityImp gei=new GraphEntityImp(result,null,ids); return gei; } catch (SecurityException e) { e.printStackTrace(); } catch (NoSuchMethodException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } catch (InvocationTargetException e) { e.printStackTrace(); } catch (NullEntity e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
public GraphEntity createModelEntity(String diagramType, String id,Graph diagram) throws InvalidEntity{ ModelEntity modelEntity; try { modelEntity = (ModelEntity) Class.forName("ingenias.editor.entities."+diagramType+"ModelEntity").getConstructor(new Class[]{String.class}).newInstance(id); GraphEntityImp gei=new GraphEntityImp(modelEntity,null,diagram.getGraph(),ids); return gei; } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException | ClassNotFoundException e) { throw new InvalidEntity(e); // TODO Auto-generated catch block } catch (NullEntity e) { throw new InvalidEntity(e); } }
GraphEntity ge=null; ge = new GraphEntityImp(ne, dgc,mjg,ids);
GraphEntity ge=null; ge = new GraphEntityImp(ne, mjg,ids);
GraphEntityImp gei=new GraphEntityImp(result,((GraphImp)diagram).getGraph(),ids);
GraphEntityImp gei=new GraphEntityImp(result,((GraphImp)diagram).getGraph(),ids); if (this.isGraphicalEntity(result.getType())){