예제 #1
0
 public CanvasFrame(string title, int screenNumber, DisplayMode displayMode, double gamma)
 {
   base.\u002Ector(title, CanvasFrame.getScreenDevice(screenNumber).getDefaultConfiguration());
   CanvasFrame canvasFrame = this;
   this.latency = 120L;
   this.keyEvent = (KeyEvent) null;
   this.canvas = (Canvas) null;
   this.needInitialResize = false;
   this.bufferStrategy = (BufferStrategy) null;
   this.init(true, displayMode, gamma);
 }
예제 #2
0
 public CanvasFrame(string title, GraphicsConfiguration gc, double gamma)
 {
   base.\u002Ector(title, gc);
   CanvasFrame canvasFrame = this;
   this.latency = 120L;
   this.keyEvent = (KeyEvent) null;
   this.canvas = (Canvas) null;
   this.needInitialResize = false;
   this.bufferStrategy = (BufferStrategy) null;
   this.init(false, (DisplayMode) null, gamma);
 }
예제 #3
0
    public virtual KeyEvent waitKey(int delay)
    {
      try
      {
        this.keyEvent = (KeyEvent) null;
        Object.instancehelper_wait((object) this, (long) delay);
        goto label_3;
      }
      catch (InterruptedException ex)
      {
      }
label_3:
      KeyEvent keyEvent = this.keyEvent;
      this.keyEvent = (KeyEvent) null;
      return keyEvent;
    }
예제 #4
0
		/// <summary>
		/// Processes key stroke events such as mnemonics and accelerators.
		/// </summary>
		protected void processKeyEvent(KeyEvent @evt)
		{
		}
예제 #5
0
		/// <summary>
		/// This method is required to conform to the
		/// <code>MenuElement</code> interface, but it not implemented.
		/// </summary>
		public void processKeyEvent(KeyEvent @e, MenuElement[] @path, MenuSelectionManager @manager)
		{
		}
		/// <summary>
		/// Invokes <code>actionPerformed</code> on <code>action</code> if
		/// <code>action</code> is enabled (and non null).
		/// </summary>
		static public bool notifyAction(Action @action, KeyStroke @ks, KeyEvent @event, object @sender, int @modifiers)
		{
			return default(bool);
		}
		/// <summary>
		/// Process the key bindings for the <code>Component</code> associated with
		/// <code>event</code>.
		/// </summary>
		static public bool processKeyBindings(KeyEvent @event)
		{
			return default(bool);
		}
예제 #8
0
		/// <summary>
		/// Returns a KeyStroke which represents the stroke which generated a given
		/// KeyEvent.
		/// </summary>
		public KeyStroke getKeyStrokeForEvent(KeyEvent @anEvent)
		{
			return default(KeyStroke);
		}
예제 #9
0
		/// <summary>
		/// Invoked to process the key bindings for <code>ks</code> as the result
		/// of the <code>KeyEvent</code> <code>e</code>.
		/// </summary>
		protected bool processKeyBinding(KeyStroke @ks, KeyEvent @e, int @condition, bool @pressed)
		{
			return default(bool);
		}
예제 #10
0
		/// <summary>
		/// Processes any key events that the component itself
		/// recognizes.
		/// </summary>
		protected void processComponentKeyEvent(KeyEvent @e)
		{
		}
		/// <summary>
		/// When a MenuElement receives an event from a KeyListener, it should never process the event
		/// directly.
		/// </summary>
		public void processKeyEvent(KeyEvent @e)
		{
		}
예제 #12
0
		/// <summary>
		/// Returns an <code>AWTKeyStroke</code> which represents the
		/// stroke which generated a given <code>KeyEvent</code>.
		/// </summary>
		public AWTKeyStroke getAWTKeyStrokeForEvent(KeyEvent @anEvent)
		{
			return default(AWTKeyStroke);
		}