/** * */ public void destroy() { graphComponent.getGraphControl().removeMouseListener(this); graphComponent.getGraphControl().removeMouseMotionListener(this); }
public void invoke(Object sender, mxEventObject evt) { updateComponents(); graphControl.updatePreferredSize(); } };
/** * Constructs an event handler that highlights cells. */ public mxCellTracker(mxGraphComponent graphComponent, Color color) { super(graphComponent, color); graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * Resets the rubberband selection without carrying out the selection. */ public void reset() { first = null; if (bounds != null) { graphComponent.getGraphControl().repaint(bounds); bounds = null; } }
/** * */ public void insertComponent(mxCellState state, Component c) { getGraphControl().add(c, 0); }
/** * */ public void setSwimlaneSelectionEnabled(boolean value) { boolean oldValue = swimlaneSelectionEnabled; swimlaneSelectionEnabled = value; firePropertyChange("swimlaneSelectionEnabled", oldValue, swimlaneSelectionEnabled); }
/** * Returns true if the given event should be ignored. */ protected boolean isIgnoredEvent(MouseEvent e) { return graphComponent.isEditEvent(e); }
/** * Scrolls the graph so that it shows the given cell. * * @param cell */ public void scrollCellToVisible(Object cell) { scrollCellToVisible(cell, false); }
/** * Returns true if the given cell can be imported via datatransfer. This * returns importEnabled. */ public boolean canImportCell(Object cell) { return isImportEnabled(); }
/** * Removes all overlays in the graph. */ public void clearCellOverlays() { clearCellOverlays(null); }
/** * Constructs an event handler that highlights cells. */ public mxCellTracker(mxGraphComponent graphComponent, Color color) { super(graphComponent, color); graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * Resets the rubberband selection without carrying out the selection. */ public void reset() { first = null; if (bounds != null) { graphComponent.getGraphControl().repaint(bounds); bounds = null; } }
/** * */ public void destroy() { graphComponent.getGraphControl().removeMouseListener(this); graphComponent.getGraphControl().removeMouseMotionListener(this); }
/** * */ public void insertComponent(mxCellState state, Component c) { getGraphControl().add(c, 0); }
public void invoke(Object sender, mxEventObject evt) { updateComponents(); graphControl.updatePreferredSize(); } };
/** * */ public void setPreviewAlpha(float value) { float oldValue = previewAlpha; previewAlpha = value; firePropertyChange("previewAlpha", oldValue, previewAlpha); }
/** * * @param graphComponent */ public mxPanningHandler(mxGraphComponent graphComponent) { this.graphComponent = graphComponent; graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * */ public void setVisible(boolean value) { if (visible != value) { visible = value; if (previewBounds != null) { graphComponent.getGraphControl().repaint(previewBounds); } } }
/** * * @param graphComponent */ public mxPanningHandler(mxGraphComponent graphComponent) { this.graphComponent = graphComponent; graphComponent.getGraphControl().addMouseListener(this); graphComponent.getGraphControl().addMouseMotionListener(this); }
/** * */ public void setVisible(boolean value) { if (visible != value) { visible = value; if (previewBounds != null) { graphComponent.getGraphControl().repaint(previewBounds); } } }