/** * Returns an instance of <code>JGraph</code> which displays the specified * data model using the specified view. * * @param model * the <code>GraphModel</code> to use as the data model * @param cache * the <code>GraphLayoutCache</code> to use as the cache */ public JGraph(GraphModel model, GraphLayoutCache cache) { this(model, cache, new BasicMarqueeHandler()); }
public synchronized JGraph cloneJGraph(IDEState ids){ UseCaseDiagramModelJGraph jg=new UseCaseDiagramModelJGraph( (UseCaseDiagramDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
public synchronized JGraph cloneJGraph(IDEState ids){ OrganizationModelModelJGraph jg=new OrganizationModelModelJGraph( (OrganizationModelDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
public synchronized JGraph cloneJGraph(IDEState ids){ ActivityDiagramModelJGraph jg=new ActivityDiagramModelJGraph( (ActivityDiagramDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
public synchronized JGraph cloneJGraph(IDEState ids){ DeployDiagramModelJGraph jg=new DeployDiagramModelJGraph( (DeployDiagramDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
public synchronized JGraph cloneJGraph(IDEState ids){ EnvironmentModelModelJGraph jg=new EnvironmentModelModelJGraph( (EnvironmentModelDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
public synchronized JGraph cloneJGraph(IDEState ids){ InteractionModelModelJGraph jg=new InteractionModelModelJGraph( (InteractionModelDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
public synchronized JGraph cloneJGraph(IDEState ids){ AgentModelModelJGraph jg=new AgentModelModelJGraph( (AgentModelDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
public synchronized JGraph cloneJGraph(IDEState ids){ TasksAndGoalsModelModelJGraph jg=new TasksAndGoalsModelModelJGraph( (TasksAndGoalsModelDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
public synchronized JGraph cloneJGraph(IDEState ids){ ComponentDiagramModelJGraph jg=new ComponentDiagramModelJGraph( (ComponentDiagramDataEntity) this.mde,name, ids.om, new Model(ids),new BasicMarqueeHandler(),ids.prefs); this.setSelectionCells(getGraphLayoutCache().getCells(false,true,false,false)); Action copyaction =new EventRedirectorForGraphCopy(this,this.getTransferHandler().getCopyAction(),null ); Action pasteaction =new EventRedirectorPasteForGraphCopy(jg,jg.getTransferHandler().getPasteAction(),null ); copyaction.actionPerformed(new ActionEvent(this,0,"hello")); pasteaction.actionPerformed(new ActionEvent(this,0,"hello")); jg.invalidate(); jg.doLayout(); return jg; }
TasksAndGoalsModelDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); TasksAndGoalsModelActionsFactory ema=new TasksAndGoalsModelActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources));
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ EnvironmentModelModelJGraph mjg = new EnvironmentModelModelJGraph(new EnvironmentModelDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); EnvironmentModelActionsFactory ema=new EnvironmentModelActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ InteractionModelModelJGraph mjg = new InteractionModelModelJGraph(new InteractionModelDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); InteractionModelActionsFactory ema=new InteractionModelActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ ActivityDiagramModelJGraph mjg = new ActivityDiagramModelJGraph(new ActivityDiagramDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); ActivityDiagramActionsFactory ema=new ActivityDiagramActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ AgentModelModelJGraph mjg = new AgentModelModelJGraph(new AgentModelDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); AgentModelActionsFactory ema=new AgentModelActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ UseCaseDiagramModelJGraph mjg = new UseCaseDiagramModelJGraph(new UseCaseDiagramDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); UseCaseDiagramActionsFactory ema=new UseCaseDiagramActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ DeployDiagramModelJGraph mjg = new DeployDiagramModelJGraph(new DeployDiagramDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); DeployDiagramActionsFactory ema=new DeployDiagramActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ OrganizationModelModelJGraph mjg = new OrganizationModelModelJGraph(new OrganizationModelDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); OrganizationModelActionsFactory ema=new OrganizationModelActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ ComponentDiagramModelJGraph mjg = new ComponentDiagramModelJGraph(new ComponentDiagramDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); ComponentDiagramActionsFactory ema=new ComponentDiagramActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {
public ModelJGraph execute(String diagramName,Object[] path, IDEState ids){ TasksAndGoalsModelModelJGraph mjg = new TasksAndGoalsModelModelJGraph(new TasksAndGoalsModelDataEntity( diagramName), diagramName, ids.om, new Model(ids), new BasicMarqueeHandler(), ids.prefs ); TasksAndGoalsModelActionsFactory ema=new TasksAndGoalsModelActionsFactory(resources,ids); mjg.setUI(new EmbeddedAndPopupCellEditor(ids,resources)); MarqueeHandler marquee=new MarqueeHandler(mjg, resources,ids,ema); mjg.setMarqueeHandler(marquee); ids.gm.addModel(path, diagramName, mjg); ids.addNewDiagram(mjg); return mjg; } public String getIconName() {