Exemplo n.º 1
0
 public void mouseClicked(MouseEvent e)
 {
     MViewPane mViewPane = mviewControl.getMViewPane();
     int selectedIndex = mViewPane.getSelectedIndex();
     currentMol = mViewPane.getM(selectedIndex);
     updateMolProperties();
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 6
0
		/** 
		 * MouseRelease event (not used, but needed for MouseListener).
		 */
		public void mouseReleased(MouseEvent e) { }
Exemplo n.º 7
0
		/**
		 * MouseClick event (not used, but needed for MouseListener).
		 */
		public void mouseClicked(MouseEvent e) { }
			public void mouseExited(MouseEvent e)
			{
			}
Exemplo n.º 9
0
		/// <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();
			}
Exemplo n.º 11
0
		/// <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)
			{
			}
Exemplo n.º 17
0
		/// <summary>
		/// Returns true if the mouse event specifies the middle mouse button.
		/// </summary>
		static public bool isMiddleMouseButton(MouseEvent @anEvent)
		{
			return default(bool);
		}
Exemplo n.º 18
0
		/// <summary>
		/// Returns the string to be used as the tooltip for <code>event</code>.
		/// </summary>
		public string getToolTipText(MouseEvent @event)
		{
			return default(string);
		}
Exemplo n.º 19
0
		/// <summary>
		/// Returns true if the mouse event specifies the right mouse button.
		/// </summary>
		static public bool isRightMouseButton(MouseEvent @anEvent)
		{
			return default(bool);
		}
Exemplo n.º 20
0
 public virtual void mousePressed(MouseEvent e)
 {
 }
Exemplo n.º 21
0
		/// <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();
			}
Exemplo n.º 23
0
 public virtual void mouseExited(MouseEvent e)
 {
 }
Exemplo n.º 24
0
 /// <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)
 {
 }
Exemplo n.º 25
0
 public virtual void mouseReleased(MouseEvent e)
 {
 }
Exemplo n.º 26
0
		/**
		 * 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();
		}
Exemplo n.º 27
0
 public virtual void mouseEntered(MouseEvent e)
 {
 }
Exemplo n.º 28
0
		/**
		 * 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();
		}
Exemplo n.º 29
0
		/// <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)
		{
		}
Exemplo n.º 30
0
		/**
		 * 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();
		}