Exemplo n.º 1
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);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Returns an ImageCapabilities object which can be
 /// inquired as to the capabilities of this
 /// Image on the specified GraphicsConfiguration.
 /// This allows programmers to find
 /// out more runtime information on the specific Image
 /// object that they have created.  For example, the user
 /// might create a BufferedImage but the system may have
 /// no video memory left for creating an image of that
 /// size on the given GraphicsConfiguration, so although the object
 /// may be acceleratable in general, it
 /// does not have that capability on this GraphicsConfiguration. </summary>
 /// <param name="gc"> a <code>GraphicsConfiguration</code> object.  A value of null
 /// for this parameter will result in getting the image capabilities
 /// for the default <code>GraphicsConfiguration</code>. </param>
 /// <returns> an <code>ImageCapabilities</code> object that contains
 /// the capabilities of this <code>Image</code> on the specified
 /// GraphicsConfiguration. </returns>
 /// <seealso cref= java.awt.image.VolatileImage#getCapabilities()
 /// VolatileImage.getCapabilities()
 /// @since 1.5 </seealso>
 public virtual ImageCapabilities GetCapabilities(GraphicsConfiguration gc)
 {
     if (SurfaceManager != null)
     {
         return(SurfaceManager.getCapabilities(gc));
     }
     // Note: this is just a default object that gets returned in the
     // absence of any more specific information from a surfaceManager.
     // Subclasses of Image should either override this method or
     // make sure that they always have a non-null SurfaceManager
     // to return an ImageCapabilities object that is appropriate
     // for their given subclass type.
     return(DefaultImageCaps);
 }
 /// <summary>
 /// Returns a <code>boolean</code> indicating whether or
 /// not the specified <code>GraphicsConfiguration</code> can be
 /// used to create a drawing surface that supports the indicated
 /// features. </summary>
 /// <param name="gc"> the <code>GraphicsConfiguration</code> object to test </param>
 /// <returns> <code>true</code> if this
 /// <code>GraphicsConfiguration</code> object can be used to create
 /// surfaces that support the indicated features;
 /// <code>false</code> if the <code>GraphicsConfiguration</code> can
 /// not be used to create a drawing surface usable by this Java(tm)
 /// API. </returns>
 public abstract bool IsGraphicsConfigSupported(GraphicsConfiguration gc);
Exemplo n.º 4
0
		/// <summary>
		/// Constructs an initially invisible Dialog with the
		/// specified owner frame, title, modality, and
		/// <code>GraphicsConfiguration</code>.
		/// </summary>
		public Dialog(Frame @owner, string @title, bool @modal, GraphicsConfiguration @gc)
			: base(owner)
		{
		}
Exemplo n.º 5
0
 /// <summary>
 /// Constructs a new invisible window with the specified
 /// window as its owner and a
 /// <code>GraphicsConfiguration</code> of a screen device.
 /// </summary>
 public Window(Window @owner, GraphicsConfiguration @gc)
 {
 }
Exemplo n.º 6
0
		/// <summary>
		/// Creates a <code>JFrame</code> with the specified title and the
		/// specified <code>GraphicsConfiguration</code> of a screen device.
		/// </summary>
		public JFrame(string @title, GraphicsConfiguration @gc)
		{
		}
Exemplo n.º 7
0
		/// <summary>
		/// Creates a <code>Frame</code> in the specified
		/// <code>GraphicsConfiguration</code> of
		/// a screen device and a blank title.
		/// </summary>
		public JFrame(GraphicsConfiguration @gc)
		{
		}
Exemplo n.º 8
0
		/// <summary>
		/// Constructs a new, initially invisible <code>Frame</code> object
		/// with the specified title and a
		/// <code>GraphicsConfiguration</code>.
		/// </summary>
		public Frame(string @title, GraphicsConfiguration @gc)
			: base((Frame)(null))
		{
		}
		/// <summary>
		/// Returns a <code>boolean</code> indicating whether or
		/// not the specified <code>GraphicsConfiguration</code> can be
		/// used to create a drawing surface that supports the indicated
		/// features.
		/// </summary>
		abstract public bool isGraphicsConfigSupported(GraphicsConfiguration @gc);
		/// <summary>
		/// Returns the "best" configuration possible that passes the
		/// criteria defined in the <code>GraphicsConfigTemplate</code>.
		/// </summary>
		public GraphicsConfiguration getBestConfiguration(GraphicsConfiguration[] @gc)
		{
			return default(GraphicsConfiguration);
		}
Exemplo n.º 11
0
		/// <summary>
		/// Creates a modal or non-modal dialog with the specified title,
		/// owner <code>Dialog</code>, and <code>GraphicsConfiguration</code>.
		/// </summary>
		public JDialog(Dialog @owner, string @title, bool @modal, GraphicsConfiguration @gc)
			: base(@owner)
		{
		}
Exemplo n.º 12
0
 /// <summary>
 /// Constructs a new, initially invisible <code>Frame</code> object
 /// with the specified title and a
 /// <code>GraphicsConfiguration</code>.
 /// </summary>
 public Frame(string @title, GraphicsConfiguration @gc)
     : base((Frame)(null))
 {
 }
Exemplo n.º 13
0
 /// <summary>
 /// Create a <code>Frame</code> with the specified
 /// <code>GraphicsConfiguration</code> of
 /// a screen device.
 /// </summary>
 public Frame(GraphicsConfiguration @gc)
     : base((Frame)(null))
 {
 }
Exemplo n.º 14
0
		/// <summary>
		/// Attempts to restore the drawing surface of the image if the surface
		/// had been lost since the last <code>validate</code> call.
		/// </summary>
		abstract public int validate(GraphicsConfiguration @gc);
Exemplo n.º 15
0
		/// <summary>
		/// Constructs a new invisible window with the specified
		/// window as its owner and a
		/// <code>GraphicsConfiguration</code> of a screen device.
		/// </summary>
		public Window(Window @owner, GraphicsConfiguration @gc)
		{
		}
Exemplo n.º 16
0
 /// <summary>
 /// Constructs an initially invisible Dialog with the
 /// specified owner frame, title, modality, and
 /// <code>GraphicsConfiguration</code>.
 /// </summary>
 public Dialog(Frame @owner, string @title, bool @modal, GraphicsConfiguration @gc)
     : base(owner)
 {
 }
Exemplo n.º 17
0
 /// <summary>
 /// Returns a <code>boolean</code> indicating whether or
 /// not the specified <code>GraphicsConfiguration</code> can be
 /// used to create a drawing surface that supports the indicated
 /// features.
 /// </summary>
 abstract public bool isGraphicsConfigSupported(GraphicsConfiguration @gc);
Exemplo n.º 18
0
 public CanvasFrame(string title, GraphicsConfiguration gc)
   : this(title, gc, 0.0)
 {
 }
Exemplo n.º 19
0
		/// <summary>
		/// Create a <code>Frame</code> with the specified
		/// <code>GraphicsConfiguration</code> of
		/// a screen device.
		/// </summary>
		public Frame(GraphicsConfiguration @gc)
			: base((Frame)(null))
		{
		}