1 9 10 package org.enhydra.jawe.actions; 11 12 import org.jgraph.graph.*; 13 14 import org.enhydra.jawe.*; 15 import org.enhydra.jawe.graph.*; 16 import org.enhydra.jawe.xml.*; 17 import org.enhydra.jawe.xml.panels.*; 18 19 import java.awt.event.ActionEvent ; 20 import javax.swing.*; 21 import java.util.*; 22 import java.awt.*; 23 24 28 public class AddPoint extends ActionBase { 29 30 public AddPoint (ProcessEditor pe) { 31 super(pe); 32 } 33 34 public void actionPerformed(ActionEvent e) { 35 JaWEMarqueeHandler pemh = (JaWEMarqueeHandler)editor.getGraph().getMarqueeHandler(); 36 Point addAt=pemh.getPopupPoint(); 37 Object transition=editor.getGraph().getSelectionCell(); 38 if (transition instanceof Transition) { 39 CellView view=editor.getGraph().getGraphLayoutCache().getMapping(transition,false); 40 TransitionView tv=(TransitionView)view; 41 tv.addPoint(addAt); 42 } 43 } 44 } 45 | Popular Tags |