public void mouseClicked(MouseEvent e) { MViewPane mViewPane = mviewControl.getMViewPane(); int selectedIndex = mViewPane.getSelectedIndex(); currentMol = mViewPane.getM(selectedIndex); updateMolProperties(); }
public ChartMouseEvent(JFreeChart chart, MouseEvent trigger, ChartEntity entity) { base.\u002Ector((object) chart); ChartMouseEvent chartMouseEvent = this; this.chart = chart; this.trigger = trigger; this.entity = entity; }
public virtual void mouseDragged(MouseEvent e) { JTableHeader jtableHeader = (JTableHeader) ((ComponentEvent) e).getComponent(); if (jtableHeader.getDraggedDistance() <= 0 && jtableHeader.getResizingColumn() == null) return; this.renderer.setPressedColumn(-1); this.sortColumnIndex = -1; }
public virtual void mouseClicked(MouseEvent e) { if (((EventObject) e).getSource() == this.upButton) { ++this.value; ((JTextComponent) this.textField).setText(Integer.toString(this.value)); ((JComponent) this).firePropertyChange("value", this.value - 1, this.value); } else { if (((EventObject) e).getSource() != this.downButton) return; --this.value; ((JTextComponent) this.textField).setText(Integer.toString(this.value)); ((JComponent) this).firePropertyChange("value", this.value + 1, this.value); } }
public virtual void mousePressed(MouseEvent e) { JTableHeader jtableHeader = (JTableHeader) ((ComponentEvent) e).getComponent(); if (jtableHeader.getResizingColumn() != null || jtableHeader.getDraggedDistance() >= 1) return; int num = jtableHeader.columnAtPoint(e.getPoint()); if (this.model.isSortable(jtableHeader.getTable().convertColumnIndexToModel(num))) { this.sortColumnIndex = jtableHeader.getTable().convertColumnIndexToModel(num); this.renderer.setPressedColumn(this.sortColumnIndex); ((Component) jtableHeader).repaint(); if (!jtableHeader.getTable().isEditing()) return; ((CellEditor) jtableHeader.getTable().getCellEditor()).stopCellEditing(); } else this.sortColumnIndex = -1; }
/** * MouseRelease event (not used, but needed for MouseListener). */ public void mouseReleased(MouseEvent e) { }
/** * MouseClick event (not used, but needed for MouseListener). */ public void mouseClicked(MouseEvent e) { }
public void mouseExited(MouseEvent e) { }
/// <summary> /// Returns true if the <code>MouseEvent</code> is considered a popup trigger /// by the <code>JPopupMenu</code>'s currently installed UI. /// </summary> public bool isPopupTrigger(MouseEvent @e) { return default(bool); }
public void mouseExited(MouseEvent e) { if (HandlerMouseExit != null) HandlerMouseExit(); }
/// <summary> /// Returns a MouseEvent similar to <code>sourceEvent</code> except that its x /// and y members have been converted to <code>destination</code>'s coordinate /// system. /// </summary> public MouseEvent convertMouseEvent(Component @source, MouseEvent @sourceEvent, Component @destination) { return default(MouseEvent); }
public virtual void mouseReleased(MouseEvent e) { JTableHeader jtableHeader = (JTableHeader) ((ComponentEvent) e).getComponent(); if (jtableHeader.getResizingColumn() != null || this.sortColumnIndex == -1) return; SortableTableModel sortableTableModel = (SortableTableModel) jtableHeader.getTable().getModel(); int num = sortableTableModel.isAscending() ? 0 : 1; sortableTableModel.setAscending(num != 0); sortableTableModel.sortByColumn(this.sortColumnIndex, num != 0); this.renderer.setPressedColumn(-1); ((Component) jtableHeader).repaint(); }
public virtual void mouseMoved(MouseEvent e) { }
public virtual void mouseClicked(MouseEvent e) { }
/// <summary> /// When a MenuElement receives an event from a MouseListener, it should never process the event /// directly. /// </summary> public void processMouseEvent(MouseEvent @event) { }
public void mousePressed(MouseEvent e) { }
/// <summary> /// Returns true if the mouse event specifies the middle mouse button. /// </summary> static public bool isMiddleMouseButton(MouseEvent @anEvent) { return default(bool); }
/// <summary> /// Returns the string to be used as the tooltip for <code>event</code>. /// </summary> public string getToolTipText(MouseEvent @event) { return default(string); }
/// <summary> /// Returns true if the mouse event specifies the right mouse button. /// </summary> static public bool isRightMouseButton(MouseEvent @anEvent) { return default(bool); }
public virtual void mousePressed(MouseEvent e) { }
/// <summary> /// Returns the tooltip location in this component's coordinate system. /// </summary> public Point getToolTipLocation(MouseEvent @event) { return default(Point); }
public void mouseEntered(MouseEvent e) { if (HandlerMouseEnter != null) HandlerMouseEnter(); }
public virtual void mouseExited(MouseEvent e) { }
/// <summary> /// Processes mouse motion events occurring on this component by /// dispatching them to any registered /// <code>MouseMotionListener</code> objects. /// </summary> protected void processMouseMotionEvent(MouseEvent @e) { }
public virtual void mouseReleased(MouseEvent e) { }
/** * Mouse press. * @param e the MouseEvent */ public void mousePressed(MouseEvent e) { if (e.getComponent() != this) return; Pnt point = new Pnt(e.getX(), e.getY()); if (debug) Console.WriteLine("Click " + point); dt.delaunayPlace(point); repaint(); }
public virtual void mouseEntered(MouseEvent e) { }
/** * MouseEnter events. * @param e the MouseEvent */ public void mouseEntered(MouseEvent e) { if (e.getComponent() == this) return; String name = e.getComponent().getName(); if (debug) Console.WriteLine("Entering " + name); showCircles = (name == "circles"); showDelaunay = (name == "delaunay"); showVoronoi = (name == "voronoi"); repaint(); }
/// <summary> /// This method is required to conform to the /// <code>MenuElement</code> interface, but it not implemented. /// </summary> public void processMouseEvent(MouseEvent @event, MenuElement[] @path, MenuSelectionManager @manager) { }
/** * MouseExit events. * @param e the MouseEvent */ public void mouseExited(MouseEvent e) { if (e.getComponent() == this) return; if (debug) Console.WriteLine("Exiting"); showCircles = false; showDelaunay = false; showVoronoi = false; repaint(); }