graphControl.addMouseMotionListener(this);
graphControl.addMouseMotionListener(this);
graphComponent.getGraphControl().addMouseMotionListener(this);
graphComponent.getGraphControl().addMouseMotionListener(this);
graphComponent.getGraphControl().addMouseMotionListener(this);
graphComponent.getGraphControl().addMouseMotionListener(this);
graphComponent.getGraphControl().addMouseMotionListener(this);
graphComponent.getGraphControl().addMouseMotionListener(this);
/** * Constructs a new rotation handler. */ public mxRotationHandler(mxGraphComponent graphComponent) { this.graphComponent = graphComponent; graphComponent.addMouseListener(this); handle = createHandle(); // Installs the paint handler graphComponent.addListener(mxEvent.AFTER_PAINT, new mxIEventListener() { public void invoke(Object sender, mxEventObject evt) { Graphics g = (Graphics) evt.getProperty("g"); paint(g); } }); // Listens to all mouse events on the rendering control graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); // Needs to catch events because these are consumed handle.addMouseListener(this); handle.addMouseMotionListener(this); }
/** * Constructs a new rotation handler. */ public mxRotationHandler(mxGraphComponent graphComponent) { this.graphComponent = graphComponent; graphComponent.addMouseListener(this); handle = createHandle(); // Installs the paint handler graphComponent.addListener(mxEvent.AFTER_PAINT, new mxIEventListener() { public void invoke(Object sender, mxEventObject evt) { Graphics g = (Graphics) evt.getProperty("g"); paint(g); } }); // Listens to all mouse events on the rendering control graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); // Needs to catch events because these are consumed handle.addMouseListener(this); handle.addMouseMotionListener(this); }
/** * */ public mxInsertHandler(mxGraphComponent graphComponent, String style) { this.graphComponent = graphComponent; this.style = style; // Installs the paint handler graphComponent.addListener(mxEvent.AFTER_PAINT, new mxIEventListener() { public void invoke(Object sender, mxEventObject evt) { Graphics g = (Graphics) evt.getProperty("g"); paint(g); } }); // Listens to all mouse events on the rendering control graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * */ public mxInsertHandler(mxGraphComponent graphComponent, String style) { this.graphComponent = graphComponent; this.style = style; // Installs the paint handler graphComponent.addListener(mxEvent.AFTER_PAINT, new mxIEventListener() { public void invoke(Object sender, mxEventObject evt) { Graphics g = (Graphics) evt.getProperty("g"); paint(g); } }); // Listens to all mouse events on the rendering control graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * * @param graphComponent */ public mxPanningHandler(mxGraphComponent graphComponent) { this.graphComponent = graphComponent; graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * Constructs an event handler that highlights cells. */ public mxCellTracker(mxGraphComponent graphComponent, Color color) { super(graphComponent, color); graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * Constructs an event handler that highlights cells. */ public mxCellTracker(mxGraphComponent graphComponent, Color color) { super(graphComponent, color); graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * * @param graphComponent */ public mxPanningHandler(mxGraphComponent graphComponent) { this.graphComponent = graphComponent; graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }