コード例 #1
0
ファイル: Form1.cs プロジェクト: Jingtaolu/pbpkkb1_for_linux
 public void mouseClicked(MouseEvent e)
 {
     MViewPane mViewPane = mviewControl.getMViewPane();
     int selectedIndex = mViewPane.getSelectedIndex();
     currentMol = mViewPane.getM(selectedIndex);
     updateMolProperties();
 }
コード例 #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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
ファイル: Spinner.cs プロジェクト: NALSS/SmartDashboard.NET
 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);
   }
 }
コード例 #5
0
 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;
 }
コード例 #6
0
		/** 
		 * MouseRelease event (not used, but needed for MouseListener).
		 */
		public void mouseReleased(MouseEvent e) { }
コード例 #7
0
		/**
		 * MouseClick event (not used, but needed for MouseListener).
		 */
		public void mouseClicked(MouseEvent e) { }
コード例 #8
0
			public void mouseExited(MouseEvent e)
			{
			}
コード例 #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);
		}
コード例 #10
0
			public void mouseExited(MouseEvent e)
			{
				if (HandlerMouseExit != null)
					HandlerMouseExit();
			}
コード例 #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);
		}
コード例 #12
0
 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();
 }
コード例 #13
0
 public virtual void mouseMoved(MouseEvent e)
 {
 }
コード例 #14
0
 public virtual void mouseClicked(MouseEvent e)
 {
 }
コード例 #15
0
		/// <summary>
		/// When a MenuElement receives an event from a MouseListener, it should never process the event
		/// directly.
		/// </summary>
		public void processMouseEvent(MouseEvent @event)
		{
		}
コード例 #16
0
			public void mousePressed(MouseEvent e)
			{
			}
コード例 #17
0
		/// <summary>
		/// Returns true if the mouse event specifies the middle mouse button.
		/// </summary>
		static public bool isMiddleMouseButton(MouseEvent @anEvent)
		{
			return default(bool);
		}
コード例 #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);
		}
コード例 #19
0
		/// <summary>
		/// Returns true if the mouse event specifies the right mouse button.
		/// </summary>
		static public bool isRightMouseButton(MouseEvent @anEvent)
		{
			return default(bool);
		}
コード例 #20
0
ファイル: Spinner.cs プロジェクト: NALSS/SmartDashboard.NET
 public virtual void mousePressed(MouseEvent e)
 {
 }
コード例 #21
0
		/// <summary>
		/// Returns the tooltip location in this component's coordinate system.
		/// </summary>
		public Point getToolTipLocation(MouseEvent @event)
		{
			return default(Point);
		}
コード例 #22
0
			public void mouseEntered(MouseEvent e)
			{
				if (HandlerMouseEnter != null)
					HandlerMouseEnter();
			}
コード例 #23
0
ファイル: Spinner.cs プロジェクト: NALSS/SmartDashboard.NET
 public virtual void mouseExited(MouseEvent e)
 {
 }
コード例 #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)
 {
 }
コード例 #25
0
ファイル: Spinner.cs プロジェクト: NALSS/SmartDashboard.NET
 public virtual void mouseReleased(MouseEvent e)
 {
 }
コード例 #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();
		}
コード例 #27
0
ファイル: Spinner.cs プロジェクト: NALSS/SmartDashboard.NET
 public virtual void mouseEntered(MouseEvent e)
 {
 }
コード例 #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();
		}
コード例 #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)
		{
		}
コード例 #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();
		}